* iptables setting problem
@ 2006-04-09 6:48 Dexter
0 siblings, 0 replies; only message in thread
From: Dexter @ 2006-04-09 6:48 UTC (permalink / raw)
To: netfilter
Dear Sir,
I encounter the problem of setting the iptables.
I manually set eth0 210.21.47.32 netmask 255.255.255.0 gateway
210.21.47.1 and eth1 192.168.1.1 netmask 255.255.255.0
and setting of Lan computer is 192.168.1.2 255.255.255.0 192.168.1.1
from the computer in Lan I can ping both the address of eth0 and eth1,
but I can not ping the default gateway that ISP assigned to me.
I did the following:
iptables -A FORWARD -i eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
but didn't work, then I did follow:
iptables -t nat -A PREROUTING -d $210.21.47.32/24 -i eth0 -j DNAT
--to-destination 192.168.1.0
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j SNAT
--to-source $210.21.47.32
but still didn't work. something wring with my setting. Thanks.
Best Regards,
Dexter Co
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-09 6:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-09 6:48 iptables setting problem Dexter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.