You are not logged in.

#1 2022-05-07 05:18:17

mehdi-n
Member
Registered: 2022-05-02
Posts: 4

[SOLVED] pptpclient internet connection problem

I have installed pptpclient package and configured it according to archwiki page. I connect to the wireless modem at my work using wifi-menu and I can verify the wifi connection using netctl list.
As I run the command

sudo pon atimehdi debug dump logfd 2 nodetach

I get this on the terminal:

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/options.pptp)
name norozi             # (from /etc/ppp/peers/atimehdi)
remotename atimehdi             # (from /etc/ppp/peers/atimehdi)
                # (from /etc/ppp/options.pptp)
pty /usr/sbin/pptp 192.168.5.1 --nolaunchpppd           # (from /etc/ppp/peers/atimehdi)
crtscts         # (from /etc/ppp/options)
                # (from /etc/ppp/options)
asyncmap 0              # (from /etc/ppp/options)
lcp-echo-failure 4              # (from /etc/ppp/options)
lcp-echo-interval 30            # (from /etc/ppp/options)
hide-password           # (from /etc/ppp/options)
ipparam atimehdi                # (from /etc/ppp/peers/atimehdi)
proxyarp                # (from /etc/ppp/options)
nobsdcomp               # (from /etc/ppp/options.pptp)
nodeflate               # (from /etc/ppp/options.pptp)
noipx           # (from /etc/ppp/options)
using channel 25
Using interface ppp0
Connect: ppp0 <--> /dev/pts/4
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2a8b2f3e> <pcomp> <accomp>]
rcvd [LCP ConfRej id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <magic 0x2a8b2f3e>]
rcvd [LCP ConfAck id=0x2 <magic 0x2a8b2f3e>]
rcvd [LCP ConfReq id=0x2 <auth chap MS-v2> <mru 1460> <magic 0x1d8f853f>]
sent [LCP ConfAck id=0x2 <auth chap MS-v2> <mru 1460> <magic 0x1d8f853f>]
sent [LCP EchoReq id=0x0 magic=0x2a8b2f3e]
rcvd [CHAP Challenge id=0x1 <1807b206dc09fe583689575adfffb246>, name = "WireLess Bras"]
added response cache entry 0
sent [CHAP Response id=0x1 <bf9bbddc3c771d6cb11761f72e0f14c20000000000000000ea80e76f04f2d7c912433d6c152f2cf8b1d6ce2a95f4b5b500>, name = "norozi"]
rcvd [LCP EchoRep id=0x0 magic=0x1d8f853f]
rcvd [CHAP Success id=0x1 "S=62A6B3C5A4F67B788E51D2E8AC645B509341213D"]
response found in cache (entry 0)
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.5.27>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::90db:4311:efd3:b94b>]
rcvd [IPCP ConfReq id=0x1 <addr 185.119.167.1>]
sent [IPCP ConfAck id=0x1 <addr 185.119.167.1>]
rcvd [proto=0x8281] 01 01 00 04
Unsupported protocol 'MPLSCP' (0x8281) received
sent [LCP ProtRej id=0x3 82 81 01 01 00 04]
rcvd [LCP ProtRej id=0x3 80 57 01 01 00 0e 01 0a 90 db 43 11 ef d3 b9 4b]
Protocol-Reject for 'IPv6 Control Protocol' (0x8057) received
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 192.168.5.27>]
rcvd [IPCP ConfNak id=0x2 <addr 185.119.167.192>]
sent [IPCP ConfReq id=0x3 <addr 185.119.167.192>]
rcvd [IPCP ConfAck id=0x3 <addr 185.119.167.192>]
Cannot determine ethernet address for proxy ARP
local  IP address 185.119.167.192
remote IP address 185.119.167.1
Script /etc/ppp/ip-up started (pid 117560)
Script /etc/ppp/ip-up finished (pid 117560), status = 0x0

The pon command doesn't terminate and this is the ip link result:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 10:c3:7b:65:9f:f0 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether 54:27:1e:78:9e:d5 brd ff:ff:ff:ff:ff:ff
8: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1460 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 3
    link/ppp 

But when I ping some websites, there's no connection. I'm able to connect to the internet with the same user and password using a windows machine or android phone by creating a vpn connection. Also I have no problem connecting to internet with my arch linux system on my home wifi network which doesn't require a pptp connection setup.
Can someone help me solve this problem?

Last edited by mehdi-n (2022-05-10 17:34:40)

Offline

#2 2022-05-07 14:41:35

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,069

Re: [SOLVED] pptpclient internet connection problem

The wiki link you posted doesn't work, probably because the url starts with a / .


What is the output of ip route show when connected ?

Does pinging the ip-address of those websites work ?

Last edited by Lone_Wolf (2022-05-07 14:41:46)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2022-05-09 04:39:50

mehdi-n
Member
Registered: 2022-05-02
Posts: 4

Re: [SOLVED] pptpclient internet connection problem

Lone_Wolf wrote:

The wiki link you posted doesn't work, probably because the url starts with a / .


What is the output of ip route show when connected ?

Does pinging the ip-address of those websites work ?

I fixed the wiki link.
This is the result of ip route show command:

default via 192.168.5.1 dev wlp3s0 proto dhcp src 192.168.5.33 metric 3003 
185.119.167.1 dev ppp0 proto kernel scope link src 185.119.167.108 
192.168.5.0/25 dev wlp3s0 proto dhcp scope link src 192.168.5.33 metric 3003 
192.168.5.1 dev wlp3s0 scope link src 192.168.5.33 

And the ping result for 217.64.195.201 or 142.250.181.174:

PING 217.64.195.201 (217.64.195.201) 56(84) bytes of data.
^C
--- 217.64.195.201 ping statistics ---
62 packets transmitted, 0 received, 100% packet loss, time 61801ms

Offline

#4 2022-05-09 10:14:45

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,069

Re: [SOLVED] pptpclient internet connection problem

Is your/ your work intention to use the vpn to access company servers or for all traffic ?

I'm assuming the latter for now.

as root run

# ip route add default dev ppp0

check ip route show again, it should list a new default route that uses the vpn tunnel.
Try pinging some external websites again.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2022-05-10 17:33:34

mehdi-n
Member
Registered: 2022-05-02
Posts: 4

Re: [SOLVED] pptpclient internet connection problem

Lone_Wolf wrote:

Is your/ your work intention to use the vpn to access company servers or for all traffic ?

I'm assuming the latter for now.

as root run

# ip route add default dev ppp0

check ip route show again, it should list a new default route that uses the vpn tunnel.
Try pinging some external websites again.

This works. Thank you so much.
I assumed that the default setting would be to route all the traffic through vpn.

Offline

#6 2022-05-10 17:48:43

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,069

Re: [SOLVED] pptpclient internet connection problem

Some vpn clients do that, but it's not guaranteed to happen.

If you want to configure it so that such a route is added automatically when connecting the vpn you can use a script :
see https://wiki.archlinux.org/title/PPTP_C … pp/ip-up.d

(it's on the same page you linked, but further down).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB