[Openswan Users] 2003 server cant connect

Jacco de Leeuw jacco2 at dds.nl
Thu Jun 28 16:27:38 EDT 2007


Herbert Zimbizi wrotef:

> Iam trying to get dialin vpn running. I have installed openswan and 
> l2tpd on the vpn server.

Check out:
http://www.jacco2.dds.nl/networking/openswan-l2tp.html

> config setup
>        virtual_private=%v4:192.168.254.0/24,%v4:!192.168.0.0/24

Don't you mean something like:
virtual_private=%v4:192.168.0.0/16,%v4:!192.168.0.0/24

Actually, I would recommend allowing a more broader range for remote
clients behind NAT:

virtual_private=%v4:10.0.0.0/8,%v4:172.16.0.0/12,%v4:192.168.0.0/16,%v4:!192.168.1.0/24

> conn %default
>          authby=secret

There are some limitations with a PSK when NAT is involved.
http://www.jacco2.dds.nl/networking/openswan-l2tp.html#NAT

>          leftsubnet=192.168.0.0/24

This leftsubnet= should not be used for L2TP/IPsec.

> conn net
>          #rightsubnet=vhost:%no,%priv

You do need this line, at least for Vista clients that you might have.

Jacco
-- 
Jacco de Leeuw                         mailto:jacco2 at dds.nl
Zaandam, The Netherlands           http://www.jacco2.dds.nl



More information about the Users mailing list