VPNC and resolvconf aren't working completely

Posted by Anonymous on Fri 24 Feb 2006 at 10:26

Alright. I'm fed up. I've tried everything I can find on the net (which is _very_ little I'm sad to say), and now I'm more than willing to admit my ignorance on the whole subject since I can't get this working.

I'm running Debian stable, I've got all of the vpn info from my employer and I still can't get it to work.

I'm even willing to do a full reinstall if it would get this going (if I don't get this working in Debian I'm gonna have to switch to WinXP - which I don't want to do since I've been without Windows for years - so I can work and get paid).

I'm at a college, living on campus, and my employer is on-campus but on a different subnet (I think that's the way you say it). They said that the only way I can VNC into my work computer is to setup a VPN connection first and then VNC into my box. The box at work is running WinXP (not my choice), and has RealVNC running as a service.

I setup my work.conf like so (obviously the *'s have the info my employer gave me):

IPSec gateway 128.***.**.***
IPSec ID ********
IPSec secret ********
Xauth username ********

# OPTIONAL
# ========

#
#
# Varios options not undestood by vpnc itself but by some other scripts
#
# Target networks 123.234.210.0/24 10.1.0.0/16
# If Target networks is defined here, the default route is not replaced!

# Don't update resolv.conf though resolvconf is installed
# DNSUpdate no

Running 'ifconfig -a' only shows the eth0 and lo devices.

I run 'vpnc-connect work' and it asks for my password, I enter it, it waits for a bit and spits out a warning message:

This is a private institution. Violaters will be prosecuted.
VPNC started in background (pid:12345)...

Running 'ifconfig -a' now shows the eth0, lo, and tun0 devices, my internet no longer 'works' (I can't get to google - firefox says that it can't find google, that I should check the name and try again), but I also can't VNC to my box either. Feels to me like I don't have any DNS servers.

When I run ifconfig I notice that the tun0 device has an ip different than my eth0 - eth0:10.7.77.34 and tun0:10.10.40.8 ...

What am I leaving out?? Why is this not working??

I have resolvconf installed... is there any other information that I could provide that might help?


This article can be found online at the Debian Administration website at the following bookmarkable URL:

This article is copyright 2006 Anonymous - please ask for permission to republish or translate.