From: Olvin <olvin@rambler.ru>
To: community@altlinux.ru
Subject: Re: [Comm] squid transparenr proxy
Date: Mon, 28 Mar 2005 11:20:39 +0300
Message-ID: <4247BE57.5090804@rambler.ru> (raw)
In-Reply-To: <48690485.20050326210217@emdev.ru>
Igor Shevchenko wrote:
> Запарился уже смертельно. bog.pp.ru и подобные не помогают.
> Хочется transparent proxy на squid и iptables. Читал доки, сделал
> так(На выходе из локалки ,на роутере на АЛМ 2.4):
> в squid.conf:
> http_port 3128
> httpd_accel_host virtual
> httpd_accel_port 80
> httpd_accel_with_proxy on
> httpd_accel_uses_host_header on
>
> в iptables добавил:
> iptables -t nat -A PREROUTING -i eth1 -d ! 192.168.3.0/24 -p tcp
> --destination-port 80 -j REDIRECT --to-ports 3128
>
> И не работает. Что можно попробовать?
iptables -t nat -A PREROUTING -s 10.1.0.0/16 -i eth1 -p tcp -m tcp
--dport 80 -j REDIRECT --to-ports 3128
Работает. Три внутренних сети вида 10.1.X.0/24
next prev parent reply other threads:[~2005-03-28 8:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-26 18:02 Igor Shevchenko
2005-03-28 8:20 ` Olvin [this message]
2005-03-28 15:33 ` Re[2]: " Igor Shevchenko
2005-03-28 18:10 ` Мар'ян Петришин
2005-04-05 15:21 ` [Comm] squid transparenr proxy - more info Igor Shevchenko
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=4247BE57.5090804@rambler.ru \
--to=olvin@rambler.ru \
--cc=community@altlinux.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git