You are not logged in.

#1 2017-12-13 16:25:40

asergio
Member
Registered: 2017-12-13
Posts: 9

[SOLVED] Problems connecting to my University VPN with PPTP Client

I really need help on this, already search all the web for hours with no progress at all.

I followed this guide (https://wiki.archlinux.org/index.php/PPTP_Client) in order to connect to my University VPN and everything worked just fine. Debugging shows success message and I get a new ppp0 interface with local IP.

The problem is that I get no connect through it at all. I try to ping the server but i get no response, i tried every kind of ping but nothing works.

Any help on this would be great....

Connecting to VPN with debbuging on:

  >  ~ sudo pon UA debug dump logfd 2 nodetach
pppd options in effect:
debug       # (from command line)
nodetach        # (from command line)
logfd 2     # (from command line)
dump        # (from command line)
noauth      # (from /etc/ppp/peers/UA)
refuse-pap      # (from /etc/ppp/options)
refuse-chap     # (from /etc/ppp/options)
refuse-mschap       # (from /etc/ppp/options)
refuse-eap      # (from /etc/ppp/options)
name asergio@ua.pt      # (from /etc/ppp/peers/UA)
remotename UA       # (from /etc/ppp/peers/UA)
        # (from /etc/ppp/peers/UA)
pty pptp vpn.ua.pt --nolaunchpppd       # (from /etc/ppp/peers/UA)
-mru        # (from /etc/ppp/options)
ipparam UA      # (from /etc/ppp/peers/UA)
nobsdcomp       # (from /etc/ppp/peers/UA)
nodeflate       # (from /etc/ppp/peers/UA)
require-mppe-128        # (from /etc/ppp/peers/UA)
using channel 10
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
Error: either "to" is duplicate, or "uid" is a garbage.
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xcdcc4e0e> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <mru 1400> <auth eap> <magic 0x282d5587> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [local:23.45.dc.70.b2.ad.43.66.8f.da.81.d5.45.c9.66.03.00.00.00.00]>]
sent [LCP ConfRej id=0x0 <mru 1400> <callback CBCP> <mrru 1614>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xcdcc4e0e> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth eap> <magic 0x282d5587> <pcomp> <accomp> <endpoint [local:23.45.dc.70.b2.ad.43.66.8f.da.81.d5.45.c9.66.03.00.00.00.00]>]
sent [LCP ConfNak id=0x1 <auth chap MS-v2>]
rcvd [LCP ConfReq id=0x2 <auth chap MS-v2> <magic 0x282d5587> <pcomp> <accomp> <endpoint [local:23.45.dc.70.b2.ad.43.66.8f.da.81.d5.45.c9.66.03.00.00.00.00]>]
sent [LCP ConfAck id=0x2 <auth chap MS-v2> <magic 0x282d5587> <pcomp> <accomp> <endpoint [local:23.45.dc.70.b2.ad.43.66.8f.da.81.d5.45.c9.66.03.00.00.00.00]>]
rcvd [CHAP Challenge id=0x0 <e363eddc1dfb696dc575a30f32f559fa>, name = "VPN-UA"]
added response cache entry 0
sent [CHAP Response id=0x0 <8edd138247c423f118da9ec53a16ae230000000000000000dfa1481754410f68534fc90492c9c0cd7cb64066a7e97c9700>, name = "asergio@ua.pt"]
rcvd [CHAP Success id=0x0 "S=D38A25FA5485C7AEAFA2C2654EF4798A6E963D9C"]
response found in cache (entry 0)
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfReq id=0x4 <mppe +H -M +S -L -D +C>]
sent [CCP ConfNak id=0x4 <mppe +H -M +S -L -D -C>]
rcvd [IPCP ConfReq id=0x5 <addr 192.168.0.20>]
sent [IPCP TermAck id=0x5]
rcvd [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfReq id=0x6 <mppe +H -M +S -L -D -C>]
sent [CCP ConfAck id=0x6 <mppe +H -M +S -L -D -C>]
MPPE 128-bit stateless compression enabled
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.1.182>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 192.168.1.182>]
rcvd [IPCP ConfNak id=0x2 <addr 192.168.0.27>]
sent [IPCP ConfReq id=0x3 <addr 192.168.0.27>]
rcvd [IPCP ConfAck id=0x3 <addr 192.168.0.27>]
rcvd [IPCP ConfReq id=0x7 <addr 192.168.0.20>]

sent [IPCP ConfAck id=0x7 <addr 192.168.0.20>]

local  IP address 192.168.0.27

remote IP address 192.168.0.20

Script /etc/ppp/ip-up started (pid 8159)
Script /etc/ppp/ip-up finished (pid 8159), status = 0x0

ppp0 interface created:

>  ~ ip addr show dev ppp0 
14: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc fq_codel state UNKNOWN group default qlen 3
    link/ppp 
    inet 192.168.0.46 peer 192.168.0.20/32 scope global ppp0
       valid_lft forever preferred_lft forever

Trying to ping server:

X  ~ ping -I ppp0 192.168.0.20
PING 192.168.0.20 (192.168.0.20) from 192.168.0.46 ppp0: 56(84) bytes of data.
^C
--- 192.168.0.20 ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9130ms

I tried some iptables and ip route that i found searching the problem but none had any effect.

Last edited by asergio (2017-12-14 11:04:38)

Offline

#2 2017-12-13 20:07:46

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Problems connecting to my University VPN with PPTP Client

Have you configured the route?

ip route
cat /etc/resolv.conf

Offline

#3 2017-12-14 11:04:00

asergio
Member
Registered: 2017-12-13
Posts: 9

Re: [SOLVED] Problems connecting to my University VPN with PPTP Client

SOLVED

I didn't notice the error that shows up on the debbuging

 Error: either "to" is duplicate, or "uid" is a garbage. 

From this post ( https://bbs.archlinux.org/viewtopic.php?id=224744 ) I read that it was a compatibility problem with iproute2 which was solved in pptp 1.9.0.
It didn't make sense to me because i already have pptp 1.9.0.

X  ~ pptp --version
pptp version 1.9.0

Anyway I tried to downgrade iproute2 from 4.14 to 4.9 with downgrader

~ yaourt -S downgrader
~ sudo downgrader iproute2

That solved my problem and I was able to connect to the VPN with no problems. The only problem I had afterwards was that it wasn't using my University DNS which I solved by adding 'usepeerdns' on my /etc/ppp/options file.

I still don't get it why it won't work with iproute2 4.14 since I have pptp 1.9.0 but at least I can use the VPN now.

Offline

#4 2017-12-14 11:41:55

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: [SOLVED] Problems connecting to my University VPN with PPTP Client

asergio wrote:

I still don't get it why it won't work with iproute2 4.14 since I have pptp 1.9.0 but at least I can use the VPN now.

1.9.0 still has the problem. It has been fixed in git on 2017-12-04, but there hasn't been a release yet. (1.9.0 is from November 2016) You can try to build a git package if you want, and maybe ask for a new release so that the official arch package can be updated.

https://sourceforge.net/p/pptpclient/gi … c86f1fcee/

Edit: I'm not sure, but the maintainer might add this patch if you open a bug report for the arch package. It is likely that it is rejected in favour of pressing upstream for a new release, though.

Last edited by progandy (2017-12-14 11:48:10)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2017-12-15 23:49:04

asergio
Member
Registered: 2017-12-13
Posts: 9

Re: [SOLVED] Problems connecting to my University VPN with PPTP Client

progandy wrote:
asergio wrote:

I still don't get it why it won't work with iproute2 4.14 since I have pptp 1.9.0 but at least I can use the VPN now.

1.9.0 still has the problem. It has been fixed in git on 2017-12-04, but there hasn't been a release yet. (1.9.0 is from November 2016) You can try to build a git package if you want, and maybe ask for a new release so that the official arch package can be updated.

https://sourceforge.net/p/pptpclient/gi … c86f1fcee/

Edit: I'm not sure, but the maintainer might add this patch if you open a bug report for the arch package. It is likely that it is rejected in favour of pressing upstream for a new release, though.

Yeah you're right! It is working with the git version now. Thank you so much!

Offline

Board footer

Powered by FluxBB