eelstrebor
host<->router1<->router2<->wan
openvpn client on router1
openvpn server on router2
traceroute that's executed on the host shows that the host traffic doesn't use the openvpn gateway
traceroute shows that the traffic from the host uses the LAN gateway (router2) instead of the openvpn gateway. Can anyone explain to me why?
user@rog:~$ traceroute openwrt.org #HOST
traceroute to openwrt.org (139.59.209.225), 30 hops max, 60 byte packets
1 wrt3200acm_master (x.x.x.x) 0.749 ms 1.479 ms 1.625 ms #not the openvpn gateway
2 x.x.x.x (x.x.x.x) 3.624 ms 7.126 ms 7.263 ms #ISP gateway
3 10.255.255.94 (10.255.255.94) 6.793 ms 9.517 ms 13.490 ms
.
.
user@rog:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 LAN GW 0.0.0.0 UG 100 0 0 enp3s0f1 #not the openvpn gateway
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp3s0f1
x.x.x.0 0.0.0.0 255.255.255.0 U 100 0 0 enp3s0f1
MY WAN IP LAN GW 255.255.255.255 UGH 0 0 0 enp3s0f1 #not the openvpn gateway
If i ssh into router1 and execute traceroute it shows that router1 traffic gets routed through the tunnel - what am i missing?
root@WRT1900ACS:~# traceroute openwrt.org #ROUTER1
traceroute to openwrt.org (139.59.209.225), 30 hops max, 38 byte packets
1 OVPN GW 2.020 ms 2.067 ms 1.873 ms
2 ISP GW 3.807 ms 3.743 ms 3.572 ms
3 10.255.255.94 (10.255.255.94) 4.756 ms 4.053 ms 4.046 ms
.
.
root@WRT1900ACS:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 OVPN GW 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 LAN GW 0.0.0.0 UG 0 0 0 br-lan
128.0.0.0 OVPN GW 128.0.0.0 UG 0 0 0 tun0
x.x.x.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
x.x.x.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
MY WAN IP LAN GW 255.255.255.255 UGH 0 0 0 br-lan
My goal is to have all hosts that are wired or wirelessly connected to router1 will have their traffic flow through the vpn tunnel to/from router1 and router2.