Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

VPNC documentation describes the options to restrict VPN connection route to a range of IPs and also leave system DNS setting untouched.

My vpnc configuration (/etc/conf/default.conf) contains the following lines:

Target networks
DNSUpdate no

Those work as expected/described above on Ubuntu 9.10, but in certain versions of CentOS and OpenSuSE, running

$vpnc /etc/conf/default.conf

results in the following:

vpnc: warning: unknown configuration directive in /etc/vpnc/swisscom.conf at line ##

for both lines mentioned above.

vpnc version is 0.5.3 on all systems.

Did anyone manage to solve this issue?


share|improve this question
up vote 1 down vote accepted

From a README.Debian file quote:


If you have been using Debian-specific extensions with "Target networks" and "DNSupdate" directives, consider changing your praxis to use the official upstream configuration way now. See /usr/share/doc/vpnc/README.gz file for details about replacing network routes with custom ones using the variables of vpnc-script. You can either wrap /etc/vpnc/vpnc-script into a custom script which presets those variables (like documented in the example in README.gz) or use vpnc-script-connect-action and vpnc-script-disconnect-action scripts to set them separately (see below), which may or may not be wanted depending on your setup. Or you can symlink them to have the same config in the both phases.

The same applies to the disabling of DNS data update. The old methods are preserved with compatibility wrappers for the near future but should be avoided with new installations.

share|improve this answer
Wow! Thanks! Didn't go that far :) – tishma Apr 8 '11 at 9:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.