From: Aleksandr Guidrevitch <pillgrim@tut.by>
To: netfilter@lists.netfilter.org
Subject: is this correct ?
Date: Fri, 06 Feb 2004 14:01:00 +0200 [thread overview]
Message-ID: <402381FC.4000703@tut.by> (raw)
Hi All !
I'm a newbie in iptables.
I have a linux box with ppp connection to internet (dynamic IP),
eth0 192.168.0.1 and a Windows box 192.168.0.3 connected to eth0.
I strive to allow *everything* from my home network,
and disallow anyone to connect to my home network, eg.
drop all the incoming connections to my ppp0 interface.
Can anyone say if my config below is correct (/etc/sysconfig/iptables) ?
Well, it seems to work as expected, but it is so simple,
may be I'm missing some important security points ?
------
*nat
-A POSTROUTING -o ppp0 -j MASQUERADE
COMMIT
*mangle
COMMIT
*filter
-A INPUT -i ppp0 -p icmp -j ACCEPT
# disabling not established and not related connections
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -i ppp0 -j DROP
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
next reply other threads:[~2004-02-06 12:01 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 12:01 Aleksandr Guidrevitch [this message]
2004-02-11 0:03 ` is this correct ? Antony Stone
-- strict thread matches above, loose matches on Subject: below --
2003-06-20 3:52 Is this correct? George Vieira
2003-06-20 3:37 George Vieira
2003-06-20 3:23 George Vieira
2003-06-20 2:49 George Vieira
2003-06-20 3:19 ` Shawn
2003-06-20 2:39 George Vieira
2003-06-20 3:10 ` Shawn
2003-06-19 22:10 George Vieira
2003-06-20 2:28 ` Shawn
2003-06-20 2:41 ` Shawn
2003-06-19 22:06 Daniel Chemko
2003-06-20 2:30 ` Shawn
2003-06-20 2:35 ` Shawn
2003-06-19 21:07 Shawn
2003-06-19 22:06 ` Alistair Tonner
2003-06-20 3:13 ` Shawn
2003-06-20 4:09 ` Alistair Tonner
2003-06-12 15:43 Is this correct ? Frank R Callaghan
2003-06-12 19:57 ` Frank R Callaghan
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=402381FC.4000703@tut.by \
--to=pillgrim@tut.by \
--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 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.