OpenWrt Forum Archive

Topic: PPTP VPN on 8.09 RC1 error

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I'm facing a strange error, when trying to set up the PPTP VPN between the router and a XP client. The tunnel builds up just fint, but the endpoint is 192.168.0.1 on the router side ALWAYS (regardless of the configuration). Is this a bug or it's normal?
The internal lan uses 192.168.1.0/24 with dhcp from 100 to 200.

options.pptp:

root@OpenWrt:~# cat /etc/ppp/options.pptpd
#debug
logfile /tmp/pptp-server.log
192.168.1.200:
auth
name "pptp-server"
lcp-echo-failure 3
lcp-echo-interval 60
default-asyncmap
mtu 1482
mru 1482
nobsdcomp
nodeflate
#noproxyarp
#nomppc
#a windows sharekhez
proxyarp
mppe required,no40,no56,stateless
require-mschap-v2
refuse-chap
refuse-mschap
refuse-eap
refuse-pap
#ms-dns 192.168.1.1
#plugin radius.so
#radius-config-file /etc/radius.conf
root@OpenWrt:~#

And another question: is it possible to set the route on the client side, that the 192.168.1.0/24 is always routed via the tunnel?

Thanks,

          Tom

You can configure the tunnel ips for the server and client side in /etc/pptpd.conf
e.g.

localip 192.168.1.200
remoteip 192.168.1.201-209

To set the default route into the tunnel, use "defaultroute" in the options-file on a linux client.
For a Windows XP client, activate "use default gateway" in the advanced TCP/IP settings of the VPN connection (I cannot tell you the exact terms, because I'm running a non-english version of XP).

I did not set it in pptpd.conf, because it said:

root@FerroRouter:/etc# cat pptpd.conf 
#debug
option /etc/ppp/options.pptpd
speed 115200
stimeout 10

#localip & remoteip are not needed, ip management is done by ppp
MMCM wrote:

You can configure the tunnel ips for the server and client side in /etc/pptpd.conf
e.g.

localip 192.168.1.200
remoteip 192.168.1.201-209

To set the default route into the tunnel, use "defaultroute" in the options-file on a linux client.
For a Windows XP client, activate "use default gateway" in the advanced TCP/IP settings of the VPN connection (I cannot tell you the exact terms, because I'm running a non-english version of XP).

What's the point setting one local ip and multiple remote IPs? Than only 1 client can connect at a time, right?

Meanwhile, I've done it, I think. Set 10 local ip-s (with no remote ips) and it's working now (also set the 'defaultroute')

Thanks!

Can someone please advise me what settings for poptop (pptpd) i need to change and what iptables rules i need to add for this to work?

It's really driving me crazy as i cannot get it working.

The discussion might have continued from here.