LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-18-2005, 09:05 PM   #1
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
Connect to vpn server, no DNS specified


Every once in a while, i connect to my schools VPN network to access data. I use vpnc to connect. Everything works ok, except that as soon as i connect to the VPN, i lose my DNS server....so i cant ping www.google.com or go to www.google.com, but i can go to http://216.239.37.99 and i can ping 216.239.37.99......basiclly, i need to know how to specify a DNS server after i connect..
 
Old 12-19-2005, 04:28 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
if you're just resetting your default route to go down the vpn, just add the dns servers to your /etc/resolv.conf permanently along with your normal ones... afaik vpnc won't overwrite any. personally though i'd recommened configuring vpnc to NOT change your default route, instaed only make it route the individual netowrks you ned and keep your internet traffic going the same way as before. the newer versions of vpnc come with an example wrapper script vpnc-script or something, into with you can define some variables to show what specific subnets to route. if you define none, it will suck everything into it.
 
Old 12-19-2005, 08:08 PM   #3
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Original Poster
Rep: Reputation: 30
editing the vpnc-script did the trick...my vpnc client was old and didnt come with a script by default, upgrading the package created the emaple script and i was able to get it all working, thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to connect on vpn server? mfrangos79 Linux - Newbie 5 07-10-2005 02:52 PM
Cannot connect to a VPN-server. Need help. norus Linux - Networking 2 04-02-2005 12:49 PM
Connect to Windows VPN server imsambo2 Linux - Networking 3 07-19-2004 10:56 PM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 08:00 AM
Can't connect VPN server with encryption kelper Linux - Software 2 11-25-2003 07:42 AM


All times are GMT -5. The time now is 03:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration