# # Original Version # ---------------- # http://www.Linux-Sec.net/Firewalls/Scripts/rc.masquerade.3line.sh.txt # # # http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO-3.html#ss3.1 # chmod 700 /etc/rc.d/rc.masquerade.3line.sh.txt # # # 3-Line Masquerade # ----------------- # # # 07-May-02 amo Date-of-Birth # # # # CRITICAL: Enable IP forwarding since it is disabled by default since # # Redhat Users: you may try changing the options in /etc/sysconfig/network from: # # FORWARD_IPV4=false # to # FORWARD_IPV4=true # echo "1" > /proc/sys/net/ipv4/ip_forward # # # # Enable simple IP forwarding and Masquerading # # NOTE: The following is an example for an internal LAN address in the 192.168.0.x # network with a 255.255.255.0 or a "24" bit subnet mask. # # Please change this network number and subnet mask to match your internal LAN setup # # # change to your local IP# # /sbin/ipchains -P forward DENY /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ # # # end of file