You are not logged in.

#1 2006-04-21 22:15:52

anadyr
Member
Registered: 2005-02-10
Posts: 225

setting up dns and routing with vpnc

Hey people,

I gave up trying to install Cisco VPN on my system, so I try to install vpnc again (even though it never worked)...
OK, the thing is this, I install it, and start it with a good config file, but then my internet goes down. it seems that the dns servers are not used. So I need to get those dns servers to work again.
Secondly routing is not working properly. I have read quite a bit on several forums, but it is nowhere explained properly how to fix this....
this is the output of route -n before I start up vpnc:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 ra0
0.0.0.0         192.168.2.1     0.0.0.0         UG    0      0        0 ra0

then I start vpnc (which sort of gives an error):

[root@anadyr etc]# vpnc
Enter password for 0259470@145.18.40.71: 
/etc/vpnc/vpnc-script: line 89: /var/run/vpnc/defaultroute: No such file or directory
VPNC started in background (pid: 4061)...

and then, the output of route -n after I start vpnc:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
145.18.40.71    192.168.2.1     255.255.255.255 UGH   0      0        0 ra0
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 ra0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 tun0

and then dns doesnt work anymore. So somehow I have to set up routing properly, and get the dns servers to work again.
Now, Ive read that I have to look at /etc/vpnc/vpnc-script, and configure it, but I have no idea what to change, and there is no documentation whatsoever to be found anywhere, not even in the file.
Can anybody help me setting this up?

thanks!
rogier

Offline

#2 2006-04-21 23:21:49

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: setting up dns and routing with vpnc

http://www.gentoo.org/doc/en/draft/vpnc-howto.xml

Usually, when the VPN tunnel is started, vpnc sets the default route to the tunnel. So you must set your default route back to normal, so that things work as expected.

7.1: Resetting your default route
# route add default gw 192.168.0.1


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2006-04-23 20:11:06

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: setting up dns and routing with vpnc

tried many things, but it didnt work. But I have found the problem: with it I can use vpnc, and Cisco VPN as well. So what was the problem: I started the wireless daemon /etc/rc.d/wireless, to get access to the internet, but not the network daemon. And for some odd reason, when I run /etc/rc.d/network start, vpnc, and Cisco VPN works without a problem...

Well, anyways, I find this quite strange... Then I have another thing (not really a problem. when I start the network daemon again, it gives this error:
SIOCADDRT: Network is unreachable
and then status: fail. But the network starts fine. What is this error, and how do I get rid of it?

Offline

#4 2006-04-24 05:43:53

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: setting up dns and routing with vpnc

Check your network configurations in /etc/rc.conf or /etc/network-profiles/*.

Greets

dojo

Offline

Board footer

Powered by FluxBB