LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-20-2013, 12:59 PM   #1
makowka
Member
 
Registered: Feb 2007
Posts: 42

Rep: Reputation: 8
VPN connected, cannot browse internet


Hi

I have the following problem: I have established a working VPN connection to my University, but can't browse the internet:

Code:
pppd options in effect:
debug		# (from command line)
nodetach		# (from command line)
persist		# (from /etc/ppp/peers/ZUT)
logfd 2		# (from command line)
dump		# (from command line)
noauth		# (from /etc/ppp/options.pptp)
refuse-pap		# (from /etc/ppp/options.pptp)
refuse-chap		# (from /etc/ppp/options.pptp)
refuse-mschap		# (from /etc/ppp/options.pptp)
refuse-eap		# (from /etc/ppp/options.pptp)
name smak		# (from /etc/ppp/peers/ZUT)
remotename PPTP		# (from /etc/ppp/peers/ZUT)
		# (from /etc/ppp/options.pptp)
pty pptp vpn.zut.edu.pl --nolaunchpppd		# (from /etc/ppp/peers/ZUT)
crtscts		# (from /etc/ppp/options)
		# (from /etc/ppp/options)
asyncmap 0		# (from /etc/ppp/options)
lcp-echo-failure 5		# (from /etc/ppp/options)
lcp-echo-interval 60		# (from /etc/ppp/options)
lcp-max-configure 50		# (from /etc/ppp/options)
hide-password		# (from /etc/ppp/options)
ipparam ZUT		# (from /etc/ppp/peers/ZUT)
nobsdcomp		# (from /etc/ppp/options.pptp)
nodeflate		# (from /etc/ppp/options.pptp)
require-mppe-128		# (from /etc/ppp/peers/ZUT)
noipx		# (from /etc/ppp/options)
using channel 8
Using interface ppp0
Connect: ppp0 <--> /dev/pts/0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf7068f5f> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 1800> <asyncmap 0x0> <auth chap MS-v2> <magic 0xf8f5b749> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <mru 1800> <asyncmap 0x0> <auth chap MS-v2> <magic 0xf8f5b749> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf7068f5f> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xf7068f5f> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xf7068f5f]
rcvd [LCP EchoReq id=0x0 magic=0xf8f5b749]
sent [LCP EchoRep id=0x0 magic=0xf7068f5f]
rcvd [CHAP Challenge id=0x51 <22f7410d73e21552a0da9b3f41d13aab>, name = "pptp"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0x51 <e77f2dbd0fe5d03009d066015089b9080000000000000000db08d778185affdf96256da3bb12e70baab577caf0c18e1900>, name = "smak"]
rcvd [LCP ConfReq id=0x2 <mru 1800> <asyncmap 0x0> <auth chap MS-v2> <magic 0x95c99332> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x6eda897> <pcomp> <accomp>]
sent [LCP ConfAck id=0x2 <mru 1800> <asyncmap 0x0> <auth chap MS-v2> <magic 0x95c99332> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xf7068f5f> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x6eda897> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x6eda897]
rcvd [LCP EchoReq id=0x0 magic=0x95c99332]
sent [LCP EchoRep id=0x0 magic=0x6eda897]
rcvd [CHAP Challenge id=0xcb <79ed5ecca2e8375b80360b8f7a007723>, name = "pptp"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0xcb <73853a41909932ae5dd90b62da013a23000000000000000022352f89d49301b50bea1ebb780fd4f866b5df2ac0b8b9fc00>, name = "smak"]
rcvd [LCP EchoRep id=0x0 magic=0x95c99332]
rcvd [CHAP Success id=0xcb "S=AE1C4D230AE620374FA2A9E7A26507F327307440"]
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
sent [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
MPPE 128-bit stateless compression enabled
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 212.14.24.33>]
sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 212.14.24.33>]
rcvd [IPCP ConfNak id=0x1 <addr 212.14.24.40>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 212.14.24.40>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 212.14.24.40>]
local  IP address 212.14.24.40
remote IP address 212.14.24.33
Script /etc/ppp/ip-up started (pid 4599)
Script /etc/ppp/ip-up finished (pid 4599), status = 0x0

I have managed to establish a working and browsable VPN connection on Windows XP, the attachments show the output of ipconfig and route print.

On my Linux machine, the output of ifconfig is:

Code:
 eth0      Link encap:Ethernet  HWaddr 00:1c:25:92:c9:a4  
          inet addr:192.168.0.11  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27150 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25216 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23268289 (22.1 MiB)  TX bytes:3873104 (3.6 MiB)
          Interrupt:18 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:213 errors:0 dropped:0 overruns:0 frame:0
          TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:33704 (32.9 KiB)  TX bytes:33704 (32.9 KiB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:212.14.24.40  P-t-P:212.14.24.33  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1496  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:62 (62.0 B)  TX bytes:68 (68.0 B)
Output of route -n:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
212.14.24.33    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
212.14.18.106   192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 eth0
What should I do to resemble the routing table from Windows on my Linux machine, that is, to get full connectivity on the VPN? It must be something with the routing table.


Problem solved: I inserted the statement "usepeerdns" into to peers file and made changes to the routing table:

iptables -A OUTPUT -p icmp -j ACCEPT
route del default gw 192.168.0.1
route add default gw 212.14.24.40 dev ppp0

Everything works fine now.
Attached Thumbnails
Click image for larger version

Name:	ipconfig.png
Views:	45
Size:	16.9 KB
ID:	12099   Click image for larger version

Name:	routing.png
Views:	44
Size:	24.5 KB
ID:	12100  

Last edited by makowka; 03-20-2013 at 01:34 PM. Reason: Solved
 
Old 03-20-2013, 05:51 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Please mark the thread as solved, thanks
 
  


Reply


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
connected through vpn but cant browse any site.. fezar.fz Ubuntu 22 09-05-2011 12:11 PM
VPN connected, but can't browse samba shares Likeon Linux - Software 3 11-08-2006 03:02 PM
redhat is connected to the internet, but i cant browse the web??!?! please help myk3 Linux - Networking 4 11-17-2003 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration