You are not logged in.

#1 2017-10-12 11:11:00

tragicomix
Member
Registered: 2017-10-12
Posts: 3

Modem hangup with PPTP VPN connection

Hi,

I have been trying to connect to my university network using a PPTP VPN connection (with MPPE and authentication with mschap2) without success for the last couple of days. I have reinstalled Arch this morning, thinking that it could resolve the issue, but it didn't, so I am posting here as a last resort.

I have tried configuring the VPN both through NetworkManager and manually by changing the files in /etc/ppp (and testing it with pon in this case), and I always get the  error "Modem hangup" after two minutes of being connected. And although the program says that I am connected during these two minutes, ssh connections to the university servers don't work.

I should also say that I have tried connecting on Ubuntu with my brother's computer, and that works fine, so the problem is coming from my laptop.

Here is the configuration of the corresponding system connection written by Network-Manager.

[connection]
id=****** VPN
uuid=09539d0f-b6a0-4b7e-a913-d7a2bbe53cb4
type=vpn
autoconnect=false
permissions=
timestamp=1507803742

[vpn]
gateway=vpn.******
lcp-echo-failure=5
lcp-echo-interval=30
password-flags=2
refuse-chap=yes
refuse-eap=yes
refuse-pap=yes
require-mppe=yes
user=*****
service-type=org.freedesktop.NetworkManager.pptp

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=auto

Here is the log from pppd when trying to connect using network manager:

Oct 12 12:56:18 my_hostname pppd[21066]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Oct 12 12:56:18 my_hostname pppd[21066]: pppd 2.4.7 started by root, uid 0
Oct 12 12:56:18 my_hostname pppd[21066]: Using interface ppp0
Oct 12 12:56:18 my_hostname pppd[21066]: Connect: ppp0 <--> /dev/pts/7
Oct 12 12:56:20 my_hostname pppd[21066]: CHAP authentication succeeded
Oct 12 12:56:20 my_hostname pppd[21066]: MPPE 128-bit stateless compression enabled
Oct 12 12:56:20 my_hostname pppd[21066]: Cannot determine ethernet address for proxy ARP
Oct 12 12:56:20 my_hostname pppd[21066]: local  IP address 129.31.241.147
Oct 12 12:56:20 my_hostname pppd[21066]: remote IP address 193.61.68.227
Oct 12 12:56:20 my_hostname pppd[21066]: primary   DNS address 155.198.142.7
Oct 12 12:56:20 my_hostname pppd[21066]: secondary DNS address 155.198.142.8
Oct 12 12:58:25 my_hostname pppd[21066]: Modem hangup
Oct 12 12:58:25 my_hostname pppd[21066]: Connect time 2.1 minutes.
Oct 12 12:58:25 my_hostname pppd[21066]: Sent 1816097444 bytes, received 0 bytes.
Oct 12 12:58:25 my_hostname pppd[21066]: MPPE disabled
Oct 12 12:58:25 my_hostname pppd[21066]: Connection terminated.
Oct 12 12:58:25 my_hostname pppd[21066]: Terminating on signal 15
Oct 12 12:58:25 my_hostname pppd[21066]: Exit.

Here are the outputs of ip route before and after the connection is made:

default via 192.168.1.1 dev wlp2s0 src 192.168.1.9 metric 303 
192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.9 metric 303 
192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.10 metric 600 
193.61.68.227 via 192.168.1.1 dev wlp2s0 proto static metric 600 
default dev ppp0 proto static scope link metric 50 
default via 192.168.1.1 dev wlp2s0 proto static metric 600 
192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.9 metric 303 
192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.10 metric 600 
192.168.1.1 dev wlp2s0 proto static scope link metric 600 
193.61.68.227 via 192.168.1.1 dev wlp2s0 proto static metric 600 
193.61.68.242 dev ppp0 proto kernel scope link src 129.31.244.220 metric 50 

And here are my ppp configuration in /etc/ppp/peers/my_channel and the associated log:

# written by pptpsetup
pty "pptp vpn.********* --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name *****
remotename my_tunnel
ipparam my_tunnel
require-mppe-128
$ pon my_tunnel debug dump logfd 2 nodetach

Oct 12 13:02:51 my_hostname pppd[23147]: pppd options in effect:
Oct 12 13:02:51 my_hostname pppd[23147]: debug                # (from command line)
Oct 12 13:02:51 my_hostname pppd[23147]: nodetach                # (from command line)
Oct 12 13:02:51 my_hostname pppd[23147]: logfd 2                # (from command line)
Oct 12 13:02:51 my_hostname pppd[23147]: dump                # (from command line)
Oct 12 13:02:51 my_hostname pppd[23147]: noauth                # (from /etc/ppp/peers/my_tunnel)
Oct 12 13:02:51 my_hostname pppd[23147]: name *****                # (from /etc/ppp/peers/my_tunnel)
Oct 12 13:02:51 my_hostname pppd[23147]: remotename my_tunnel                # (from /etc/ppp/peers/my_tunnel)
Oct 12 13:02:51 my_hostname pppd[23147]:                 # (from /etc/ppp/peers/my_tunnel)
Oct 12 13:02:51 my_hostname pppd[23147]: pty pptp vpn.******** --nolaunchpppd                # (from /etc/ppp/peers/my_tunnel)
Oct 12 13:02:51 my_hostname pppd[23147]: crtscts                # (from /etc/ppp/options)
Oct 12 13:02:51 my_hostname pppd[23147]:                 # (from /etc/ppp/options)
Oct 12 13:02:51 my_hostname pppd[23147]: asyncmap 0                # (from /etc/ppp/options)
Oct 12 13:02:51 my_hostname pppd[23147]: lcp-echo-failure 4                # (from /etc/ppp/options)
Oct 12 13:02:51 my_hostname pppd[23147]: lcp-echo-interval 30                # (from /etc/ppp/options)
Oct 12 13:02:51 my_hostname pppd[23147]: hide-password                # (from /etc/ppp/options)
Oct 12 13:02:51 my_hostname pppd[23147]: ipparam my_tunnel                # (from /etc/ppp/peers/my_tunnel)
Oct 12 13:02:51 my_hostname pppd[23147]: proxyarp                # (from /etc/ppp/options)
Oct 12 13:02:51 my_hostname pppd[23147]: nobsdcomp                # (from /etc/ppp/peers/my_tunnel)
Oct 12 13:02:51 my_hostname pppd[23147]: nodeflate                # (from /etc/ppp/peers/my_tunnel)
Oct 12 13:02:51 my_hostname pppd[23147]: require-mppe-128                # (from /etc/ppp/peers/my_tunnel)
Oct 12 13:02:51 my_hostname pppd[23147]: noipx                # (from /etc/ppp/options)
Oct 12 13:02:51 my_hostname pppd[23147]: pppd 2.4.7 started by root, uid 0
Oct 12 13:02:51 my_hostname pppd[23147]: using channel 5
Oct 12 13:02:51 my_hostname pppd[23147]: Using interface ppp0
Oct 12 13:02:51 my_hostname pppd[23147]: Connect: ppp0 <--> /dev/pts/4
Oct 12 13:02:52 my_hostname pppd[23147]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe26dbff0> <pcomp> <accomp>]
Oct 12 13:02:52 my_hostname pppd[23147]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0xa363338c> <pcomp> <accomp>]
Oct 12 13:02:52 my_hostname pppd[23147]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0xa363338c> <pcomp> <accomp>]
Oct 12 13:02:52 my_hostname pppd[23147]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xe26dbff0> <pcomp> <accomp>]
Oct 12 13:02:52 my_hostname pppd[23147]: sent [LCP EchoReq id=0x0 magic=0xe26dbff0]
Oct 12 13:02:52 my_hostname pppd[23147]: rcvd [LCP EchoReq id=0x0 magic=0xa363338c]
Oct 12 13:02:52 my_hostname pppd[23147]: sent [LCP EchoRep id=0x0 magic=0xe26dbff0]
Oct 12 13:02:52 my_hostname pppd[23147]: rcvd [CHAP Challenge id=0xe7 <059bb498775ba0229ae4064162e2c974>, name = "pptpd"]
Oct 12 13:02:52 my_hostname pppd[23147]: added response cache entry 0
Oct 12 13:02:52 my_hostname pppd[23147]: sent [CHAP Response id=0xe7 <5c3f906b832e66b31c0a1f3e8f5a63fc000000000000000009b1b866ea867d56084b88cc444486c2effd97
Oct 12 13:02:53 my_hostname pppd[23147]: rcvd [LCP EchoRep id=0x0 magic=0xa363338c]
Oct 12 13:02:53 my_hostname pppd[23147]: rcvd [CHAP Success id=0xe7 "S=9C9E3316095BC22F8450525AFD1C69A6329E5439"]
Oct 12 13:02:53 my_hostname pppd[23147]: response found in cache (entry 0)
Oct 12 13:02:53 my_hostname pppd[23147]: CHAP authentication succeeded
Oct 12 13:02:53 my_hostname pppd[23147]: sent [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
Oct 12 13:02:53 my_hostname pppd[23147]: rcvd [CCP ConfReq id=0x1 <mppe +H -M +S +L -D -C>]
Oct 12 13:02:53 my_hostname pppd[23147]: sent [CCP ConfNak id=0x1 <mppe +H -M +S -L -D -C>]
Oct 12 13:02:53 my_hostname pppd[23147]: rcvd [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
Oct 12 13:02:53 my_hostname pppd[23147]: rcvd [CCP ConfReq id=0x2 <mppe +H -M +S -L -D -C>]
Oct 12 13:02:53 my_hostname pppd[23147]: sent [CCP ConfAck id=0x2 <mppe +H -M +S -L -D -C>]
Oct 12 13:02:53 my_hostname pppd[23147]: MPPE 128-bit stateless compression enabled
Oct 12 13:02:53 my_hostname pppd[23147]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.1.9>]
Oct 12 13:02:53 my_hostname pppd[23147]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 193.61.68.242>]
Oct 12 13:02:53 my_hostname pppd[23147]: sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 193.61.68.242>]
Oct 12 13:02:53 my_hostname pppd[23147]: rcvd [IPCP ConfNak id=0x1 <addr 129.31.245.174>]
Oct 12 13:02:53 my_hostname pppd[23147]: sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 129.31.245.174>]
Oct 12 13:02:53 my_hostname pppd[23147]: rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 129.31.245.174>]
Oct 12 13:02:53 my_hostname pppd[23147]: Cannot determine ethernet address for proxy ARP
Oct 12 13:02:53 my_hostname pppd[23147]: local  IP address 129.31.245.174
Oct 12 13:02:53 my_hostname pppd[23147]: remote IP address 193.61.68.242
Oct 12 13:02:53 my_hostname pppd[23147]: Script /etc/ppp/ip-up started (pid 23159)
Oct 12 13:02:53 my_hostname pppd[23147]: Script /etc/ppp/ip-up finished (pid 23159), status = 0x0
Oct 12 13:04:58 my_hostname pppd[23147]: Modem hangup
Oct 12 13:04:58 my_hostname pppd[23147]: Connect time 2.1 minutes.
Oct 12 13:04:58 my_hostname pppd[23147]: Sent 1992658138 bytes, received 0 bytes.
Oct 12 13:04:58 my_hostname pppd[23147]: Script /etc/ppp/ip-down started (pid 23429)
Oct 12 13:04:58 my_hostname pppd[23147]: MPPE disabled
Oct 12 13:04:58 my_hostname pppd[23147]: sent [LCP TermReq id=0x2 "MPPE disabled"]
Oct 12 13:04:58 my_hostname pppd[23147]: Connection terminated.
Oct 12 13:04:58 my_hostname pppd[23147]: Script pptp vpn.******** --nolaunchpppd finished (pid 23148), status = 0x0
Oct 12 13:04:58 my_hostname pppd[23147]: Script /etc/ppp/ip-down finished (pid 23429), status = 0x0
Oct 12 13:04:58 my_hostname pppd[23147]: Exit.

Does anyone have experience with this type of error? Any help would be greatly appreciated!

Thank you.

EDIT: By searching on this forum, I noticed that other people experienced a similar problem, but I haven't found a solution yet. I tried upgrading pptpclient to version 1.9, and it didn't work.

SECOND EDIT: It turns out that my university also accepts connection using the openvpn protocol, although the option was not documented for linux users. Thankfully, that works on my computer.

Last edited by tragicomix (2017-10-13 09:21:51)

Offline

Board footer

Powered by FluxBB