diff options
author | gregory guy <[email protected]> | 2020-02-22 12:31:47 +0100 |
---|---|---|
committer | gregory guy <[email protected]> | 2020-02-22 12:44:01 +0100 |
commit | 9b99335373bb5e06cfb2cdbbff4f6d45b3d0edda (patch) | |
tree | 5414f4b1866fb6ac99d742f217b19f470e1ae477 /doc/misc/vpnc_connect_script_dns_patch_fix.txt | |
parent | a79160540c050b5eaca4ecdcee65ec2e164eae6f (diff) | |
download | kvpnc-9b99335373bb5e06cfb2cdbbff4f6d45b3d0edda.tar.gz kvpnc-9b99335373bb5e06cfb2cdbbff4f6d45b3d0edda.zip |
Drop automake build support.
Add basic build instructions.
Rework of the README, INSTALL and help page.
Remove empty folder templates and the NEWS file.
Delete the INSTALL.debian and INSTALL.gentoo files.
Create the doc/misc folder to hold lot of config
and/or readme files.
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'doc/misc/vpnc_connect_script_dns_patch_fix.txt')
-rw-r--r-- | doc/misc/vpnc_connect_script_dns_patch_fix.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/misc/vpnc_connect_script_dns_patch_fix.txt b/doc/misc/vpnc_connect_script_dns_patch_fix.txt new file mode 100644 index 0000000..717e28f --- /dev/null +++ b/doc/misc/vpnc_connect_script_dns_patch_fix.txt @@ -0,0 +1,46 @@ +From: Thomas Bettler <bettlert@...> + Subject: Troubles with dns + Newsgroups: gmane.network.vpnc.devel + Date: 2005-01-08 15:25:28 GMT (15 weeks, 3 days, 6 hours and 18 minutes ago) +As we discussed on back in november, dns servers assigned from vpn connection +are not handled, instead resolv uses the old dns entries. + +This should be corrected. +http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2004-November/000296.html +and +http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2004-November/000298.html + +I propose to add the two patches to make it work with or +without /sbin/resolvconf (which isn't part of all linux systems) + +patch for vpnc-connect ++if [ -x /sbin/resolvconf ] ; then ++ for i in $INTERNAL_IP4_DNS; do ++ echo $i >> /etc/resolv.conf.vpnc ++ done ++ if [ "$DIRECTION" = "up" ] ; then ++ cat /etc/resolv.conf.vpnc | /sbin/resolvconf -a "$IFACE" ++ else ++ /sbin/resolvconf -d "$IFACE" ++ fi ++else ++# in case we have no /sbin/resolvconf handle /etc/resolv.conf manually ++ mv /etc/resolv.conf /var/run/vpnc/resolv.conf ++ for i in $INTERNAL_IP4_DNS; do ++ echo nameserver $i >> /etc/resolv.conf ++ done ++fi + +patch for vpnc-disconnect ++if [ -x /sbin/resolvconf ] ; then ++##### remark ++##### I don't know /sbin/resolvconf and don't know exactly how to revert. ++##### This line might not work... please test ++ /sbin/resolvconf -d "$IFACE" ++else ++ mv /var/run/vpnc/resolv.conf /etc/resolv.conf ++fi + +Lots of greatings +Thomas Bettler + |