From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: Netfilter Mailing List <netfilter@lists.netfilter.org>
Subject: Re: I submit you my rules, to have your opinions.
Date: Fri, 12 Mar 2004 12:52:40 +0000 [thread overview]
Message-ID: <200403121252.40589.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <4051AEC2.30100@wanadoo.fr>
On Friday 12 March 2004 12:36 pm, Rakotomandimby Mihamina wrote:
> Hi everybody.
> I made several searches over the internet to build my firewall rules.
> Here they are :
> http://stko.dyndns.info/scripts/ipt
I really think you should restrict the rules:
> # My ISP DNS's ... is it correct to put this like that ?
> iptables -A INPUT -s 193.252.19.3 -j ACCEPT
> iptables -A INPUT -s 193.252.19.4 -j ACCEPT
so that they only allow DNS packets (TCP + UDP, both port 53). There's no
reason to give your ISPs DNS servers free access to everything on your
Firewall.
You don't actually need:
> iptables -A INPUT -p tcp --dport 20 -j ACCEPT
because you already have:
> iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
This rule will allow FTP data connections on port 20 as being RELATED to the
control connection on port 21.
SSH doesn't use UDP, so no need for this rule:
> iptables -A INPUT -p udp --dport 22 -j ACCEPT
Same for HTTP, FTP, NNTP and POP3 - they don't use UDP, so remove these rules:
> iptables -A OUTPUT -p udp --dport 80 -j ACCEPT
> iptables -A OUTPUT -p udp --dport 21 -j ACCEPT
> iptables -A OUTPUT -p udp --dport 119 -j ACCEPT
> iptables -A OUTPUT -p udp --dport 110 -j ACCEPT
Regards,
Antony.
--
There's no such thing as bad weather - only the wrong clothes.
- Billy Connolly
Please reply to the list;
please don't CC me.
next prev parent reply other threads:[~2004-03-12 12:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-12 12:36 I submit you my rules, to have your opinions Rakotomandimby Mihamina
2004-03-12 12:52 ` Antony Stone [this message]
2004-03-12 14:16 ` Rakotomandimby Mihamina
2004-03-12 14:20 ` Rakotomandimby Mihamina
2004-03-12 14:42 ` Antony Stone
2004-03-14 18:49 ` Rakotomandimby Mihamina
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=200403121252.40589.Antony@Soft-Solutions.co.uk \
--to=antony@soft-solutions.co.uk \
--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