From: "Jason Opperisano" <Jopperisano@alphanumeric.com>
To: netfilter@lists.netfilter.org
Subject: RE: REDIRECT to localhost
Date: Mon, 16 Aug 2004 10:17:12 -0400 [thread overview]
Message-ID: <D5C9032B2B09C64EA2409D6214E91AC9051285@asimail2.alphanumeric.com> (raw)
> iptables -t nat -A PREROUTING -i "name of interface" -p tcp -m tcp --
> dport 80 -j REDIRECT --to-ports 3129
>
> If your default policy is to DROP all INPUT/FORWARD as is it should be.
>
>
> iptables -A INPUT -i "name of interface" -p tcp -m tcp --dport 80 -j
> ACCEPT
in this case--where you have ppp[0-9], you can also use the "+" notation to avoid having 10 rules that do the same thing; i.e.,
iptables -t nat -A PREROUTING -i ppp+ -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3129
will match any ppp interface.
> You can also use -s "ip address" instead of -i "name of interface".
or both...
-j
next reply other threads:[~2004-08-16 14:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-16 14:17 Jason Opperisano [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-08-18 12:37 REDIRECT to localhost Jason Opperisano
2004-08-18 13:41 ` Cedric Blancher
2004-08-18 13:47 ` Cedric Blancher
2004-08-16 11:23 igorpopov
2004-08-16 8:24 Попов Игорь Николаевич
2004-08-16 11:15 ` Ted Kaczmarek
2004-08-17 11:02 ` Igor Popov
2004-08-18 1:21 ` Cedric Blancher
2004-08-18 12:22 ` Ted Kaczmarek
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=D5C9032B2B09C64EA2409D6214E91AC9051285@asimail2.alphanumeric.com \
--to=jopperisano@alphanumeric.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox