Good people,
I am in urgent need of some help here. It might have a simple solution. Any help is much apriciated.
I've setup a openVPN tunnel between two Asus AC-68U routers. (merlin:378.53)
On the Client router i have a local lan 192.168.1.128/25
On the Server router the loca lan is 192.168.4.0/24
The tunnel is established OK.
The tunnel end-points are 10.9.0.1 (server) and 10.9.0.6 (client)
The server (and PC's on the server lan 192.168.4.0) can ping 10.9.0.6 OK
The client (and PC's on the client lan 192.168.1.128) can ping 10.9.0.1 OK
So far so good.. but then it stops.
PC's on the client 192.168.1.128 network can ping PC's on the 192.168.4.0 lan, but not the other way around.
I suspect it is because of routing. The client Asus get the 192.168.4.0 network pushed, but the server does not get the 192.168.1.128 client network pushed.
i.e. the Asus client routing tabel looks like this:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.1 * 255.255.255.255 UH 0 0 0 WAN
10.9.0.5 * 255.255.255.255 UH 0 0 0 tun12
10.9.0.0 10.9.0.5 255.255.255.248 UG 0 0 0 tun12
192.168.1.128 * 255.255.255.128 U 0 0 0 LAN
192.168.4.0 10.9.0.5 255.255.255.0 UG 0 0 0 tun12
192.168.1.0 * 255.255.255.0 U 0 0 0 WAN
default 192.168.1.1 0.0.0.0 UG 0 0 0 WAN
The Asus OpenVPN server route table:
As you can see the 192.168.1.128 network does not get pushed from the client to the server, so i need to add that. -this is were i need help.
I try:
route add 192.168.1.128/25 via 10.9.0.6 dev tun22
but that just gives me:
"BusyBox v1.20.2 (2015-04-26 22:38:01 EDT) multi-call binary."
I need to tell the server side that 192.168.1.128 network can be reached via 10.9.0.6
please help.....
btw: i did trace-router from server and client:
On server:
traceroute to 10.9.0.6 (10.9.0.6), 30 hops max, 38 byte packets
1 10.9.0.6 (10.9.0.6) 53.529 ms 91.258 ms 119.747 ms
traceroute to 192.168.1.129 (192.168.1.129), 30 hops max, 38 byte packets
1 212.xx.xx.xxx (212.xx.xx.xxx) 32.466 ms 35.626 ms 39.759 ms
2 * * *
3 * * *
i.e. it goes the the default, public gw not via tun22
On client:
traceroute to 10.9.0.1 (10.9.0.1), 30 hops max, 38 byte packets
1 10.9.0.1 (10.9.0.1) 59.896 ms 64.123 ms 63.375 ms
traceroute to 192.168.4.1 (192.168.4.1), 30 hops max, 38 byte packets
1 192.168.4.1 (192.168.4.1) 62.194 ms 53.282 ms 67.400 ms
Somehow i had expected to see the 10.9.0.0 network on the 192.168.4.1 trace.. (?)
Any help would great..thx
I am in urgent need of some help here. It might have a simple solution. Any help is much apriciated.
I've setup a openVPN tunnel between two Asus AC-68U routers. (merlin:378.53)
On the Client router i have a local lan 192.168.1.128/25
On the Server router the loca lan is 192.168.4.0/24
The tunnel is established OK.
The tunnel end-points are 10.9.0.1 (server) and 10.9.0.6 (client)
The server (and PC's on the server lan 192.168.4.0) can ping 10.9.0.6 OK
The client (and PC's on the client lan 192.168.1.128) can ping 10.9.0.1 OK
So far so good.. but then it stops.
PC's on the client 192.168.1.128 network can ping PC's on the 192.168.4.0 lan, but not the other way around.
I suspect it is because of routing. The client Asus get the 192.168.4.0 network pushed, but the server does not get the 192.168.1.128 client network pushed.
i.e. the Asus client routing tabel looks like this:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.1 * 255.255.255.255 UH 0 0 0 WAN
10.9.0.5 * 255.255.255.255 UH 0 0 0 tun12
10.9.0.0 10.9.0.5 255.255.255.248 UG 0 0 0 tun12
192.168.1.128 * 255.255.255.128 U 0 0 0 LAN
192.168.4.0 10.9.0.5 255.255.255.0 UG 0 0 0 tun12
192.168.1.0 * 255.255.255.0 U 0 0 0 WAN
default 192.168.1.1 0.0.0.0 UG 0 0 0 WAN
The Asus OpenVPN server route table:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.64.64.64 * 255.255.255.255 UH 0 0 0 WAN
10.9.0.2 * 255.255.255.255 UH 0 0 0 tun22
10.9.0.0 10.9.0.2 255.255.255.248 UG 0 0 0 tun22
192.168.4.0 * 255.255.255.0 U 0 0 0 LAN
default 10.64.64.64 0.0.0.0 UG 0 0 0 WAN
(I am a bit pusled where 10.9.0.2 comes from, as the remote end has 10.9.0.6. Server can not ping .2, it can ping .6. Same on the client side where 10.9.0.5 pops up, but i guess this is how openvpn works)10.64.64.64 * 255.255.255.255 UH 0 0 0 WAN
10.9.0.2 * 255.255.255.255 UH 0 0 0 tun22
10.9.0.0 10.9.0.2 255.255.255.248 UG 0 0 0 tun22
192.168.4.0 * 255.255.255.0 U 0 0 0 LAN
default 10.64.64.64 0.0.0.0 UG 0 0 0 WAN
As you can see the 192.168.1.128 network does not get pushed from the client to the server, so i need to add that. -this is were i need help.
I try:
route add 192.168.1.128/25 via 10.9.0.6 dev tun22
but that just gives me:
"BusyBox v1.20.2 (2015-04-26 22:38:01 EDT) multi-call binary."
I need to tell the server side that 192.168.1.128 network can be reached via 10.9.0.6
please help.....
btw: i did trace-router from server and client:
On server:
traceroute to 10.9.0.6 (10.9.0.6), 30 hops max, 38 byte packets
1 10.9.0.6 (10.9.0.6) 53.529 ms 91.258 ms 119.747 ms
traceroute to 192.168.1.129 (192.168.1.129), 30 hops max, 38 byte packets
1 212.xx.xx.xxx (212.xx.xx.xxx) 32.466 ms 35.626 ms 39.759 ms
2 * * *
3 * * *
i.e. it goes the the default, public gw not via tun22
On client:
traceroute to 10.9.0.1 (10.9.0.1), 30 hops max, 38 byte packets
1 10.9.0.1 (10.9.0.1) 59.896 ms 64.123 ms 63.375 ms
traceroute to 192.168.4.1 (192.168.4.1), 30 hops max, 38 byte packets
1 192.168.4.1 (192.168.4.1) 62.194 ms 53.282 ms 67.400 ms
Somehow i had expected to see the 10.9.0.0 network on the 192.168.4.1 trace.. (?)
Any help would great..thx