[Openswan Users] seek help for connection linksys ipsec client with openswan linux server

Paul Wouters paul at xelerance.com
Tue Sep 5 12:18:59 EDT 2006

On Tue, 5 Sep 2006, hasan murad wrote:

> [] My network scenerio is as follows:
>         windows xp
> client<------------------->Openswan-2.2.0-8
>         Lnksys ipsec                        	debin 3.1
> sarge Linux server

First of all, please upgrade openswan. 2.2.x has a few known crashers
and is missing a Windows FQDN rekey bug workaround.

> [] My linux server has got two ethernet card and they
> are NATed
> 	eth0 ip :
> 	eth1 ip :

I am not entirely sure I understand your goal. You want to connect from
the network to a NAT'ed version of the same network?

> config setup
>         interfaces=%defaultroute
>         nat_traversal=yes
> virtual_private=%v4:,%v4:,%v4:

You need to exlucde from that range, so add:

> conn roadwarrior
>         left=%any
>         right=
>         rightca="C=US,ST=AZ/O=Brotecs technology
> Ltd.,OU=brotecs,CN=murad,emailAddress=murad at brotecs.com"
>         network=auto
>         auto=start
>         pfs=yes

I'd switch left and right here. Especially when using "%any".

> conn roadwarrior-net
>         left=%any
>         right=
>         rightsubnet=

This cannot work. right cannot be part of rightsubnet. How would you
reach right?

>         rightca="C=US,ST=AZ/O=Brotecs technology
> Ltd.,OU=brotecs,CN=murad,emailAddress=murad at brotecs.com"
>         network=auto

That is some ipsec.exe setting that is not appropriate for openswan.
Also, rightca is not needed and is better left unspecified if you
only install one CA on the openswan server anyway.

>         auto=start

That needs to be auto=add on the server side, because only clients can
initiate (you don't know where left=%any is after all)

> My Linksys IPsec tool configurtion is as follows:-
> Local Side of the tunnel
> 	IP Address :
> 	Local Address/netmask :

Again, you can't do that. Assign a seperate /24 for this.

> Remote Side of the tunnel
>   VPN Gateway :
>   Remote Internal IP:
>   Private Address/netmask :

So where does come from? Is that what is supposed
to be behind the tunnel? Did you want this as subnet instead?

Building and integrating Virtual Private Networks with Openswan:

More information about the Users mailing list