Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17764

Ubuntu routing issue

$
0
0

Hello. I have two networks, connected via VPN. One is 192.168.22.0/24 and the second is 192.168.12.0/24. Both of them are using virtual machines running Ubuntu, behind NAT, to provide the IPSec tunnel. I have a problem on the 192.168.12.0/24 network, where instead of sending packets to the VPN gateway (which is on the IP 192.168.12.101), all the packets that should use the VPN go to the router (that uses 192.168.12.254 IP address).

Here you can see the routes

ion@PUSKIN:~$ sudo ip route default via 192.168.12.254 dev eth0 192.168.12.0/24 dev eth0 proto kernel scope link src 192.168.12.100 192.168.22.0/24 via 192.168.12.101 dev eth0

And this is what I get

ion@PUSKIN:~$ traceroute 192.168.22.253 traceroute to 192.168.22.253 (192.168.22.253), 30 hops max, 60 byte packets 1 254.12.168.192.in-addr.arpa (192.168.12.254) 0.232 ms 0.246 ms 0.290 ms 2 254.12.168.192.in-addr.arpa (192.168.12.254) 0.388 ms !X 0.459 ms !X 0.529 ms !X

Does anybody know how can I correct this behaviour and make packets go to 192.168.12.101 instead?

submitted by /u/888xray999
[link] [comments]

Viewing all articles
Browse latest Browse all 17764

Trending Articles