Some IP_FORWARDING fixes for typos

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9001 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-12-12 00:08:03 +00:00
parent a8f2da5855
commit 37b8fca94e
7 changed files with 13 additions and 7 deletions

View File

@ -91,6 +91,8 @@ RCP_COMMAND='scp ${files} ${root}@${system}:${destination}'
# F I R E W A L L O P T I O N S # F I R E W A L L O P T I O N S
############################################################################### ###############################################################################
IP_FORWARDING=On
TC_ENABLED=No TC_ENABLED=No
TC_EXPERT=No TC_EXPERT=No

View File

@ -91,6 +91,8 @@ RCP_COMMAND='scp ${files} ${root}@${system}:${destination}'
# F I R E W A L L O P T I O N S # F I R E W A L L O P T I O N S
############################################################################### ###############################################################################
IP_FORWARDING=On
TC_ENABLED=No TC_ENABLED=No
TC_EXPERT=No TC_EXPERT=No

View File

@ -52,8 +52,8 @@ New Features in Shorewall 4.3
a) There is no NAT of any kind (most people see this as a giant step a) There is no NAT of any kind (most people see this as a giant step
forward). When an ISP assigns you a public IPv6 address, you are forward). When an ISP assigns you a public IPv6 address, you are
actually assigned an IPv6 'prefix' which is like an IPv4 actually assigned an IPv6 'prefix' which is like an IPv4
subnet. A 96-bit prefix allows 4 billion individual hosts (the subnet. A 64-bit prefix allows 4 billion squared individual hosts
size of the current IPv4 address space). (the size of the current IPv4 address space squared).
b) The default zone type is ipv6. b) The default zone type is ipv6.

View File

@ -546,10 +546,10 @@ EOF
} }
} else { } else {
if ( $config{IP_FORWARDING} eq 'on' ) { if ( $config{IP_FORWARDING} eq 'on' ) {
emit( 'echo 1 > /proc/sys/net/ipv6/config/all/forwarding', emit( 'echo 1 > /proc/sys/net/ipv6/conf/all/forwarding',
'progress_message2 IP Forwarding Enabled' ); 'progress_message2 IP Forwarding Enabled' );
} elsif ( $config{IP_FORWARDING} eq 'off' ) { } elsif ( $config{IP_FORWARDING} eq 'off' ) {
emit( 'echo 0 > /proc/sys/net/ipv6/config/all/forwarding', emit( 'echo 0 > /proc/sys/net/ipv6/conf/all/forwarding',
'progress_message2 IP Forwarding Disabled!' 'progress_message2 IP Forwarding Disabled!'
); );
} }

View File

@ -211,10 +211,10 @@ sub setup_forwarding( $ ) {
} }
} else { } else {
if ( $config{IP_FORWARDING} eq 'on' ) { if ( $config{IP_FORWARDING} eq 'on' ) {
emit ' echo 1 > /proc/sys/net/ipv6/config/all/forwarding'; emit ' echo 1 > /proc/sys/net/ipv6/conf/all/forwarding';
emit ' progress_message2 IP Forwarding Enabled'; emit ' progress_message2 IP Forwarding Enabled';
} elsif ( $config{IP_FORWARDING} eq 'off' ) { } elsif ( $config{IP_FORWARDING} eq 'off' ) {
emit ' echo 0 > /proc/sys/net/ipv6/config/all/forwarding'; emit ' echo 0 > /proc/sys/net/ipv6/conf/all/forwarding';
emit ' progress_message2 IP Forwarding Disabled!'; emit ' progress_message2 IP Forwarding Disabled!';
emit ''; emit '';
} }

View File

@ -10,7 +10,7 @@ clear_firewall() {
run_iptables -F run_iptables -F
echo 1 > /proc/sys/net/ipv6/config/all/forwarding echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
run_clear_exit run_clear_exit

View File

@ -91,6 +91,8 @@ RCP_COMMAND='scp ${files} ${root}@${system}:${destination}'
# F I R E W A L L O P T I O N S # F I R E W A L L O P T I O N S
############################################################################### ###############################################################################
IP_FORWARDING=Off
TC_ENABLED=No TC_ENABLED=No
TC_EXPERT=No TC_EXPERT=No