Unable to ping to outside network from behind a Linux router
Posted
by Supratik
on Server Fault
See other posts from Server Fault
or by Supratik
Published on 2010-04-21T12:46:11Z
Indexed on
2010/04/21
12:53 UTC
Read the original article
Hit count: 274
iptables
Hi
My system is behind a Linux firewall, where eth0 is connected to internet and eth1 is connected to my LAN. The issue is I am not able to ping to outside my network. The iptables rule I have used here as below.
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -p icmp -j SNAT --to-source $PUBLICIP
Please correct me if I am doing anything wrong here.
Warm Regards
Supratik
© Server Fault or respective owner