[Openswan Users] Linux<->Linux RoadWarrior: Default Gateway Problem

Roland Plüss roland at rptd.ch
Sun Aug 26 12:20:53 EDT 2007


I managed now to get the roadwarrior to connect to the gateway and I can
access the local network but I am unable to fetch a website from the
internet. The problem is that the firewall allows only traffic from the
WiFi to the Internet if it comes through an authorized OpenSwan tunnel.
Now for the LAN this works since the config looks like this:

Laptop:
conn openswan-roadwarrior
   left=%defaultroute
   leftid=@roadwarrior.####
   leftrsasigkey=####
   right=192.168.3.2
   rightsubnet=192.168.1.0/24
   rightid=@server.####
   rightrsasigkey=####
   auto=add

Gateway:
conn openswan-roadwarrior
   left=192.168.3.2
   leftsubnet=192.168.1.0/24
   leftid=@server.####
   leftrsasigkey=####
   right=%any
   rightid=@roadwarrior.####
   rightrsasigkey=####
   auto=add

Hence in my routing table on the laptop I have correctly set to route
through the tunnel if the destination is 192.168.1.0/24. But if an
internet address is the destination this route doesn't hold anymore and
the default route is used which goes directly to the access point which
dissallows this.

How can configuration OpenSwan to become the default route on my laptop
so ANY traffic is send through the tunnel and not only the one to my
internal network?

I used this tut to get it working so far:
http://wiki.openswan.org/index.php/Openswan/Configure ( road warrior
section ). Latop has IP 192.168.3.10, gateway has IP 192.168.3.2 to the WiFi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.openswan.org/pipermail/users/attachments/20070826/acae5141/attachment.bin 


More information about the Users mailing list