I could use some help setting up NAT so I can connect to the internet from a second computer.
I have 2 computers. I set one up to be 192.168.0.1 and the other 192.168.0.3
The second computer has 2 NICS DHCP works and I can connect to the internet.
This is my firewall setup.
Code:
iptables -P INPUT DROP
iptables -P FORWARD DROP
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 icmp -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
I don't know what else to setup. I am not sure about GATEWAYS or anything else related to this. Could someone walk me through a proper configuration.
Using Slackware 12