[Openswan Users] Tunnel up but no traffic through it

Björn Mittelsdorf bjoern.mittelsdorf at scheer-management.com
Fri May 15 05:50:25 EDT 2015


Hi Alexandre,

> My tunnel has been successfully established, but when I traceroute from
> side A to B, the request goes outside the tunnel,  I have tried too many
> different configuration but I give up, so before I go completely crazy, I am
> asking if anyone could help me.


> 000 "myvpn": 177.7.10.20<177.7.10.20>[+S=C]---177.70.107.1...177.70.107.1---
> 201.7.16.24<201.7.16.24>[+S=C]===192.168.0.0/24; erouted; eroute owner:

You have to define a subnet for Side A giving it a single ip and creating a loopback device on Side A server so that there actually is traffic from a acceptable source to go into the tunnel...

Something like 

leftsubnet=192.168.33.11/32
leftsourceip=192.168.33.11

and the respective loopback device in /etc/network/interfaces

auto lo:11
iface lo:11 inet static
address 192.168.33.11
netmask 255.255.255.255

should do the trick.

Please include configuration files even when it is not working in your questions.

Best regards

Bjoern Mittelsdorf


More information about the Users mailing list