LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-28-2004, 01:31 PM   #1
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Rep: Reputation: 30
vpnc headaches...


trying to get VPNC working on my Toshiba laptop.

the config file is below.
when I connect, I get no error messages, but I cannot use the internet!

on connecting I get: VPNC started in background (pid: 5620)

following this, internet doesn't work etc

any ideas??

-------------------------------------------------------------------
IKE DH Group dh2
Perfect Forward Secrecy nopfs
IPSec gateway xxx.xxx.xxx.xxx
IPSec ID banana
IPSec secret thane
Xauth username santaclaus
Xauth password 1212ha
 
Old 12-31-2004, 12:13 AM   #2
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
What are your routes?

I route to my vpn server via my common (non vpn) gateway and the rest
through the tun0 device.

ip route add $VPNGW via "$default"
ip route delete default
ip route add default dev tun0

Where VPNGW is the IP of the vpn server and default is my
local gateway of my Dlink router.

You'll also need a /etc/resolv.conf with the DNS entries for your VPN network.
 
Old 01-07-2005, 12:54 AM   #3
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Original Poster
Rep: Reputation: 30
so, are you saying I must change the settings each time I change location (i.e. gateway)
as I use the laptop at home / work /etc etc

?
 
Old 01-07-2005, 10:02 AM   #4
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
Uh... yes... that's pretty obvious though (??).

I guess the Cisco client with its UDP/TCP tunneling tends to act somewhat like "dhcp" in that it configures things for you.. you are sort of on your own with vpnc. It comes with some scripts that can be tweaked... of course, I just write my own. Unlike the Cisco client, vpnc will not turn off your network connections. Something to keep in mind (basically means that you can join your VPN network to the internet if you so desire... something your admin might not like).
 
Old 01-07-2005, 02:31 PM   #5
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Original Poster
Rep: Reputation: 30
thanks, I'm my own admin at home.

It appears that the best solution is to use vpnc on my home desktop (as computer ip & gateway remain static, & only the external ip address changes) but to keep battling with the cisco client for my laptop..

(my home desktop is 64bit & have never managed to get cisco to work, whereas the laptop did once work with cisco, before a kernel update,, that's the subject of another post)

anyway, once I am back home I will try your suggestions for my home computer & hope can get vpnc to work...

thanks for all your help.
 
Old 01-07-2005, 02:35 PM   #6
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
You MUST recompile the Cisco VPN client with ANY kernel update. Also, you really have to use 4.0.5 or higher for 2.6 kernels.
 
Old 06-16-2005, 09:26 PM   #7
suv
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
I am using vpnc 0.3.2-3 package from yum. Everything seems fine when i connect to my university as I get an ip and everything on tun0. I only need vpn to access some places on univ website...so i don't want to make it the default route. I added a static route using:

route add -net xxx.xxx.0.0 netmask 255.255.0.0 dev tun0

so that only univ sites route through tun0. The problem is that I can transmit packets but can't receive any. I have added my univ DNS server to resolv.conf and have turned off iptables. Also, apparently this version of vpnc doesn't come with the vpnc-connect and disconnect scripts to automatically set things.

Do i need to add the vpn gateway to the routing table?
Is there anything else i can try? Please help!
 
  


Reply

Tags
gateway, vpn, vpnc



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
vpnc as a user, permissions? jtreed2000 Linux - Networking 0 11-23-2005 09:49 AM
vpnc - please Help vpn connection nilleso Linux - Networking 6 09-22-2005 09:34 PM
vpnc on amd x86_64 thegreatgatsby Linux - Software 11 01-15-2005 01:25 PM
VPNC Errors?? jayfoo Linux - Networking 4 01-02-2005 01:48 PM
vpnc won't install on amd 64 thegreatgatsby Linux - Software 1 09-01-2004 05:28 PM

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

All times are GMT -5. The time now is 08:19 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