From: "R. Sterenborg" <rsterenborg@xs4all.nl>
To: netfilter@lists.netfilter.org
Subject: RE: Nat
Date: Sun, 8 Sep 2002 23:27:38 +0200 [thread overview]
Message-ID: <000401c2577e$8ee60410$0401000a@win2k> (raw)
In-Reply-To: <3D7BB687.6010300@iol.it>
> I tried these lines, but it doesn't work:
>
> iptables -t nat -F POSTROUTING
> iptables -t nat -A POSTROUTING -j DROP
> iptables -t nat -A POSTROUTING -s 192.168.1.0/255.255.255.0
> -o ppp0 -j
> MASQUERADE
Try :
iptables -P INPUT DROP
iptables -A INPUT -s 192.168.1.0/24 -j ACCEPT
iptables -P FORWARD DROP
iptables -A FORWARD -s 192.168.1.0/24 -o ppp0 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o ppp0 -j MASQUERADE
Rob
next prev parent reply other threads:[~2002-09-08 21:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-08 20:43 Nat Mattia Martinello
2002-09-08 21:00 ` Nat Antony Stone
2002-09-08 21:27 ` R. Sterenborg [this message]
2002-09-08 21:49 ` Nat Anders Fugmann
-- strict thread matches above, loose matches on Subject: below --
2007-07-03 6:52 NAT Martin Schiøtz
2007-07-03 7:27 ` NAT Grant Taylor
2007-07-03 7:55 ` NAT Martin Schiøtz
2007-07-03 14:29 ` NAT Robert LeBlanc
2004-06-06 17:36 Nat mafioso1823
2004-06-07 7:38 ` Nat Antony Stone
2003-11-26 5:31 nat Paul Fontenot
2003-11-26 6:33 ` nat Daniel Chemko
2003-10-01 11:11 NAT tlussnig
2003-10-03 10:22 ` NAT Harald Welte
2002-06-14 8:29 nat saied tabandeh
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='000401c2577e$8ee60410$0401000a@win2k' \
--to=rsterenborg@xs4all.nl \
--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