View previous topic :: View next topic |
Author |
Message |
juancho n00b
Joined: 17 Jul 2003 Posts: 6 Location: Starkville MS
|
Posted: Fri Oct 20, 2006 7:09 pm Post subject: vpn connects but no access to network |
|
|
In order to connect to the university's wireless network, I have to vpn (vpnc).
I can connect to the AP fine, and everything seems to go alright when i run vpnc, but I get no access to the network. Resolv.conf shows the correct nameservers, but I found out that I'm not receiving anything from the tun0 interface.
Code: |
eth1 Link encap:Ethernet HWaddr 00:0E:35:2D:77:F0
inet addr:10.1.12.139 Bcast:10.1.255.255 Mask:255.255.0.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:94 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18240 (17.8 Kb) TX bytes:7642 (7.4 Kb)
Interrupt:11 Base address:0x2000 Memory:c0214000-c0214fff
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:130.18.107.182 P-t-P:130.18.107.182 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1390 Metric:1
[b]RX packets:0 errors:0 dropped:0 overruns:0 frame:0[/b]
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:2472 (2.4 Kb)
|
Also, i have buddy whose connection works fine, and our routes are different
Mine(broken):
Code: |
T42 ~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.0.0 0.0.0.0 255.255.0.0 U 2000 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 tun0
|
His(works):
Code: |
macbookpro ~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
130.18.0.100 10.1.0.1 255.255.255.255 UGH 0 0 0 ath0
10.1.0.0 0.0.0.0 255.255.0.0 U 2000 0 0 ath0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 tun0
|
His ifconfig:
Code: |
ath0 Link encap:Ethernet HWaddr 00:16:CB:07:A7:84
inet addr:10.1.8.127 Bcast:10.1.255.255 Mask:255.255.0.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1781 errors:0 dropped:0 overruns:0 frame:0
TX packets:1813 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1593711 (1.5 Mb) TX bytes:510797 (498.8 Kb)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:130.18.105.84 P-t-P:130.18.105.84 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1390 Metric:1
RX packets:1737 errors:0 dropped:0 overruns:0 frame:0
TX packets:1646 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:1474932 (1.4 Mb) TX bytes:378854 (369.9 Kb)
|
It seems that when i connect to vpn, my vpn'd eth1(wireless) connection doesn't get added to my route, while on my friend's computer it does get added. (His is ath0)
I guess i just need a way to edit route and add eth1 to the corresponding tun0 address/gateway. Did any of that make sense?, any help? _________________ n00b |
|
Back to top |
|
|
I.C.Wiener Tux's lil' helper
Joined: 25 Jul 2004 Posts: 115 Location: Furtwangen (Germany)
|
Posted: Fri Oct 20, 2006 10:12 pm Post subject: |
|
|
Weird, as far as I remember the manual said somthing like "vpnc won't take care about routes at all, this must be done by the user".
Whatever... my guess is the vpn-server is running on 130.18.0.100 (right?)
and before connecting you probably had a default gw set like this:
Code: |
Destination Gateway Genmask Flags Metric Ref Use
Iface
...
0.0.0.0 10.1.0.1 0.0.0.0 U 0 0 0 eth1
|
By connecting to the vpn, your default gw gets somehow overriden with this:
Code: |
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 tun0
|
and now you lost the route to the vpn-server which makes your shiny new route to the outside wolrd via tun0 unusable as well.
Before staring vpnc try this:
Code: |
route add 130.18.0.100 gw 10.1.0.1
|
|
|
Back to top |
|
|
juancho n00b
Joined: 17 Jul 2003 Posts: 6 Location: Starkville MS
|
Posted: Tue Oct 24, 2006 3:31 am Post subject: |
|
|
that did it. thanks _________________ n00b |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|