All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Micah Abrams" <micah@micahabrams.com>
To: netfilter@lists.netfilter.org
Subject: dns doctoring
Date: Thu, 9 Jan 2003 01:03:00 -0700	[thread overview]
Message-ID: <FHEJJHLEAGOMBFDMFHNOAEIADKAA.micah@micahabrams.com> (raw)

List --

I'm building an iptables firewall to replace my pix 506.  The firewall will
only have two interfaces for now.  My dns server sits outside my firewall on
the internet and answers queries for both my internal network and the world.
Of course it only contains real world ips.  The pix has an option (called
alias) that doctors dns request from my internal lan so that the reply
packet contains the internal ip address instead of the public address given
out by my dns server.  This lets the internal machines access internal hosts
via dns without having to run two dns servers.  For example with following
command:

alias (inside) 192.168.0.5 245.243.3.5 255.255.255.255

all dns queries passing through the pix containing the address 245.243.3.5
are re-written to contain 192.168.0.5.  My question is, is there any way to
do this with iptables?  How is everyone handling this?  I would really like
to avoid having two dns servers.  I am very new to iptables so any and all
help is much appreciated.

Thanks

~Micah



             reply	other threads:[~2003-01-09  8:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-09  8:03 Micah Abrams [this message]
2003-01-09  8:25 ` dns doctoring Raymond Leach

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=FHEJJHLEAGOMBFDMFHNOAEIADKAA.micah@micahabrams.com \
    --to=micah@micahabrams.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.