So, I'm trying to add a route on my asus merlin RT-AC86U. Very frustrating since i haven't been able to find examples and what I type in errors off.
I can't see any VPN Client devices and trying to figure out routing on the VPN Server side so I can see them.
VPN Client 192.168.100.0/24
VPN Client connection 10.8.0.2
VPN Server LAN 192.168.1.0/24
ip route add 192.168.100.0/24 via 10.8.0.0
RTNETLINK answers: Invalid argument
ip route add 192.168.100.0/24 vi 10.8.0.2
RTNETLINK answers: File exists
iptables --line -t nat -nvL POSTROUTING
Chain POSTROUTING (policy ACCEPT 2549 packets, 150K bytes)
num pkts bytes target prot opt in out source destination
1 3392 355K MASQUERADE all -- * tun12 0.0.0.0/0 0.0.0.0/0
2 2622 201K PUPNP all -- * eth0 0.0.0.0/0 0.0.0.0/0
3 1664 138K MASQUERADE all -- * eth0 !47.186.10.8 0.0.0.0/0 (address changed for this post)
4 212 55341 MASQUERADE all -- * br0 192.168.1.0/24 192.168.1.0/24
ip rule
0: from all lookup local
10201: from 192.168.1.185 lookup main
10202: from 192.168.1.191 lookup main
10203: from 192.168.1.193 lookup main
10204: from 192.168.1.196 lookup main
10205: from 192.168.1.197 lookup main
10206: from 192.16.1.198 lookup main
10207: from 192.168.1.199 lookup main
10208: from 192.168.1.162 lookup main
10209: from 192.168.1.34 lookup main
10210: from 192.168.1.163 lookup main
10211: from 192.168.1.107 lookup main
10301: from 192.168.1.0/24 lookup ovpnc2
32766: from all lookup main
32767: from all lookup default
route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 47-186-10-1.dll 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 * 255.255.255.0 U 0 0 0 tun21
10.8.3.0 * 255.255.255.0 U 0 0 0 tun12
47.186.10.0 * 255.255.255.0 U 0 0 0 eth0
47.186.10.1 * 255.255.255.255 UH 0 0 0 eth0
89.187.114.4 47-186-10-1.dll 255.255.255.255 UGH 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
192.168.100.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun21
I can't see any VPN Client devices and trying to figure out routing on the VPN Server side so I can see them.
VPN Client 192.168.100.0/24
VPN Client connection 10.8.0.2
VPN Server LAN 192.168.1.0/24
ip route add 192.168.100.0/24 via 10.8.0.0
RTNETLINK answers: Invalid argument
ip route add 192.168.100.0/24 vi 10.8.0.2
RTNETLINK answers: File exists
iptables --line -t nat -nvL POSTROUTING
Chain POSTROUTING (policy ACCEPT 2549 packets, 150K bytes)
num pkts bytes target prot opt in out source destination
1 3392 355K MASQUERADE all -- * tun12 0.0.0.0/0 0.0.0.0/0
2 2622 201K PUPNP all -- * eth0 0.0.0.0/0 0.0.0.0/0
3 1664 138K MASQUERADE all -- * eth0 !47.186.10.8 0.0.0.0/0 (address changed for this post)
4 212 55341 MASQUERADE all -- * br0 192.168.1.0/24 192.168.1.0/24
ip rule
0: from all lookup local
10201: from 192.168.1.185 lookup main
10202: from 192.168.1.191 lookup main
10203: from 192.168.1.193 lookup main
10204: from 192.168.1.196 lookup main
10205: from 192.168.1.197 lookup main
10206: from 192.16.1.198 lookup main
10207: from 192.168.1.199 lookup main
10208: from 192.168.1.162 lookup main
10209: from 192.168.1.34 lookup main
10210: from 192.168.1.163 lookup main
10211: from 192.168.1.107 lookup main
10301: from 192.168.1.0/24 lookup ovpnc2
32766: from all lookup main
32767: from all lookup default
route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 47-186-10-1.dll 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 * 255.255.255.0 U 0 0 0 tun21
10.8.3.0 * 255.255.255.0 U 0 0 0 tun12
47.186.10.0 * 255.255.255.0 U 0 0 0 eth0
47.186.10.1 * 255.255.255.255 UH 0 0 0 eth0
89.187.114.4 47-186-10-1.dll 255.255.255.255 UGH 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
192.168.100.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun21