All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Yerushalmi <beny@pd.verio.net>
To: netfilter@lists.netfilter.org
Subject: Redirect ports on localhost
Date: Tue, 23 Mar 2004 13:10:21 -0700	[thread overview]
Message-ID: <406099AD.2070403@verio.net> (raw)

Hi,

I'm trying to redirect traffic on my DNS server. I have bind listening 
on port 5300 (UDP) instead of 53. I've got it working from the internal 
network but seem to have problem on redirecting localhost traffic. I've 
tried changing both PREROUTING and OUTPUT chains in the nat table but it 
doesn't seem to help.

iptables -A PREROUTING -t nat -p udp -i lo --dport domain -j REDIRECT 
--to-ports 5300

and

iptables -A OUTPUT -t nat -p udp -d localhost  --dport domain -j 
REDIRECT --to-ports 5300


Anyone have luck doing this? What am I missing?

Thanks,
Ben




             reply	other threads:[~2004-03-23 20:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-23 20:10 Ben Yerushalmi [this message]
2004-03-24  2:01 ` Redirect ports on localhost forum
2004-03-24  2:52   ` Mark E. Donaldson
2004-03-24  2:57     ` forum
2004-03-24  3:14 ` Alexander Samad
2004-03-24 20:31   ` al clethero
2004-03-24  5:15 ` Ben Yerushalmi
2004-03-25  7:34 ` Ben Yerushalmi
2004-03-26  5:35 ` Ben Yerushalmi
2004-03-26  6:07   ` forum
     [not found] <20040325193403.19216.70237.Mailman@vishnu.netfilter.org>
2004-03-25 19:47 ` Fabiano Bonin
2004-03-25 20:03   ` David Cannings

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=406099AD.2070403@verio.net \
    --to=beny@pd.verio.net \
    --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.