From 9a194ad34d89ac97468de0aaa0d45a0be0eb4237 Mon Sep 17 00:00:00 2001 From: ficus Date: Fri, 23 Nov 2012 19:20:27 +0100 Subject: move ipv4 forwarding to sysctl --- config/includes.chroot/etc/network/interfaces | 1 - config/includes.chroot/etc/sysctl.conf | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/includes.chroot/etc/network/interfaces b/config/includes.chroot/etc/network/interfaces index 3787ff9..7d11e36 100644 --- a/config/includes.chroot/etc/network/interfaces +++ b/config/includes.chroot/etc/network/interfaces @@ -19,7 +19,6 @@ iface eth1 inet static network 10.23.42.0 broadcast 10.23.42.255 pre-up ip addr del 10.23.42.1/24 dev eth1 || true - post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up /etc/init.d/dnsmasq_lan start # this must happen after have brought up uap0 because it clears the NAT # tables diff --git a/config/includes.chroot/etc/sysctl.conf b/config/includes.chroot/etc/sysctl.conf index b8460d0..b0afe72 100644 --- a/config/includes.chroot/etc/sysctl.conf +++ b/config/includes.chroot/etc/sysctl.conf @@ -18,3 +18,6 @@ net.ipv4.conf.all.secure_redirects = 1 net.ipv4.conf.default.rp_filter=1 net.ipv4.conf.all.rp_filter=1 +# Forwardings +net.ipv4.ip_forward=1 + -- cgit v1.2.3