From 8145d65a7b185b78d904d561fdb2420edb01369d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 20 Jan 2010 19:12:25 -0800 Subject: Set IPV6 parameters in rl-system.init The problem is that IPV6 module is not loaded when sysctl's are interpreted during boot, and we want to allow marking IPV6 disabled. --- scripts/rl-system.init | 5 ++++- sysconf/vyatta-sysctl.conf | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/rl-system.init b/scripts/rl-system.init index d37e651c..09d4509e 100755 --- a/scripts/rl-system.init +++ b/scripts/rl-system.init @@ -143,6 +143,9 @@ set_ipv6_params () return fi + # Enable forwarding + echo 1 >/proc/sys/net/ipv6/conf/all/forwarding + # These values all should be disabled for p in accept_source_route accept_redirects address_flush do @@ -168,7 +171,7 @@ pam_reset () { then pam-auth-update --remove radius fi } - + start () { udev_rescan create_ssh_host_keys || \ diff --git a/sysconf/vyatta-sysctl.conf b/sysconf/vyatta-sysctl.conf index 928cd6fb..f10f4541 100644 --- a/sysconf/vyatta-sysctl.conf +++ b/sysconf/vyatta-sysctl.conf @@ -60,7 +60,3 @@ net.ipv4.conf.default.accept_source_route=0 # Enable send_redirects by default net.ipv4.conf.all.send_redirects=1 -# IPv6 parameters: - -# Enable packet forwarding for IPv6 -net.ipv6.conf.all.forwarding=1 -- cgit v1.2.3