Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange VPNC problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nyk
Guru
Guru


Joined: 28 Aug 2004
Posts: 527
Location: Bern (Switzerland)

PostPosted: Sat Jul 19, 2008 2:52 pm    Post subject: Strange VPNC problem Reply with quote

It used to work, but now suddently, it's broken. What could be the reason for this?

Code:

thinkpad nyk # vpnc
/etc/vpnc/vpnc-script: line 222: /var/run/vpnc/resolv.conf-backup: No such file or directory
Back to top
View user's profile Send private message
BrummBrumm
n00b
n00b


Joined: 04 Jan 2008
Posts: 58

PostPosted: Sat Jul 19, 2008 4:02 pm    Post subject: Reply with quote

it seems to me that something in line 222 of /etc/vpnc/vpnc-script attemps to access /var/run/vpnc/resolv.conf-backup and fails :)

SCNR
Back to top
View user's profile Send private message
nyk
Guru
Guru


Joined: 28 Aug 2004
Posts: 527
Location: Bern (Switzerland)

PostPosted: Sun Jul 20, 2008 1:25 pm    Post subject: Reply with quote

Yes, but why? I didn't have time to write that this only happens when I try to use VPNC over PPP. When using LAN or WLAN, it works without problems. So an update of ppp or vpnc seems to have problems with managing DNS servers.

My resolv.conf looks like this right now (connected by PPP, VPNC inanctive):
Code:

nyk@thinkpad ~ $ cat /etc/resolv.conf
#@VPNC_GENERATED@ -- this file is generated by vpnc
# and will be overwritten by vpnc
# as long as the above mark is intact
# Generated by dhcpcd for interface eth
Back to top
View user's profile Send private message
nyk
Guru
Guru


Joined: 28 Aug 2004
Posts: 527
Location: Bern (Switzerland)

PostPosted: Sun Jul 20, 2008 1:50 pm    Post subject: Reply with quote

I found the solution:
Code:

rm /etc/resolv.*


This removed 3 obsolete files. Then restarting ppp (twice) and now it works again using vpnc on ppp in the train... :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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