LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   VPN connected, cannot browse internet (https://www.linuxquestions.org/questions/linux-networking-3/vpn-connected-cannot-browse-internet-4175454876/)

makowka 03-20-2013 12:59 PM

VPN connected, cannot browse internet
 
2 Attachment(s)
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.

kbp 03-20-2013 05:51 PM

Please mark the thread as solved, thanks


All times are GMT -5. The time now is 11:43 PM.