From: "Gáspár Lajos" <swifty@freemail.hu>
To: Sandy Sumitro <sandysumitro@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: [HELP] forward ppp0 to eth1
Date: Fri, 06 Nov 2009 16:59:11 +0100 [thread overview]
Message-ID: <4AF447CF.9050209@freemail.hu> (raw)
In-Reply-To: <fe4bdfcf0911050532h5a954b63s43f01a7eff0b4aa9@mail.gmail.com>
Hi,
Sandy Sumitro írta:
> iptables -F INPUT
> iptables -F OUTPUT
> iptables -F FORWARD
> iptables -P INPUT ACCEPT
> iptables -P OUTPUT ACCEPT
> iptables -P FORWARD ACCEPT
> iptables -t nat -F
> iptables -t nat -A PREROUTING -i ppp0 -j DNAT --to-destination 192.168.1.252
> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
> iptables -t nat -A POSTROUTING -s 192.168.1.252 -o ppp0 -j MASQUERADE
>
>
Seems good... Except the last rule is not going to get hit by any
packet... :D
> PS: i have set /proc/sys/net/ipv4/ip_forward to 1
> (echo 1 > /proc/sys/net/ipv4/ip_forward)
>
>
Good... :D
1. Check the default gateway setting on the DMZ (1.252)
2. Check the routing on gateway (1.251)
3. Setup a firewall on DMZ too !!!
Swifty
prev parent reply other threads:[~2009-11-06 15:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-05 13:32 [HELP] forward ppp0 to eth1 Sandy Sumitro
2009-11-06 15:59 ` Gáspár Lajos [this message]
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=4AF447CF.9050209@freemail.hu \
--to=swifty@freemail.hu \
--cc=netfilter@vger.kernel.org \
--cc=sandysumitro@gmail.com \
/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 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.