=================================================================== RCS file: /home/cvsd/home/cvs/scripts/shell/firewall/fw-universal.sh,v retrieving revision 2.23 retrieving revision 2.24 diff -u -p -r2.23 -r2.24 --- scripts/shell/firewall/fw-universal.sh 2005/04/15 22:07:18 2.23 +++ scripts/shell/firewall/fw-universal.sh 2005/04/18 22:49:30 2.24 @@ -9,7 +9,7 @@ # Licensed under terms of GNU General Public License. # All rights reserved. # -# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.22 2005/03/16 13:53:36 rajo Exp $ +# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.23 2005/04/15 22:07:18 rajo Exp $ # # Changelog: # 2003-10-24 - created @@ -118,6 +118,20 @@ antispoof_on() done } # }}} +forward_on() +{ # {{{ + echo -en "NAT: Enabling packet forwarding..." + echo 1 > /proc/sys/net/ipv4/ip_forward + echo " done." +} # }}} + +forward_off() +{ # {{{ + echo -en "NAT: Disabling packet forwarding..." + echo 0 > /proc/sys/net/ipv4/ip_forward + echo " done." +} # }}} + # clear status of iptable chains remove_chains() { # {{{ @@ -765,6 +779,7 @@ case "$1" in set_default_policy remove_chains unload_modules + forward_off ;; status)