# # IP_Masq.uhow2 # # 08-Mar-00 amo Date-of-Birth # # # # Main IP_Masquerade # http://members.home.net/ipmasq/ # # http://www.pi.se/blox/modutils/index.html modutils - newer http://www.rustcorp.com/linux/ipchains ipchains # # # # Config kernel options # http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO-3.html # # # Create /etc/rc.d/rc.firewall ( from howto above ) # # # if using 192.168.1.x for your ip#.... # use 192.168.1.0/28 as your netmask # # if using 192.168.1.x and 192.168.2.y for your ip#... # user 192.168.0.0/16 as your netmask # # # More Info # http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO-6.html#Strong-IPFWADM-Rulesets http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO-6.html#Strong-IPCHAINS-Rulesets http://metalab.unc.edu/mdw/HOWTO/IPCHAINS-HOWTO.html # # # Test the local LAN # http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO-4.html # # # laptop# ping 192.168.1.1 ( server ) server# ping 192.168.1.2 ( laptop ) # # server# cat /proc/sys/net/ipv4/ip_forward" : Make sure it says "1" so that Linux forwarding is enabled # # have ipchains 1.3.9 ( http://www.rustcorp.com/linux/ipchains ) # # server# /sbin/ipchains -F -L # # # # end of file