Package: tayga Version: 0.9.2-4 Severity: wishlist Tags: patch Attached is a patch that allows you to add IP addresses to the TUN interface using /etc/default/tayga. Having addresses on this interface is desirable according to Q3.3 and Q3.4 of the TAYGA FAQ: http://www.litech.org/tayga/faq.html
-- System Information: Debian Release: 6.0.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable'), (50, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-0.bpo.2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- Kenyon Ralph
# HG changeset patch # User ken...@kenyonralph.com # Date 1337387488 25200 # Node ID 246f594f4a04790a5cea1230e042430517344261 # Parent 7797474c516516b111dc611bb420b93acf6e5acd default, init: allow adding addresses to the TUN interface diff -r 7797474c5165 -r 246f594f4a04 debian/default --- a/debian/default Tue Apr 17 22:31:36 2012 +0100 +++ b/debian/default Fri May 18 17:31:28 2012 -0700 @@ -13,3 +13,9 @@ # Additional options that are passed to the Daemon. DAEMON_OPTS="" + +# IPv4 address to assign to the tun64 device +IPV4_TUN_ADDR="" + +# IPv6 address to assign to the tun64 device +IPV6_TUN_ADDR="" diff -r 7797474c5165 -r 246f594f4a04 debian/init --- a/debian/init Tue Apr 17 22:31:36 2012 +0100 +++ b/debian/init Fri May 18 17:31:28 2012 -0700 @@ -109,6 +109,8 @@ ip link set $TUN_DEVICE up ip route add $DYNAMIC_POOL dev nat64 ip route add $IPV6_PREFIX dev nat64 + [ -n "$IPV4_TUN_ADDR" ] && ip addr add $IPV4_TUN_ADDR dev nat64 + [ -n "$IPV6_TUN_ADDR" ] && ip addr add $IPV6_TUN_ADDR dev nat64 fi [ "x$CONFIGURE_NAT44" = "xyes" ] && iptables -t nat -A POSTROUTING -s $DYNAMIC_POOL -j MASQUERADE || true
signature.asc
Description: Digital signature