I'm new with Linux and
iptables. I have a Ubuntu Server distro (12.04) on a PC which has 2 network interfaces (
eth1). I also have 2 laptops, one is plugged to
eth0 and the other to
laptop1 ipconfig: 172.16.221.120 - 255.255.252.0 laptop2 ipconfig: 192.168.222.250 - 255.255.255.0
I want to ping the laptop2 from laptop1 successfully.
Do I have to create
OUTPUT rules? Or a
FORWARD rule, too?
I've tried this with no success:
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT