Posted: Mon Oct 26, 2009 16:30 Post subject: WHR-G300N PPTP Client - Can't Connect to VPN-Sever IPs
Hi guys
I have a pptp-connection between two dd-wrt devices.
Client: WHR-G300N (dd-wrt 13064) Net 192.168.13.0
Server: WHR-HP-AG108 (dd-wrt 12533) Net: 192.168.12.0
Problem:
I can ping the vpn-server ip(192.168.12.1) from within the vpn-client(ssh 192.168.13.1) but not from the lan-clients(e.g. 192.168.13.102) of the vpn-client.
What kind of routing magic do I have to set up?
Tracert shows me, that my lan-clients take the vpn-client(192.168.13.1) as gateway for all 192.168.12.0 addresses.
I enabled NAT - like often before -, by hitting apply nothing changed BUT with rebooting the router I could connect to the vnp-host and his clients!
But the vpn-host-router could not connect to my clients. "sure thing" I thought, because the NAT is enabled, but I followed the tutorial anyway and set up the routing rule on the now accessible web interface of the vpn-host-router, reboot, and then it worked.
But why having a NAT-option which appears to be useless? So I disabled it on the vpn-client, saved, set up the vpn routing rule on the client too, saved, reboot, all fine!
All vnp-server-clients can see all vpn-client-clients, vice versa.
Not, that I didn't tried the routing rules or the NAT option in the first place.. but I trusted the "apply button". Saving and rebooting seems to be the right way.
so I have a total of 4 sites. I have a perfectly fine connection between two sites (Routers HamRoute
(WRT54G) and MarcRoute (WRT54GL), subnets 192.168.2.0 and 192.168.16.0 restively).
See:
Code:
root@HamRoute:~# ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes
64 bytes from 192.168.16.1: seq=0 ttl=64 time=58.701 ms
64 bytes from 192.168.16.1: seq=1 ttl=64 time=54.928 ms
64 bytes from 192.168.16.1: seq=2 ttl=64 time=56.970 ms
--- 192.168.16.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 54.928/56.866/58.701 ms
root@HamRoute:~# ping 192.168.16.36
PING 192.168.16.36 (192.168.16.36): 56 data bytes
64 bytes from 192.168.16.36: seq=0 ttl=63 time=55.000 ms
64 bytes from 192.168.16.36: seq=1 ttl=63 time=56.206 ms
--- 192.168.16.36 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 55.000/55.603/56.206 ms
root@HamRoute:~#
I am trying to add a new Router (HolzRoute (WHR-G300n) subnet 192.168.4.0). This router is supposed to connect
to HamRoute, which I want to use as my hub. As we can see from the routing table at HamRoute, the routing is
set up correctly. However I cannot ping HolzRoute (192.168.4.1) from HamRoute:
Code:
root@HamRoute:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
213.191.89.20 * 255.255.255.255 UH 0 0 0 ppp0
192.168.4.1 * 255.255.255.255 UH 0 0 0 ppp1
192.168.16.1 * 255.255.255.255 UH 0 0 0 ppp2
192.168.4.0 192.168.4.1 255.255.255.0 UG 0 0 0 ppp1
192.168.2.0 * 255.255.255.0 U 0 0 0 br0
192.168.16.0 192.168.16.1 255.255.255.0 UG 0 0 0 ppp2
169.254.0.0 * 255.255.0.0 U 0 0 0 br0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default lo1.br01.fra.de 0.0.0.0 UG 0 0 0 ppp0
root@HamRoute:~# ping 192.168.4.1
PING 192.168.4.1 (192.168.4.1): 56 data bytes
The Routing table at HolzRoute looks similar. However, I can ping both HamRoute and a server in the
192.168.2.0 network:
Code:
root@HolzRoute:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
88.68.192.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.2.1 * 255.255.255.255 UH 0 0 0 ppp1
192.168.4.50 * 255.255.255.255 UH 0 0 0 ppp2
192.168.4.0 * 255.255.255.0 U 0 0 0 ppp1
192.168.4.0 * 255.255.255.0 U 0 0 0 br0
192.168.50.0 192.168.2.1 255.255.255.0 UG 0 0 0 ppp1
192.168.2.0 192.168.2.1 255.255.255.0 UG 0 0 0 ppp1
169.254.0.0 * 255.255.0.0 U 0 0 0 br0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default dslb-088-068-19 0.0.0.0 UG 0 0 0 ppp0
root@HolzRoute:~# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
64 bytes from 192.168.2.1: seq=0 ttl=64 time=59.937 ms
64 bytes from 192.168.2.1: seq=1 ttl=64 time=51.673 ms
--- 192.168.2.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 51.673/55.805/59.937 ms
root@HolzRoute:~# ping 192.168.2.13
PING 192.168.2.13 (192.168.2.13): 56 data bytes
64 bytes from 192.168.2.13: seq=0 ttl=127 time=66.432 ms
64 bytes from 192.168.2.13: seq=1 ttl=127 time=60.685 ms
--- 192.168.2.13 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 60.685/63.558/66.432 ms
Here are the VPN Setups:
HamRoute MarcRoute HolzRoute
If it helps, I can also show the advanced networking settings.
I have rebooted all routers multiple times without any change.