LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-23-2012, 06:57 PM   #1
veggen
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Rep: Reputation: Disabled
Connecting to VPN via pptp blocks my internet


When I connect to VPN via pptp (haven't tried anything else) I can no longer open any site or SSH to anything.
Pinging google reveals that I do, in fact, have connection. I can even telnet to google.
A similar post found here gave me some idea but I still can not solve it.

Here are my routing tables before and after connecting to VPN:

--before--
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
host-206.gotame 192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
host-224.gotame 192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
192.168.0.0     *               255.255.255.0   U     1      0        0 eth0
--after--

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     0      0        0 ppp0
10.48.4.1       *               255.255.255.255 UH    0      0        0 ppp0
62.20.21.206    192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
62.20.21.224    192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
62.20.21.224    192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
192.168.0.0     *               255.255.255.0   U     1      0        0 eth0
I checked what my /etc/ppp/resolve.conf looks like and found this:
nameserver 10.48.20.107
nameserver 10.33.20.250

It's the same before and after VPN.

I also tried commenting out usepeerdns from /etc/ppp/peers/dsl-provider (god knows if that made any sense).

It should be noted that once, the second time I tried (no options changed or anything), the internet worked normally while on VPN, but that was the only time.

I've also tried restarting networking (sudo /etc/init.d/networking restart) a couple of times.

I'm on Mint 12, but the same happened on Ubuntu 11.04.

Does anyone have any clue what might be wrong? I'd very much appreciate any help...

Last edited by veggen; 05-23-2012 at 07:09 PM.
 
Old 05-24-2012, 08:30 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 602

Rep: Reputation: 49
Your default gateway is redirected through the VPN adapter (ppp0). It is a setting that the VPN provider made, probably for security reasons.

You can try to talk to them and ask them to change this setting.
 
Old 05-24-2012, 12:06 PM   #3
veggen
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hey, thanks for replying... but your explanation doesn't really fit the bill. I'm saying that because I can boot into Windows, on the same machine, connect to the very same VPN, and not have this problem (posting this very message while connected).
I tried applying "Use this network only for connections on its network" and "Ignore automatically obtained routes" (I guess this is the usepeerdns thing the other thread mentioned), and now I can open regular sites (like google), albeit incredibly slow (much slower than on Windows), I can ping the servers I needed the VPN for, but still can not SSH to them or open the app hosted there from the browser (times out).

Routs after these changes:

Code:
route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
10.48.4.1       *               255.255.255.255 UH    0      0        0 ppp0
host-224.gotame 192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
host-224.gotame 192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
192.168.0.0     *               255.255.255.0   U     1      0        0 eth0
Syslog had this to say:

Code:
May 24 19:40:47 tetris NetworkManager[834]: <info> Starting VPN service 'pptp'...
May 24 19:40:47 tetris NetworkManager[834]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 6710
May 24 19:40:47 tetris NetworkManager[834]: <info> VPN service 'pptp' appeared; activating connections
May 24 19:40:47 tetris NetworkManager[834]: <info> VPN plugin state changed: 1
May 24 19:40:47 tetris NetworkManager[834]: <info> VPN plugin state changed: 3
May 24 19:40:47 tetris NetworkManager[834]: <info> VPN connection 'Work' (Connect) reply received.
May 24 19:40:47 tetris pppd[6712]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
May 24 19:40:47 tetris pppd[6712]: pppd 2.4.5 started by root, uid 0
May 24 19:40:47 tetris pppd[6712]: Using interface ppp0
May 24 19:40:47 tetris pppd[6712]: Connect: ppp0 <--> /dev/pts/1
May 24 19:40:47 tetris NetworkManager[834]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
May 24 19:40:47 tetris NetworkManager[834]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
May 24 19:40:47 tetris pptp[6715]: nm-pptp-service-6710 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
May 24 19:40:47 tetris pptp[6723]: nm-pptp-service-6710 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
May 24 19:40:47 tetris pptp[6723]: nm-pptp-service-6710 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
May 24 19:40:47 tetris pptp[6723]: nm-pptp-service-6710 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
May 24 19:40:48 tetris pptp[6723]: nm-pptp-service-6710 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
May 24 19:40:48 tetris pptp[6723]: nm-pptp-service-6710 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
May 24 19:40:48 tetris pptp[6723]: nm-pptp-service-6710 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 57083).
May 24 19:40:49 tetris pptp[6723]: nm-pptp-service-6710 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0
May 24 19:40:49 tetris pptp[6723]: nm-pptp-service-6710 log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is 00000000, recv_accm is FFFFFFFF
May 24 19:40:49 tetris pptp[6723]: nm-pptp-service-6710 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
May 24 19:40:49 tetris pppd[6712]: CHAP authentication succeeded
May 24 19:40:49 tetris pppd[6712]: MPPE 128-bit stateless compression enabled
May 24 19:40:50 tetris pppd[6712]: local  IP address 10.48.4.9
May 24 19:40:50 tetris pppd[6712]: remote IP address 10.48.4.1
May 24 19:40:50 tetris pppd[6712]: primary   DNS address 10.48.20.107
May 24 19:40:50 tetris pppd[6712]: secondary DNS address 10.33.20.250
May 24 19:40:50 tetris NetworkManager[834]: <info> VPN connection 'Work' (IP Config Get) reply received.
May 24 19:40:50 tetris NetworkManager[834]: <info> VPN Gateway: 62.20.21.224
May 24 19:40:50 tetris NetworkManager[834]: <info> Tunnel Device: ppp0
May 24 19:40:50 tetris NetworkManager[834]: <info> Internal IP4 Address: 10.48.4.9
May 24 19:40:50 tetris NetworkManager[834]: <info> Internal IP4 Prefix: 32
May 24 19:40:50 tetris NetworkManager[834]: <info> Internal IP4 Point-to-Point Address: 10.48.4.1
May 24 19:40:50 tetris NetworkManager[834]: <info> Maximum Segment Size (MSS): 0
May 24 19:40:50 tetris NetworkManager[834]: <info> Forbid Default Route: no
May 24 19:40:50 tetris NetworkManager[834]: <info> Internal IP4 DNS: 10.48.20.107
May 24 19:40:50 tetris NetworkManager[834]: <info> Internal IP4 DNS: 10.33.20.250
May 24 19:40:50 tetris NetworkManager[834]: <info> DNS Domain: '(none)'
May 24 19:40:51 tetris NetworkManager[834]: <info> VPN connection 'Work' (IP Config Get) complete.
May 24 19:40:51 tetris NetworkManager[834]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
May 24 19:40:51 tetris NetworkManager[834]: <info> VPN plugin state changed: 4
May 24 19:40:51 tetris dbus[810]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
May 24 19:40:51 tetris dbus[810]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 24 19:41:28 tetris ntpdate[6774]: adjust time server 91.189.94.4 offset -0.006705 sec
Any ideas?

Last edited by veggen; 05-24-2012 at 12:50 PM.
 
Old 05-25-2012, 02:10 AM   #4
veggen
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I've just tried the same from my netbook running Bodhi Linux (also Ubuntu based, like Mint that I'm running on desktop), and with all configs the same, it worked without a hitch. Fast too.

Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     0      0        0 ppp0
10.33.4.1       *               255.255.255.255 UH    0      0        0 ppp0
62.20.21.206    192.168.0.1     255.255.255.255 UGH   0      0        0 wlan0
62.20.21.206    192.168.0.1     255.255.255.255 UGH   0      0        0 wlan0
192.168.0.0     *               255.255.255.0   U     2      0        0 wlan0

Last edited by veggen; 05-25-2012 at 02:12 AM.
 
  


Reply

Tags
internet, pptp, vpn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No Internet traffic through the PPTP VPN connection tghasemi Linux - Server 2 05-21-2012 10:40 AM
PPTP VPN --> No internet ! devilboy09 Linux - Server 2 02-17-2012 10:42 AM
LXer: Linux Configure point to point tunneling PPTP VPN client for Microsoft PPTP vpn server LXer Syndicated Linux News 0 06-13-2007 08:46 AM
Problems connecting to VPN with PPTP Brevity Linux - Networking 2 03-12-2005 10:44 PM
VPN blocks internet access from laptop cmisip Linux - Security 6 07-16-2003 05:33 AM


All times are GMT -5. The time now is 08:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration