All of lore.kernel.org
 help / color / mirror / Atom feed
* Redirect ports on localhost
@ 2004-03-23 20:10 Ben Yerushalmi
  2004-03-24  2:01 ` forum
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Ben Yerushalmi @ 2004-03-23 20:10 UTC (permalink / raw)
  To: netfilter

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




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-03-26  6:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040325193403.19216.70237.Mailman@vishnu.netfilter.org>
2004-03-25 19:47 ` Redirect ports on localhost Fabiano Bonin
2004-03-25 20:03   ` David Cannings
2004-03-23 20:10 Ben Yerushalmi
2004-03-24  2:01 ` 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

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.