Iptables - firewall/Router
I have a linux box w/ two nics.
em0 -> 192.168.1.2 -> this connects to a dlink router of IP 192.168.1.1
em1 -> 172.16.0.1 -> this connects to my lan (windows server and Lan network
I right now just want to ping from a lan host on em1 interface with ip 172.16.0.254 to the dlink router 192.168.1.1 connected to em0 interface.
I have set only forward table rules such as:
iptables -A FORWARD -i em1 -s 172.16.0.0 -o em0 -d 192.168.1.0 -j ACCEPT
iptables -A FORWARD -i em0 -s 192.168.1.0 -o em1 -d 172.16.0.0 -j ACCEPT
I HAVE THE NEW,ESTABLISHED,RELATED IN THE COMMAND AS WELL.
I just can't seem to ping thru em1 to my dlink router and get a reply. I don't think I need to be using NAT table as I'm just pinging thru router.
PLEASE HELP W/ GUIDANCE.