From: Chris Brenton <cbrenton@chrisbrenton.org>
To: Fritz Mesedilla <fritz.mesedilla@overturemedia.com>
Cc: "Netfilter Mailing List (E-mail)" <netfilter@lists.netfilter.org>
Subject: Re: firewalled dns clients
Date: 07 Nov 2003 05:33:12 -0500 [thread overview]
Message-ID: <1068201192.1132.7.camel@valhalla> (raw)
In-Reply-To: <F22386C3FEB012449238672E38ED61E706C26A@overlord.overturemedia.com>
On Thu, 2003-11-06 at 22:49, Fritz Mesedilla wrote:
>
> I tried this and nothing happened.
> $IPTABLES -A INPUT -p tcp --sport 53 -j ACCEPT
> even a
> $IPTABLES -A INPUT -p tcp --dport 53 -j ACCEPT
Try:
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source x.x.x.x
iptables -A FORWARD -p udp -i eth1 -s y.y.y.y -d 0/0 --dport 53 -j
ACCEPT
iptables -A FORWARD -p tcp -i eth1 -s y.y.y.y -d 0/0 --dport 53 -j
ACCEPT
x.x.x.x = Firewall's legal external IP address
y.y.y.y = internal private subnet
eth0 = external interface (change to eth1 if needed)
eth1 = internal interface (change to eth0 if needed)
HTH,
C
next prev parent reply other threads:[~2003-11-07 10:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-07 3:49 firewalled dns clients Fritz Mesedilla
2003-11-07 4:46 ` Alistair Tonner
2003-11-07 10:24 ` Goetz Bock
2003-11-07 10:33 ` Chris Brenton [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-11-07 5:05 Fritz Mesedilla
2003-11-10 5:01 Fritz Mesedilla
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=1068201192.1132.7.camel@valhalla \
--to=cbrenton@chrisbrenton.org \
--cc=fritz.mesedilla@overturemedia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox