# iptables script generator: V0.1-2002
# Comes with no warranty!
# e-mail: firstname.lastname@example.org
# Diable forwarding
echo 0 > /proc/sys/net/ipv4/ip_forward
# load some modules (if needed)
iptables -t nat -F POSTROUTING
iptables -t nat -F PREROUTING
iptables -t nat -F OUTPUT
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
# enable Masquerade and forwarding
iptables -t nat -A POSTROUTING -s $LAN_IP_NET -j MASQUERADE
iptables -A FORWARD -j ACCEPT -i $LAN_NIC -s $LAN_IP_NET
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
# STATE RELATED for router
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Enable forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
This is the firewall script. I've a cable modem and everytime I restart my computer I'm getting an IP from the DHCP server. The cable modem is connected via USB and it's eth0 (WAN). I'm using an ethernet card which is eth1 (LAN). I'm able to ping the gateway but I want more. I would like to be able to surf the net. I don't know what the problem is. I followed the instructions that you gave, unfortunately nothing has changed.
Thanks for the replies...