From: "Andrew J. Meader" <ameader@corp.lcom.net>
To: Abylai Ospan <aospan@netup.ru>, netfilter@lists.netfilter.org
Subject: Re: transparent squid & iptables
Date: Mon, 16 Dec 2002 08:23:53 -0600 [thread overview]
Message-ID: <3DFDE1F9.6020507@corp.lcom.net> (raw)
In-Reply-To: 008201c2a420$487f82a0$8902010a@alkaloid
Hi,
Here is how I am doing it and it works nicely:
iptables -t nat -A PREROUTING -i $LOCAL -p tcp --dport 80 -j REDIRECT \
--to-port 3128
echo "PREROUTING: enableling transparent http proxy"
Have fun!
Andy
Abylai Ospan wrote:
> Hello, All.
>
> We tried to make transparent squid on 127.0.0.1 and REDIRECT (or DNAT)
> in iptables but iptables redirect pakets to the received interface IP.
>
> In the iptables:
> iptables -t nat -A PREROUTING -p TCP --dport 80 -j REDIRECT 3128
>
> For example:
> packet from user (IP: 10.0.0.5) to www.ru <http://www.ru>:80 received
> on eth0 (IP: 10.0.0.1). Packet redirected to the 10.0.0.1:3128 but
> squid listen on 127.0.0.1:3128 so nothing work ;-(
>
> How we can redirect packet to the 127.0.0.1 port 3128 in iptables ?!
>
> wbr, Abylai
> NetUP Systems
> Moscow, Russia
prev parent reply other threads:[~2002-12-16 14:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-15 9:56 transparent squid & iptables Abylai Ospan
2002-12-16 11:04 ` Arindam Haldar
2002-12-16 14:23 ` Andrew J. Meader [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=3DFDE1F9.6020507@corp.lcom.net \
--to=ameader@corp.lcom.net \
--cc=aospan@netup.ru \
--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