From: Michele Petrazzo - Unipex srl <michele.petrazzo@unipex.it>
To: "linuxmc@libero.it" <linuxmc@libero.it>
Cc: sargon97 <sargon97@gmail.com>, netfilter <netfilter@vger.kernel.org>
Subject: Re: Setting up a proxy with iptables
Date: Sat, 02 Aug 2008 10:04:22 +0200 [thread overview]
Message-ID: <48941506.6080409@unipex.it> (raw)
In-Reply-To: <K4YPNL$F8087895A3C60C84D241022EEA93B6DB@libero.it>
linuxmc@libero.it wrote:
> Hi, have you try with a rule like
>
> $IPTABLES -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT
> --to-destination 82.109.120.222:8080
>
> ?
>
> Best regards ! Marco
>
Should be better the redirect target:
$IPTABLES -t nat -A PREROUTING -i $INTERNAL -p tcp --dport 80 -j
REDIRECT --to-ports $PROXY_PORT
$IPTABLES -t nat -A PREROUTING -i $INTERNAL -p tcp --dport 443 -j
REDIRECT --to-ports $PROXY_PORT
Ciao,
MIchele
next prev parent reply other threads:[~2008-08-02 8:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-02 7:18 Re:Setting up a proxy with iptables linuxmc
2008-08-02 8:04 ` Michele Petrazzo - Unipex srl [this message]
2008-08-04 21:06 ` Setting " Shawn Fitzgerald
2008-08-05 6:31 ` Michele Petrazzo - Unipex srl
2008-08-05 16:46 ` Shawn Fitzgerald
2008-08-05 17:28 ` Billy Crook
-- strict thread matches above, loose matches on Subject: below --
2008-08-01 23:24 Shawn Fitzgerald
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=48941506.6080409@unipex.it \
--to=michele.petrazzo@unipex.it \
--cc=linuxmc@libero.it \
--cc=netfilter@vger.kernel.org \
--cc=sargon97@gmail.com \
/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.