Establish /proc/sys/net/ipv6/conf/X/forwarding during 'enable'

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-03-30 17:26:50 -07:00
parent 2381b0fd8f
commit 1139e1a09c

View File

@ -297,8 +297,8 @@ sub setup_interface_proc( $ ) {
push @emitted, "echo $value > /proc/sys/net/ipv4/conf/$physical/accept_source_route"; push @emitted, "echo $value > /proc/sys/net/ipv4/conf/$physical/accept_source_route";
} }
if ( interface_has_option( $interface, 'sourceroute' , $value ) ) { if ( interface_has_option( $interface, 'forward' , $value ) ) {
push @emitted, "echo $value > /proc/sys/net/ipv4/conf/$physical/accept_source_route"; push @emitted, "echo $value > /proc/sys/net/ipv6/conf/$physical/forwarding";
} }
if ( @emitted ) { if ( @emitted ) {