Linux Netfilter discussions
 help / color / mirror / Atom feed
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 14:42:41 +0000	[thread overview]
Message-ID: <200403121442.41195.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <4051C64E.7050605@wanadoo.fr>

On Friday 12 March 2004 2:16 pm, Rakotomandimby Mihamina wrote:

> Antony Stone wrote:
> >>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:
>
> I did as you say , but i dont kow the destination and/or source port of
> the answer from the DNS .

DNS servers respond from source port 53.   This is the same as all protocols - 
the response comes back from the same source port that you send the request 
to as a destination port - ie: HTTP responses come from source port 80; SMTP 
responses come from source port 25, etc.

> OR is it just a "related to established" so that i dont have to care
> about the answer ?

If all you want is to allow replies from your ISP's DNS servers in response to 
queries you sent out, then yes, those replies will be covered by the 
ESTABLISHED rule.

If you are running authoritative DNS for a zone and you need to allow external 
queries to your server then you need to allow NEW packets in to TCP & UDP 
destination ports 53 (however I do not think this is what you are doing).

Regards,

Antony.

-- 
Never write it in Perl if you can do it in Awk.
Never do it in Awk if sed can handle it.
Never use sed when tr can do the job.
Never invoke tr when cat is sufficient.
Avoid using cat whenever possible.

                                                     Please reply to the list;
                                                           please don't CC me.



  parent reply	other threads:[~2004-03-12 14:42 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
2004-03-12 14:16   ` Rakotomandimby Mihamina
2004-03-12 14:20     ` Rakotomandimby Mihamina
2004-03-12 14:42     ` Antony Stone [this message]
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=200403121442.41195.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