All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Spenneberg <lists@spenneberg.org>
To: Michael Robinton <michael@insulin-pumpers.org>
Cc: Netfilter <netfilter@lists.netfilter.org>
Subject: Re: port redirect for local host
Date: 03 Sep 2003 12:54:15 +0200	[thread overview]
Message-ID: <1062586455.18242.3.camel@kermit> (raw)
In-Reply-To: <Pine.LNX.4.33.0309012154390.24379-100000@pandora.is.bizsystems.com>

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


      reply	other threads:[~2003-09-03 10:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-02  5:00 port redirect for local host Michael Robinton
2003-09-03 10:54 ` Ralf Spenneberg [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=1062586455.18242.3.camel@kermit \
    --to=lists@spenneberg.org \
    --cc=michael@insulin-pumpers.org \
    --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.