From: Die Optimisten <inform@die-optimisten.net>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: Netfilter Users Mailing list <netfilter@vger.kernel.org>
Subject: Re: iptables Qu: how to specify !dst:port
Date: Fri, 12 Jul 2013 14:31:44 +0200 [thread overview]
Message-ID: <51DFF730.2090203@die-optimisten.net> (raw)
In-Reply-To: <CAOkSjBibSebbEvOfnZRQgLO4_tKHPTcyCJ-YpKaU60J_9sWWBA@mail.gmail.com>
Hi!
Thanks for your fast answer!!
How can I write -t nat
[all except these 2:] (! -d 127.0.0.1 -and ! -d 192.168.0.0/16) ?
Can I generally generate (kernel-hanging) loops with -nat , or is this
recognized/inhibited ?
Please also To:/Cc:inform@die-optimisten.net !
thanks
Andrew
On 2013-07-12 14:10, Arturo Borrero Gonzalez wrote:
> 2013/7/12 Die Optimisten <inform@die-optimisten.net>:
>
>> Hallo!
>>
>> I want to DNAT all incoming 0/0:443, except those to localhost:443
>> to my proxy localhost:8000
>> What is the best line to achive that?
>>
>> -d 0/0:443 -and ! -d 127.0.0.0
>> # seems -and does not exist...
>>
>> THANKS,
>> Andrew
>>
>> Please be so kind, and also answer to me per email, I#m not in the
>> mailinglist
>>
>>
> I would try this:
>
> iptables -t nat -A PREROUTING ! -d 127.0.0.1 -p tcp --dport 443 -j
> DNAT --to-destination 127.0.0.1:8000
>
> Regards.
> --
> Arturo Borrero González
>
next prev parent reply other threads:[~2013-07-12 12:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-12 12:00 iptables Qu: how to specify !dst:port Die Optimisten
2013-07-12 12:10 ` Arturo Borrero Gonzalez
2013-07-12 12:31 ` Die Optimisten [this message]
2013-07-12 12:50 ` Arturo Borrero Gonzalez
2013-07-12 13:00 ` Pascal Hambourg
2013-07-12 16:09 ` Die Optimisten
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=51DFF730.2090203@die-optimisten.net \
--to=inform@die-optimisten.net \
--cc=arturo.borrero.glez@gmail.com \
--cc=netfilter@vger.kernel.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.