VPN with setkey

Martin Schweizer lists_freebsd at bluewin.ch
Sun Apr 3 09:42:24 PDT 2005


Hello

I've been run in troubles with setkey. My goal is to etablish a vpn connection 
with setkey/racoon to an vpn box from ZyXEL (Prestige 600series). My setup is:

notebook ---> FreeBSD gateway/firewall ---> Internet -----> ZyXEL

Notebook: 192.168.50.55
FreeBSD gatewy/firewall: 192.168.50.1
ZyXEL: host.abc.net (internal net: 192.168.1.0/24)

I can ping ZyXEL make vpn connections with a Windows client without problems. 
I config the ipsec.conf with these options:

spdadd -n 192.168.50.0/24 192.168.1.0/24 ipencap -P out ipsec esp/tunnel/192.168.50.55-host.abc.net/require;
spdadd 192.168.1.0/24 192.168.50.0/24 ipencap -P in ipsec esp/tunnel/host.abc.net-192.168.50.55/require;

and this I get back from setkey:

notebook# setkey -f ipsec.conf
libipsec: invalid IP address while parsing "host.abc.net"
line 1: hostname nor servname provided, or not known at [ out ipsec esp/tunnel/192.168.50.55-host.abc.net/require
parse failed, line 1.

What I'm doing wrong?
-- 

Regards

Martin Schweizer
<info at pc-service.ch>

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050403/a3f2f70a/attachment.bin


More information about the freebsd-questions mailing list