All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joel Newkirk <netfilter@newkirk.us>
To: Mattia Martinello <mattia@mattiamartinello.com>,
	netfilter@lists.netfilter.org
Subject: Re: DNS
Date: Mon, 13 Jan 2003 17:30:10 -0500	[thread overview]
Message-ID: <200301131730.10226.netfilter@newkirk.us> (raw)
In-Reply-To: <3E22A883.103@mattiamartinello.com>

On Monday 13 January 2003 06:52 am, Mattia Martinello wrote:
> Hi all
>
> I wish to open DNS connections and redirect it from the gateway and
> the server on the DMZ.
> I tried these rules:
>
> iptables -t nat -A PREROUTING -p tcp -i ppp0 -d [public IP] --dport 53
> -j DNAT --to [private IP]:53
> iptables -A FORWARD -i ppp0 -d [private IP] -p tcp --dport 53 -j
> ACCEPT
>
> iptables -t nat -A PREROUTING -p udp -i ppp0 -d [public IP] --dport 53
> -j DNAT --to [private IP]:53
> iptables -A FORWARD -i ppp0 -d [private IP] -p tcp --dport 53 -j
> ACCEPT

Do you also have a FORWARD rule ACCEPTing UDP port 53?  It may be a type 
in the mail, but your FORWARD rules are both for TCP here...

BTW, the :53 in the DNAT destination is unnecessary, it will keep the 
same port unless you specify something different.  Not an issue,  just a 
comment. :^)

j

> But if I try to query my DNS server from the Internet my query goes in
> timeout.
> The connections between [private IP] and the Internet are allowed (all
> other services work good without any problem, the only service that
> gets me some problems is DNS).
>
> What have I to open to allow DNS connections from the gateway and the
> DMZ?
>
> Thank you very much
> Bye
> Mattia



  parent reply	other threads:[~2003-01-13 22:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-13 11:52 DNS Mattia Martinello
2003-01-13 16:10 ` unsubscribe telefon jackfritt@boh.de Jörg Esser
2003-01-13 22:21 ` DNS Peter Johnson
2003-01-13 22:30 ` Joel Newkirk [this message]
2003-01-15  8:13 ` unsubscribe telefon jackfritt@boh.de Jörg Esser
2003-02-12  9:06 ` DNS Tarek W.
  -- strict thread matches above, loose matches on Subject: below --
2000-11-29 17:23 DNS Ian Chilton
2000-11-29  0:13 DNS Jordan Crouse
2000-11-29  7:27 ` DNS Klaus Naumann
2000-11-29 14:29   ` DNS Mark Lehrer
2000-11-29 14:52   ` DNS Jordan Crouse

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=200301131730.10226.netfilter@newkirk.us \
    --to=netfilter@newkirk.us \
    --cc=mattia@mattiamartinello.com \
    --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.