All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jose Luis Domingo Lopez <lartc@24x7linux.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] port forwarding
Date: Tue, 09 Dec 2003 19:40:09 +0000	[thread overview]
Message-ID: <marc-lartc-107100024009634@msgid-missing> (raw)
In-Reply-To: <marc-lartc-107099009227854@msgid-missing>

On Tuesday, 09 December 2003, at 17:34:39 +0100,
Alen Sarkinovic wrote:

> is there anybody who can tell me how to forward request to other host, i
> would like to forward all dns requests to other dns server and it must be
> done with packet forwarding because dns server (resolver) must go down.
>
Just use "iptables" to set up DNAT rules for DNS traffic (remember, DNS
queries usually use DNS, but sometimes they use TPC). Depending on the
"redirector IP address" and the "final IP address" of the DNS server you
will also have to add an entry ni the routing table and maybe a static 
proxy ARP entry to the "redirector box".

Both the route and the proxy ARP enrty could be needed if the final DNS
server is not connected to any local network. Just depict packets
arriving at the box, rewrite the addressess as "iptables" would do
(DNAT) and follow the diagram at:
http://www.docum.org/stef.coene/qos/kptd/

In the PRDB (Policy Routing DataBase) is where the routing decissiont
takes place, and where you should see clearly the need for routes and/or
static proxy ARP entries.

Greetings.

-- 
Jose Luis Domingo Lopez
Linux Registered User #189436     Debian Linux Sid (Linux 2.6.0-test10-mm1)
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2003-12-09 19:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-09 16:34 [LARTC] port forwarding Alen Sarkinovic
2003-12-09 17:41 ` Martin A. Brown
2003-12-09 19:40 ` Jose Luis Domingo Lopez [this message]

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=marc-lartc-107100024009634@msgid-missing \
    --to=lartc@24x7linux.com \
    --cc=lartc@vger.kernel.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.