From: "Volkm@r" <plsdontreply@arcor.de>
To: netfilter@lists.netfilter.org
Subject: Re: minimal iptables ruleset for laptop
Date: Tue, 24 May 2005 14:23:56 +0200 [thread overview]
Message-ID: <d6v69t$3sc$1@sea.gmane.org> (raw)
In-Reply-To: <42930273.10208@hotpop.com>
Georgi Alexandrov wrote:
> something like this:
>
> ######################### start ###########################
>
> iptables -F
> iptables -X
> iptables -Z
> iptables -t nat -F
> iptables -t nat -X
> iptables -t nat -Z
> iptables -t mangle -F
> iptables -t mangle -X
> iptables -t mangle -Z
>
> iptables -P INPUT DROP
> iptables -P FORWARD DROP
> iptables -P OUTPUT ACCEPT
>
> iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> iptables -A INPUT -i lo -j ACCEPT
> iptables -A INPUT -p icmp --icmp-type 3 -j ACCEPT
> iptables -A INPUT -p icmp --icmp-type 11 -j ACCEPT
> iptables -A INPUT -p icmp --icmp-type 12 -j ACCEPT
> iptables -A INPUT -p tcp --syn --dport 113 -j REJECT --reject-with tcp-reset
>
> ############################# end #################################
>
> I think the above ruleset is sufficient. If you have any questions about
> it - just ask.
>
> regards,
> Georgi Alexandrov
>
>
Hi Georgi,
Thanks a lot for your fast response. Now it looks much easier to
understand. Now I have two more questions.
1. What is the advantage of putting those "-p icmp" rules?
2. How could I add logging (fore some time, to see what's going on)?
Thanks again
Volkm@r
next prev parent reply other threads:[~2005-05-24 12:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-24 9:51 minimal iptables ruleset for laptop Volkm@r
2005-05-24 10:31 ` Georgi Alexandrov
2005-05-24 12:23 ` Volkm@r [this message]
2005-05-25 9:18 ` Georgi Alexandrov
2005-05-25 10:42 ` Volkm@r
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='d6v69t$3sc$1@sea.gmane.org' \
--to=plsdontreply@arcor.de \
--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.