From: Arindam Haldar <arindamhaldar@inbox.lv>
To: Abylai Ospan <aospan@netup.ru>
Cc: netfilter@lists.netfilter.org
Subject: Re: transparent squid & iptables
Date: Mon, 16 Dec 2002 16:34:27 +0530 [thread overview]
Message-ID: <3DFDB33B.70406@inbox.lv> (raw)
In-Reply-To: 008201c2a420$487f82a0$8902010a@alkaloid
iptables -A PREROUTING -t nat -p 6 --dport 80 -j REDIRECT --to-port 3128
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 <http://www.ru>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
next prev parent reply other threads:[~2002-12-16 11:04 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 [this message]
2002-12-16 14:23 ` Andrew J. Meader
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=3DFDB33B.70406@inbox.lv \
--to=arindamhaldar@inbox.lv \
--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