Linux Netfilter discussions
 help / color / mirror / Atom feed
* port redirect for local host
@ 2003-09-02  5:00 Michael Robinton
  2003-09-03 10:54 ` Ralf Spenneberg
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Robinton @ 2003-09-02  5:00 UTC (permalink / raw)
  To: netfilter


I have a relatively simple redirect that does not seem to work for the
local host. I'm running a DNSBL on a virtual IP address on a host that
already has a DNS daemon running.

entry is...

$IPTABLES -t nat -A PREROUTING -p tcp -d $DNSBL_IP --dport 53 -j REDIRECT
--to-port $DNSBL_PORT

this works fine from both the network (internet) and from the interfaces
on the private side. eth1, eth0

I does not work at all from the local host and no amount of tweaking of
the rule set seems to help.

I've tried about every DNAT combination I can think of.

Any suggestions??

Michael




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

* Re: port redirect for local host
  2003-09-02  5:00 port redirect for local host Michael Robinton
@ 2003-09-03 10:54 ` Ralf Spenneberg
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Spenneberg @ 2003-09-03 10:54 UTC (permalink / raw)
  To: Michael Robinton; +Cc: Netfilter

Am Die, 2003-09-02 um 07.00 schrieb Michael Robinton:
> I have a relatively simple redirect that does not seem to work for the
> local host. I'm running a DNSBL on a virtual IP address on a host that
> already has a DNS daemon running.
> 
> entry is...
> 
> $IPTABLES -t nat -A PREROUTING -p tcp -d $DNSBL_IP --dport 53 -j REDIRECT
> --to-port $DNSBL_PORT
> 
> this works fine from both the network (internet) and from the interfaces
> on the private side. eth1, eth0
> 
> I does not work at all from the local host and no amount of tweaking of
> the rule set seems to help.
locally generated packets do not traverse the PREROUTING but the OUTPUT
chain. 

Cheers,

Ralf
-- 
Ralf Spenneberg
RHCE, RHCX

Book: Intrusion Detection für Linux Server   http://www.spenneberg.com
IPsec-Howto				     http://www.ipsec-howto.org
Honeynet Project Mirror:                     http://honeynet.spenneberg.org


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

end of thread, other threads:[~2003-09-03 10:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-02  5:00 port redirect for local host Michael Robinton
2003-09-03 10:54 ` Ralf Spenneberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox