From 752be24ed3353001f77fefaa678a14729aed400e Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sun, 26 Jan 2014 03:20:41 +0100 Subject: [PATCH] =?UTF-8?q?[install-party/fete-du-slip]=20On=20active=20et?= =?UTF-8?q?=20desactive=20=C3=A9galement=20le=20forwarding=20ipv4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/install-party/fete-du-slip | 4 ++++ utils/install-party/fin-de-la-fete | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/utils/install-party/fete-du-slip b/utils/install-party/fete-du-slip index 86853c1d..9213a8e7 100755 --- a/utils/install-party/fete-du-slip +++ b/utils/install-party/fete-du-slip @@ -45,6 +45,10 @@ ip6tables -P FORWARD DROP echo 1 > /proc/sys/net/ipv6/conf/eth1/forwarding echo 1 > /proc/sys/net/ipv6/conf/eth0/forwarding +# On active le routage en ipv4 +echo 1 > /proc/sys/net/ipv4/conf/eth1/forwarding +echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding + # Sinon radvd vomit echo 1 > /proc/sys/net/ipv6/conf/all/forwarding diff --git a/utils/install-party/fin-de-la-fete b/utils/install-party/fin-de-la-fete index da838772..ca4adbb8 100755 --- a/utils/install-party/fin-de-la-fete +++ b/utils/install-party/fin-de-la-fete @@ -19,6 +19,11 @@ echo 0 > /proc/sys/net/ipv6/conf/all/forwarding echo 0 > /proc/sys/net/ipv6/conf/eth1/forwarding echo 0 > /proc/sys/net/ipv6/conf/eth0/forwarding +# On dĂ©sactive le routage en ipv4 +echo 0 > /proc/sys/net/ipv4/conf/all/forwarding +echo 0 > /proc/sys/net/ipv4/conf/eth1/forwarding +echo 0 > /proc/sys/net/ipv4/conf/eth0/forwarding + # On lance arrĂȘte /etc/init.d/radvd stop