From: Dexter <babyangel@skydsl.com.ph>
To: netfilter@lists.netfilter.org
Subject: iptables setting problem
Date: Sun, 09 Apr 2006 13:48:55 +0700 [thread overview]
Message-ID: <4438AE57.6060706@skydsl.com.ph> (raw)
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
reply other threads:[~2006-04-09 6:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4438AE57.6060706@skydsl.com.ph \
--to=babyangel@skydsl.com.ph \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox