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 firstname.lastname@example.org: /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 126.96.36.199 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?
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̳̗͍
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?
Check your network configurations in /etc/rc.conf or /etc/network-profiles/*.