Created
October 3, 2013 12:36
-
-
Save calston/6809138 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Currently vpnc-script is not directly configurable from configfiles. | |
However, a workaround is to use a "wrapper-script" like this, to | |
disable /etc/resolv.conf rewriting and setup a custom split-routing: | |
------------------------------ | |
#!/bin/sh | |
# this effectively disables changes to /etc/resolv.conf | |
INTERNAL_IP4_DNS= | |
# This sets up split networking regardless | |
# of the concentrators specifications. | |
# You can add as many routes as you want, | |
# but you must set the counter $CISCO_SPLIT_INC | |
# accordingly | |
CISCO_SPLIT_INC=1 | |
CISCO_SPLIT_INC_0_ADDR=131.246.89.7 | |
CISCO_SPLIT_INC_0_MASK=255.255.255.255 | |
CISCO_SPLIT_INC_0_MASKLEN=32 | |
CISCO_SPLIT_INC_0_PROTOCOL=0 | |
CISCO_SPLIT_INC_0_SPORT=0 | |
CISCO_SPLIT_INC_0_DPORT=0 | |
. /etc/vpnc/vpnc-script | |
------------------------------ | |
Store this example script, for example in /etc/vpnc/custom-script, | |
do a "chmod +x /etc/vpnc/custom-script" and add | |
"Script /etc/vpnc/custom-script" to your configuration. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment