Networking :: DSL internet sharing
IPCHAINS
This assumes that your external interface is called `ppp0'. Use ifconfig to find out, and adjust to taste.
# ipchains -P forward DENY
# ipchains -A forward -i ppp0 -j MASQ
# echo 1 > /proc/sys/net/ipv4/ip_forward
IPTABLES
http://en.tldp.org/HOWTO....TRONGER
that link will take you to a howto for IPTABLES
look for:
#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 " Enabling forwarding.."
echo "1" > /proc/sys/net/ipv4/ip_forward
if you pay close attention to the directions its quite possible to turn linux into a router and firewall. you could buy one, or you could save money but not time and configure it manually.
"Without struggle there is no progress"
Frederick Douglas
Why do all that?!?!?!
Just get the iptables.dsl and rc.firewall.dsl
http://projectfiles.com/firewall/
http://projectfiles.com/firewall/config.html
Then if you are using "frugal" mode just edit the rc.local file...
It is a simple script, but is capable of doing tons upon tons of stuff..internet sharing, port forwarding, routing, you name it..with just a few simple script modifications you could make a small DSL machine into one hell of a powerful router/firewall...
or you could build you a SmoothWall Express 2.0 box
Brian
AwPhuch
original here.