From: "Abylai Ospan" <aospan@netup.ru>
To: netfilter@lists.netfilter.org
Subject: transparent squid & iptables
Date: Sun, 15 Dec 2002 12:56:42 +0300 [thread overview]
Message-ID: <008201c2a420$487f82a0$8902010a@alkaloid> (raw)
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]
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: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
[-- Attachment #2: Type: text/html, Size: 1665 bytes --]
next reply other threads:[~2002-12-15 9:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-15 9:56 Abylai Ospan [this message]
2002-12-16 11:04 ` transparent squid & iptables Arindam Haldar
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='008201c2a420$487f82a0$8902010a@alkaloid' \
--to=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 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.