mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-31 10:38:55 +01:00
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:
parent
a8f2da5855
commit
37b8fca94e
@ -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
|
||||
###############################################################################
|
||||
|
||||
IP_FORWARDING=On
|
||||
|
||||
TC_ENABLED=No
|
||||
|
||||
TC_EXPERT=No
|
||||
|
@ -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
|
||||
###############################################################################
|
||||
|
||||
IP_FORWARDING=On
|
||||
|
||||
TC_ENABLED=No
|
||||
|
||||
TC_EXPERT=No
|
||||
|
@ -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
|
||||
forward). When an ISP assigns you a public IPv6 address, you are
|
||||
actually assigned an IPv6 'prefix' which is like an IPv4
|
||||
subnet. A 96-bit prefix allows 4 billion individual hosts (the
|
||||
size of the current IPv4 address space).
|
||||
subnet. A 64-bit prefix allows 4 billion squared individual hosts
|
||||
(the size of the current IPv4 address space squared).
|
||||
|
||||
b) The default zone type is ipv6.
|
||||
|
||||
|
@ -546,10 +546,10 @@ EOF
|
||||
}
|
||||
} else {
|
||||
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' );
|
||||
} 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!'
|
||||
);
|
||||
}
|
||||
|
@ -211,10 +211,10 @@ sub setup_forwarding( $ ) {
|
||||
}
|
||||
} else {
|
||||
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';
|
||||
} 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 '';
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ clear_firewall() {
|
||||
|
||||
run_iptables -F
|
||||
|
||||
echo 1 > /proc/sys/net/ipv6/config/all/forwarding
|
||||
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
|
||||
|
||||
run_clear_exit
|
||||
|
||||
|
@ -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
|
||||
###############################################################################
|
||||
|
||||
IP_FORWARDING=Off
|
||||
|
||||
TC_ENABLED=No
|
||||
|
||||
TC_EXPERT=No
|
||||
|
Loading…
Reference in New Issue
Block a user