All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Netfilter IPtableMailinglist <netfilter@lists.netfilter.org>
Subject: Re: block 8080, but redirect from 80 to 8080
Date: Tue, 01 Aug 2006 14:11:41 +0200	[thread overview]
Message-ID: <44CF44FD.9010906@plouf.fr.eu.org> (raw)
In-Reply-To: <44CF3E31.3080001@whb.hu>

Gáspár Lajos a écrit :
> 
>> Quick and dirty :
>> Drop the undesired packets in the PREROUTING chain of the 'mangle' 
>> table, before REDIRECT occurs.
>>
>> iptables -t mangle -A PREROUTING -p tcp --dport 8080 -j DROP (or REJECT)
>>
> I would recomment NOT TO DO any ACCEPT or DROP/REJECT in other than the
> filter table...

I agree, that's why I mentionned "quick and _dirty_" and suggested a 
better solution based on marks. However I think ACCEPT is an acceptable 
target in any table, not only in 'filter'.

By the way, I made a mistake : REJECT is a valid target only in the 
'filter' table, showing if necessary that the other tables are not 
intended for filtering.


  reply	other threads:[~2006-08-01 12:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-01  4:11 block 8080, but redirect from 80 to 8080 Dean Hiller
2006-08-01 10:46 ` Pascal Hambourg
2006-08-01 11:42   ` Gáspár Lajos
2006-08-01 12:11     ` Pascal Hambourg [this message]
2006-08-01 11:54   ` Gáspár Lajos

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=44CF44FD.9010906@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.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.