]>
git.infradead.org Git - users/dwmw2/vpnc-scripts.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
David Woodhouse [Fri, 9 Dec 2011 13:13:10 +0000 (13:13 +0000)]
Fix stderr redirection for 'which ip' output
We really want to redirect stderr from 'which'; not from 'grep'.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Thu, 8 Dec 2011 01:04:35 +0000 (01:04 +0000)]
Tidy up IPv6 address/netmask handling a little, fix netmask handling on *BSD.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Thu, 8 Dec 2011 00:55:30 +0000 (00:55 +0000)]
Remove dest_address from IPv6 ifconfig for all but Solaris
This makes OpenBSD unhappy, and it looks like OpenVPN *only* does it on
Solaris.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Thu, 24 Nov 2011 12:42:33 +0000 (12:42 +0000)]
Add restorecon calls for /var/run/vpnc and /dev/net/tun (Red Hat bug #731382)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Christian Krause [Sun, 4 Sep 2011 23:21:51 +0000 (00:21 +0100)]
Fix calculation of MTU. Bash doesn't like numbers in quotes.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Fred Wittekind IV [Sun, 4 Sep 2011 22:10:40 +0000 (23:10 +0100)]
Fix MTU calculation (Red Hat bug #693235)
Newer iproute doesn't give the mtu in 'ip route get' output, so get the
device and then get the device's MTU (which theoretically could be
different to the route MTU but this is good enough for now).
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Wed, 17 Aug 2011 12:58:46 +0000 (13:58 +0100)]
Merge branch 'vpnc-script' of git://github.com/falconindy/vpnc-scripts
David Woodhouse [Wed, 17 Aug 2011 10:20:24 +0000 (11:20 +0100)]
Be more robust with unknown 'ip route get' output.
Make it opt-in, not opt-out for unknown options.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Dave Reisner [Mon, 15 Aug 2011 00:39:11 +0000 (20:39 -0400)]
vpnc-script: use iproute to create ptp link if possible
This should make net-tools completely optional on Linux.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Dave Reisner [Mon, 15 Aug 2011 00:01:24 +0000 (20:01 -0400)]
vpnc-script: prevent negative MTU
We can't be sure that the route shown by 'ip route get' will return
anything. Restructure the logic to only perform the subtraction if it
does. Otherwise, fall back to the default 1412.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Alessandro Suardi [Sat, 28 May 2011 22:20:15 +0000 (23:20 +0100)]
Cope with new kernel/iproute including ipid in route list
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Bernhard Schmidt [Tue, 23 Feb 2010 18:11:53 +0000 (18:11 +0000)]
Set route to VPN gateway before configuring tunnel
In some circumstances (with $VPNGATEWAY being inside of
$INTERNAL_IP4_ADDRESS/$INTERNAL_IP4_NETMASK, for example when the netmask
was set incorrectly) the hostroute to $VPNGATEWAY pointed to the
tunnel device, creating a routing recursion.
Set the host route before configuring the tun interface to fix this.
Signed-off-by: Bernhard Schmidt <berni@birkenwald.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Mon, 25 Jan 2010 05:27:20 +0000 (18:27 +1300)]
Only remove IPv6 default route if we had IPv6
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Fri, 13 Nov 2009 16:24:00 +0000 (16:24 +0000)]
Fix up FreeBSD support
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Fri, 13 Nov 2009 15:02:51 +0000 (15:02 +0000)]
Add IPv6 support for Solaris (and maybe BSD)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Fri, 13 Nov 2009 14:56:01 +0000 (14:56 +0000)]
no grep -q on solaris
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Wed, 11 Nov 2009 00:52:24 +0000 (00:52 +0000)]
Handle IPv6 nameservers (in $INTERNAL_IP4_DNS variable)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Wed, 11 Nov 2009 00:42:28 +0000 (00:42 +0000)]
Handle IPv6 routes
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Wed, 4 Nov 2009 07:34:49 +0000 (07:34 +0000)]
Set IPv6 address on interface; no routes yet
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Tue, 3 Nov 2009 20:57:46 +0000 (20:57 +0000)]
Fix MTU when no default route
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525389
Patch from Jonathan Miner
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Tue, 3 Nov 2009 19:11:55 +0000 (19:11 +0000)]
Make basic vpnc-script work with Solaris
Add -interface flag when adding routes, specify gateway for default
route when deleting it.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Sat, 6 Jun 2009 13:45:55 +0000 (14:45 +0100)]
Add pTRTd script for NAT-PT address to VPN
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Sat, 6 Jun 2009 12:19:27 +0000 (13:19 +0100)]
Add netunshare
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Sat, 6 Jun 2009 11:55:57 +0000 (12:55 +0100)]
set up dnsmasq in netns
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Sat, 6 Jun 2009 11:22:54 +0000 (12:22 +0100)]
Add ssh-inside-vpn-namespace script
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Sat, 6 Jun 2009 09:01:26 +0000 (10:01 +0100)]
Remove the substitution in vpnc-script, to remove the need for vpnc-script.in
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse [Sat, 6 Jun 2009 08:53:01 +0000 (09:53 +0100)]
Import vpnc-script from vpnc
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>