How could I troubleshoot my NAT setup. I have 2 computers.
comp1: 192.168.0.3 (eth1) and dhcp for (eth0)
comp2: 192.168.0.1 (eth0)
I have enabled ip_forwarding and my firewall is as follows.
Code:
iptables -P INPUT DROP
iptables -P FORWARD ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -i eth1 -j ACCEPT
iptables -A INPUT -p icmp -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCE
PT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
I stll can not connect from the second computer. I can access my apache webserver from the second computer, but not the internet.
What steps can I take to troubleshoot this if anyone knows.