Pptp client not work

Good Morning,

I currently have a TP-Link router, TL-MR3223-v2. I currently use OpenWRT 14.07, where I have a pptp interface. In openwrt it works normally, but when I update the router to LEDE 17.01.4, the connection does not work. I have already reset the configuration files but it did not work.

Please, post the config files, before and after the update if possible, and any relevant log message.

I tested the interface using lede 17.01.4 on router tl-wr740n-v5, and it worked. The night I will perform the tests on tl-mr3220-v2 and put the log and configuration files.

Log of MR3220 with lede 17.04:

Wed Jan 17 19:49:51 2018 daemon.info procd: - init complete -
Wed Jan 17 19:49:52 2018 kern.info kernel: [   23.816766] eth0: link up (1000Mbps/Full duplex)
Wed Jan 17 19:49:52 2018 kern.info kernel: [   23.820001] br-lan: port 1(eth0) entered forwarding state
Wed Jan 17 19:49:52 2018 kern.info kernel: [   23.825459] br-lan: port 1(eth0) entered forwarding state
Wed Jan 17 19:49:52 2018 daemon.notice netifd: Network device 'eth0' link is up
Wed Jan 17 19:49:52 2018 daemon.notice netifd: bridge 'br-lan' link is up
Wed Jan 17 19:49:52 2018 daemon.notice netifd: Interface 'lan' has link connectivity 
Wed Jan 17 19:49:52 2018 kern.info kernel: [   23.848781] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Wed Jan 17 19:49:52 2018 user.notice firewall: Reloading firewall due to ifup of wan (eth1)
Wed Jan 17 19:49:53 2018 kern.info kernel: [   24.714656] eth1: link up (100Mbps/Full duplex)
Wed Jan 17 19:49:53 2018 kern.info kernel: [   24.717783] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Wed Jan 17 19:49:53 2018 daemon.notice netifd: Network device 'eth1' link is up
Wed Jan 17 19:49:53 2018 daemon.notice netifd: Interface 'wan' has link connectivity 
Wed Jan 17 19:49:53 2018 daemon.notice netifd: Interface 'wan6' has link connectivity 
Wed Jan 17 19:49:53 2018 daemon.notice netifd: Interface 'wan6' is setting up now
Wed Jan 17 19:49:54 2018 kern.info kernel: [   25.823657] br-lan: port 1(eth0) entered forwarding state
Wed Jan 17 19:49:54 2018 daemon.err odhcp6c[979]: Failed to send DHCPV6 message to ff02::1:2 (Address not available)
Wed Jan 17 19:49:55 2018 daemon.notice netifd: vpn (889): Could not resolve server address
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq[1058]: started, version 2.78 cachesize 150
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq[1058]: DNS service limited to local subnets
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq[1058]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq-dhcp[1058]: DHCP, IP range 192.168.4.10 -- 192.168.4.59, lease time 12h
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq[1058]: using local addresses only for domain lan
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq[1058]: reading /tmp/resolv.conf.auto
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq[1058]: using local addresses only for domain lan
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq[1058]: using nameserver 8.8.8.8#53
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq[1058]: read /etc/hosts - 4 addresses
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq[1058]: read /tmp/hosts/dhcp.cfg02411c - 1 addresses
Wed Jan 17 19:49:59 2018 daemon.info dnsmasq-dhcp[1058]: read /etc/ethers - 0 addresses
Wed Jan 17 19:50:00 2018 authpriv.info dropbear[1061]: Child connection from 192.168.4.54:59084
Wed Jan 17 19:50:01 2018 daemon.notice netifd: Interface 'vpn' is now down
Wed Jan 17 19:50:01 2018 daemon.notice netifd: Interface 'vpn' is setting up now
Wed Jan 17 19:50:02 2018 daemon.info pppd[1092]: Plugin pptp.so loaded.
Wed Jan 17 19:50:02 2018 daemon.info pppd[1092]: PPTP plugin version 1.00
Wed Jan 17 19:50:02 2018 daemon.notice pppd[1092]: pppd 2.4.7 started by root, uid 0
Wed Jan 17 19:50:03 2018 kern.info kernel: [   35.417389] pptp-vpn: renamed from ppp0
Wed Jan 17 19:50:03 2018 daemon.info pppd[1092]: Using interface pptp-vpn
Wed Jan 17 19:50:03 2018 daemon.notice pppd[1092]: Connect: pptp-vpn <--> pptp (vpn.xxx.br)
Wed Jan 17 19:50:03 2018 kern.warn kernel: [   35.426094] conntrack: generic helper won't handle protocol 47. Please consider loading the specific helper module.
Wed Jan 17 20:05:12 2018 authpriv.notice dropbear[1061]: Password auth succeeded for 'root' from 192.168.4.54:59084
Wed Jan 17 20:05:13 2018 daemon.info pppd[1092]: System time change detected.

Log MR3220 with openwrt 14.07:

Wed Jan 17 21:16:23 2018 daemon.info dnsmasq[1094]: started, version 2.71 cachesize 150
Wed Jan 17 21:16:23 2018 daemon.info dnsmasq[1094]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC
Wed Jan 17 21:16:23 2018 daemon.info dnsmasq-dhcp[1094]: DHCP, IP range 192.168.4.10 -- 192.168.4.59, lease time 12h
Wed Jan 17 21:16:23 2018 daemon.info dnsmasq[1094]: using local addresses only for domain lan
Wed Jan 17 21:16:23 2018 daemon.info dnsmasq[1094]: reading /tmp/resolv.conf.auto
Wed Jan 17 21:16:23 2018 daemon.info dnsmasq[1094]: using local addresses only for domain lan
Wed Jan 17 21:16:23 2018 daemon.info dnsmasq[1094]: using nameserver 8.8.8.8#53
Wed Jan 17 21:16:23 2018 daemon.info dnsmasq[1094]: read /etc/hosts - 1 addresses
Wed Jan 17 21:16:23 2018 daemon.info dnsmasq[1094]: read /tmp/hosts/dhcp - 1 addresses
Wed Jan 17 21:16:23 2018 daemon.info dnsmasq-dhcp[1094]: read /etc/ethers - 0 addresses
Wed Jan 17 21:16:24 2018 daemon.notice netifd: vpn (1023): Could not resolve server address
Wed Jan 17 21:16:24 2018 user.notice firewall: Reloading firewall due to ifup of wan (eth1)
Wed Jan 17 21:16:29 2018 daemon.notice netifd: Interface 'vpn' is now down
Wed Jan 17 21:16:29 2018 daemon.notice netifd: Interface 'vpn' is setting up now
Wed Jan 17 21:16:30 2018 daemon.notice netifd: vpn (1218): sh: 5 5: bad number
Wed Jan 17 21:16:30 2018 daemon.info pppd[1236]: Plugin pptp.so loaded.
Wed Jan 17 21:16:30 2018 daemon.info pppd[1236]: PPTP plugin version 1.00
Wed Jan 17 21:16:30 2018 daemon.notice pppd[1236]: pppd 2.4.7 started by root, uid 0
Wed Jan 17 21:16:31 2018 daemon.info pppd[1236]: Using interface pptp-vpn
Wed Jan 17 21:16:31 2018 daemon.notice pppd[1236]: Connect: pptp-vpn <--> pptp (vpn.xxx.br)
Wed Jan 17 21:17:31 2018 daemon.info pppd[1236]: System time change detected.
Wed Jan 17 21:17:37 2018 daemon.notice pppd[1236]: CHAP authentication succeeded
Wed Jan 17 21:17:37 2018 daemon.notice pppd[1236]: MPPE 128-bit stateless compression enabled
Wed Jan 17 21:17:37 2018 daemon.notice pppd[1236]: local  IP address 192.168.1.14
Wed Jan 17 21:17:37 2018 daemon.notice pppd[1236]: remote IP address 192.168.1.11
Wed Jan 17 21:17:37 2018 daemon.notice pppd[1236]: primary   DNS address 192.168.1.2
Wed Jan 17 21:17:37 2018 daemon.notice pppd[1236]: secondary DNS address 192.168.1.3
Wed Jan 17 21:17:38 2018 daemon.notice netifd: Network device 'pptp-vpn' link is up
Wed Jan 17 21:17:38 2018 daemon.notice netifd: Interface 'vpn' is now up
Wed Jan 17 21:17:38 2018 user.notice firewall: Reloading firewall due to ifup of vpn (pptp-vpn)
Wed Jan 17 21:17:42 2018 daemon.info dnsmasq[1094]: reading /tmp/resolv.conf.auto
Wed Jan 17 21:17:42 2018 daemon.info dnsmasq[1094]: using local addresses only for domain lan
Wed Jan 17 21:17:42 2018 daemon.info dnsmasq[1094]: using nameserver 192.168.1.2#53
Wed Jan 17 21:17:42 2018 daemon.info dnsmasq[1094]: using nameserver 192.168.1.3#53
Wed Jan 17 21:17:42 2018 daemon.info dnsmasq[1094]: using nameserver 8.8.8.8#53
Wed Jan 17 21:18:58 2018 authpriv.info dropbear[1325]: Child connection from 192.168.4.43:60195
Wed Jan 17 21:19:06 2018 authpriv.notice dropbear[1325]: Password auth succeeded for 'root' from 192.168.4.43:60195

I install the same packges on bouth, ppp-mod-pptp and luci-proto-ppp.

Did you notice this warning?

Also, posting your config files here may help.

1 Like

"/etc/conig/network"

config interface 'vpn'
        option proto 'pptp'
        option server 'vpn.xxx.br'
        option username 'user'
        option password 'password'
        option defaultroute '0'
        option keepalive '5 5'

"/etc/ppp/options.pptp"

noipdefault
noauth
nobsdcomp
nodeflate
idle 0
mppe required,no40,no56,stateless
maxfail 0

"/etc/ppp/options"

#debug
logfile /dev/null
noipdefault
noaccomp
nopcomp
nocrtscts
lock
maxfail 0
lcp-echo-failure 5
lcp-echo-interval 1

In the log there is the error in protocol 47 in lede 17.01.4. I will reinstall it, and I will add the kmod-nf-nathelper-extra package, and post the result. I usually just change the "/etc/config/network" file.

You can also add debug options to see more messages.

Thanks for the help.

I found de error. I build a image for MR3220 with packages ppp-mod-pptp kmod-nf-nathelper-extra for pptp connection and block-mount kmod-fs-ext4 kmod-usb-storage for extroot, put the config files on the router and pptp connection works.

The problem is the kmod-nf-nathelper-extra package that was missing.

Now, I have another error to resolve, when i install some packages via opkg, it returns the error "uci: Parse error (EOF with unterminated ') at line 17, byte 29"

About the uci error: there is an error in one of the files in the /etc/config/ folder; look for a quoted strings ( ' ) that is not properly closed.

https://openwrt.org/docs/guide-user/services/vpn/pptp/client ,chapter 2 Firewall
Maybe that is the problem idk