[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

VPN - FreesWan



	All

	Estou tentando montar uma vpn, através do software FreesWan, na rede daqui de
casa e estou tendo problema.

	O arquivo /etc/ipsec.conf esta assim :

# /etc/ipsec.conf - FreeS/WAN IPsec configuration file

# basic configuration
config setup
	# THIS SETTING MUST BE CORRECT or almost nothing will work;
	# %defaultroute is okay for most simple cases.
	interfaces=%defaultroute
	# Debug-logging controls:  "none" for (almost) none, "all" for lots.
	klipsdebug=none
	plutodebug=none
	# Use auto= parameters in conn descriptions to control startup actions.
	plutoload=%search
	plutostart=%search
	# Close down old connection when new one using same ID shows up.
	uniqueids=yes

# defaults for subsequent connection descriptions
# (mostly to fix internal defaults which, in retrospect, were badly chosen)
conn %default
	keyingtries=0
	disablearrivalcheck=no
	authby=rsasig
	leftrsasigkey=%dns
	rightrsasigkey=%dns

# sample VPN connection
conn sample
	type=tunnel
	
	# ip do servidor A
	left=192.168.0.1

	# mascara da rede A
	leftsubnet=192.168.0.0/24

	# gateway da rede A
	leftnexthop=192.168.0.1

	# chave do servidor A
	leftrsasigkey=<CHAVE PUBLICA>
	
	# ip do servidor B
	right=192.168.0.6

	# mascara da rede B
	rightsubnet=192.168.0.0/24

	# gateway do servidor B
	rightnexthop=192.168.0.6

	# chave do servidor B
	rightrsasigkey=<CHAVE PÚBLICA>
	
	auto=add

	Quando executo o comando aparece a seginte mensagem de erro :

	ipsec_setup: (/etc/ipsec.conf, line 34) parameter is not within a section --
`restart' aborted-- 

	A linha 34 é a linha referente ao parâmetro leftsubnet,
leftsubnet=192.168.0.0/24. Encontrei três tutoriais na net e me parece que esta
correto.

	Alguem poderia dar um auxílio ?!?!?

[ ]'s
 
  *******************    .''`.
* idic@terra.com.br  *  : :'  :
* GNU/Linux Debian   *  `. `'`
  *******************     `-
Gnupg ID 0x01186BE1
Key fingerprint =3D F17E 75C6 CE00 0E09 F63B  71B0 A0D2 FAD9 0118 6BE1

	A ausencia diminui as paixoes mediocres e aumenta as 
	grandes, assim como o vento apaga as velas, mas atica as 
	fogueiras.
		-- 



Reply to: