Joined: 16 Jun 2006 Posts: 133 Location: Kolding, Denmark
Posted: Mon Jun 07, 2010 12:30 Post subject: PPTP broken?
I have a site running DD-WRT
DD-WRT v24-sp2 mega 03/27/09 (SVN revision: 11793) - rather old build. But I havent been at that site for some time, so thats why it havent been upgraded.
The problem is that this site is running PPTPD on DD-WRT router. To that PPTP Daemon 3 other routers running DD-WRT connect to.
After upgrading two of the connecting routers (to the most recent build of pre-SP2) connecting to that site ppp0 and ppp1 seems to get an OpenDNS IP adr - i've configured opendns as my DNS serves for the router, but not for PPTP.
Does anyone know how to solve this. I've tried connecting the two routers with the most recent firmware to eachother via pptp (one as client and the other router af server). The result is the same as above. The ppp0 receives the OpenDNS ip-adr. So my question is if something is broke within pptp in the more recent builds? - Or if theres some other solution to this?
Thanks in advance _________________ 1 x WRT610n V1 (DD-WRT mega build 18000)
1 x ASUS RT-N16 (DD-WRT mega build 18000)
1 x Linksys WRT54GS v1.1(DD-WRT)
1 x ASUS WL500g Deluxe (DD-WRT)
2 x ASUS WL500g Premium (DD-WRT)
1 x Linksys WRT 350N v2 (OpenWRT Backfire 10.03)
I use the PPTP client on DD-WRT to connect two Windows servers together using the RRAS service.
It was working just fine on my WRT150N, but after upgrading to a WRT610N (v24-sp2 Mega build 14311), I have't been able to get it to work.
I can dial out to the other location (which is running on a WRT54G with v24-sp2 build 12533), but I can't receive any incoming connections.
That's even if try to connect using a PC client. It seems that PPTP passthrough isn't working, even though it's checked in the options and port 1723 is open.
If you want to avoid DNS problems then configure the IP directly.
http://forums.opendns.com/comments.php?DiscussionID=2860#Item_5 _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Joined: 16 Jun 2006 Posts: 133 Location: Kolding, Denmark
Posted: Wed Jun 09, 2010 12:04 Post subject:
But actually this must be some sort of bug in the pptp client.
My router is WRT610n running V24SP2-big build 14569
When not specifying anything for Static DNS's under the "Basic Setup" tab, which means leaving DNS1, DNS2 DNS3 set to 0.0.0.0 ppp0 comes up with this (which is correct)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.200.10.1 P-t-P:10.0.0.254 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1438 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:129 (129.0 B) TX bytes:123 (123.0 B)
When specifying
"Static DNS1" 10.200.10.1 and leaving "Static DNS2" and "Static DNS3" at 0.0.0.0 It's still correct, but when specifying OpenDNS as DNS2 208.67.222.222 and DNS3 as 208.67.220.220 ppp0 comes up with this (incorrect)
ppp0 Link encap:Point-to-Point Protocol
inet addr:67.215.65.132 P-t-P:10.0.0.254 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1438 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:129 (129.0 B) TX bytes:123 (123.0 B) _________________ 1 x WRT610n V1 (DD-WRT mega build 18000)
1 x ASUS RT-N16 (DD-WRT mega build 18000)
1 x Linksys WRT54GS v1.1(DD-WRT)
1 x ASUS WL500g Deluxe (DD-WRT)
2 x ASUS WL500g Premium (DD-WRT)
1 x Linksys WRT 350N v2 (OpenWRT Backfire 10.03)
When specifying Static DNS3 as 193.162.153.164 (instead of getting this via DHCP from my ISP) then ppp0 comes up with the right options
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.200.10.1 P-t-P:10.0.0.254 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1438 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:129 (129.0 B) TX bytes:123 (123.0 B)
I dont unsderstand why it doesn't come up right when specifying both OpenDNS servers as static DNS2 and static DNS3.
ANyone who can explain this? Bug? _________________ 1 x WRT610n V1 (DD-WRT mega build 18000)
1 x ASUS RT-N16 (DD-WRT mega build 18000)
1 x Linksys WRT54GS v1.1(DD-WRT)
1 x ASUS WL500g Deluxe (DD-WRT)
2 x ASUS WL500g Premium (DD-WRT)
1 x Linksys WRT 350N v2 (OpenWRT Backfire 10.03)
See my previous post. You're using a domain name instead of an IP for your PPTP client config aren't you? OpenDNS is giving you a bad response to your DNS query. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Then after reboot the ppp0 interface comes up right. Not even with the router ip, but with the ip handed out from the pptpd server.
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.0.0.171 P-t-P:10.0.0.254 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1438 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:303 (303.0 B) TX bytes:291 (291.0 B)
This must cetainly be some sort of bug. Any of the developers or anyone else that can comment on this? _________________ 1 x WRT610n V1 (DD-WRT mega build 18000)
1 x ASUS RT-N16 (DD-WRT mega build 18000)
1 x Linksys WRT54GS v1.1(DD-WRT)
1 x ASUS WL500g Deluxe (DD-WRT)
2 x ASUS WL500g Premium (DD-WRT)
1 x Linksys WRT 350N v2 (OpenWRT Backfire 10.03)
Last edited by avalanche on Wed Jun 09, 2010 18:27; edited 2 times in total
theres no domain name to resolve in any of these... _________________ 1 x WRT610n V1 (DD-WRT mega build 18000)
1 x ASUS RT-N16 (DD-WRT mega build 18000)
1 x Linksys WRT54GS v1.1(DD-WRT)
1 x ASUS WL500g Deluxe (DD-WRT)
2 x ASUS WL500g Premium (DD-WRT)
1 x Linksys WRT 350N v2 (OpenWRT Backfire 10.03)
Joined: 16 Jun 2006 Posts: 133 Location: Kolding, Denmark
Posted: Thu Jun 10, 2010 5:32 Post subject:
But the problem must be beacuse the pptp client tries to resolve a DNS name from somewhere inside the firmware/router settings even though its none pptp client settings. Because a nslookup on the router configured with opendns as DNS gives
And when disabling DNSmasq while connecting the pptp-client everything goes smoothly. _________________ 1 x WRT610n V1 (DD-WRT mega build 18000)
1 x ASUS RT-N16 (DD-WRT mega build 18000)
1 x Linksys WRT54GS v1.1(DD-WRT)
1 x ASUS WL500g Deluxe (DD-WRT)
2 x ASUS WL500g Premium (DD-WRT)
1 x Linksys WRT 350N v2 (OpenWRT Backfire 10.03)
noipdefault
"Disables the default behaviour when no local IP address is specified, which is to determine (if possible) the local IP address from the hostname. With this option, the peer will have to supply the local IP address during IPCP negotiation (unless it specified explicitly on the command line or in an options file)."
And that seems to do the trick. The option noipdefault should definetly be found within the pptp-web-interface. _________________ 1 x WRT610n V1 (DD-WRT mega build 18000)
1 x ASUS RT-N16 (DD-WRT mega build 18000)
1 x Linksys WRT54GS v1.1(DD-WRT)
1 x ASUS WL500g Deluxe (DD-WRT)
2 x ASUS WL500g Premium (DD-WRT)
1 x Linksys WRT 350N v2 (OpenWRT Backfire 10.03)
Joined: 16 Jun 2006 Posts: 133 Location: Kolding, Denmark
Posted: Thu Jun 10, 2010 12:07 Post subject:
This will be the last post (solution) from me in this thread, and then I'll probably send a request for the developers to add a field in the web-interface to specify other options for the pptpd client
My solution for this ended up like this
nvram set pptpd_client_srvsec="mppe required
noipdefault"
nvram commit
Because the pptpd_client_srvsec variable is just taken as it is and put into options.vpn _________________ 1 x WRT610n V1 (DD-WRT mega build 18000)
1 x ASUS RT-N16 (DD-WRT mega build 18000)
1 x Linksys WRT54GS v1.1(DD-WRT)
1 x ASUS WL500g Deluxe (DD-WRT)
2 x ASUS WL500g Premium (DD-WRT)
1 x Linksys WRT 350N v2 (OpenWRT Backfire 10.03)