[strongSwan] Source IP in routing table

Hoggins! hoggins at radiom.fr
Mon Dec 24 23:07:28 CET 2018


Hello list,

I had a perfectly working setup that I built ontop of a machine that
never rebooted for several months. Multiple interfaces, multiple IP
addresses on the same machine, the default source address has always
been 192.168.22.10 in routing table 220. After the last reboot, I found
out that the routing table came different:

    ~# ip route show table 220
    192.168.12.0/24 via X.X.X.X dev ppp0  proto static  src 192.168.35.10
    192.168.33.0/24 via X.X.X.X dev ppp0  proto static  src 192.168.35.10
    192.168.55.0/24 via X.X.X.X dev ppp0  proto static  src 192.168.35.10
    192.168.66.0/24 via X.X.X.X dev ppp0  proto static  src 192.168.35.10


Before, the 192.168.35.10 source address was 192.168.22.10 and
everything was setup around this. To overcome this situation, my first
solution was to SNAT a lot and it's working alright, but not for the SIP
protocol for example, and I'm stuck there.
So I was wondering if there was any kind of control over the source
address in the routing table 220 that would allow me to set
192.168.22.10 back again.

This 192.168.35.10 is not even the source address for the default
gateway, so I really wonder why StrongSWAN choses this address as the
source one. Any idea?

Thanks!

    Hoggins!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.strongswan.org/pipermail/users/attachments/20181224/b515d69e/attachment.sig>


More information about the Users mailing list