[strongSwan] Source routing with StrongSwan
hoggins at radiom.fr
Mon Dec 12 14:47:17 CET 2016
I have a router establishing a connexion to a peer via StrongSwan.
Everything is good.
Now I would like that some of the hosts connected to that router be
directed to a specific gateway for accessing 0.0.0.0
So the gateway I want is 192.168.55.3, on the remote LAN. On my local
LAN, 192.168.22.10 is establishing the tunnel, and serving resources for
its 192.168.22.0/24 network.
I would like this local network to reach the Internet through
192.168.55.3, and not the local gateway.
I created a table in rt_tables (table 100), and added the following rule :
ip rule add from 192.168.22.0/24 table 100
But of course, when I do this :
ip route add default via 192.168.55.3 table 100
...it answers that host 192.168.55.3 is unreachable. I guess it's
because it's a non-local host, not present in the local routing table.
How could I achieve this ?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: OpenPGP digital signature
More information about the Users