From: "Alexandr R. Ogurtzoff" <aogurtsov@hostopia.com>
To: community@altlinux.ru
Subject: Re: [Comm] рТПЪТБЮОЩК РТПЛУЙ
Date: Thu, 26 Aug 2004 16:24:11 +0300
Message-ID: <200408261624.11686.aogurtsov@hostopia.com> (raw)
In-Reply-To: <D07A0720E2689E418F173F62E7C24D1E01695D34@localhost>
Привет!
> Достаточно ли что-то роде
> IPTABLES -t nat -A PREROUTING -p TCP --dport 80 -j REDIRECT --to-port 3128
Это если на той же машине, если на другой то:
iptables -t nat -A PREROUTING -i eth0 -s ! squid-box -p tcp --dport 80 -j DNAT
--to squid-box:3128
iptables -t nat -A POSTROUTING -o eth0 -s local-network -d squid-box -j SNAT
--to iptables-box
iptables -A FORWARD -s local-network -d squid-box -i eth0 -o eth0 -p tcp
--dport 3128 -j ACCEPT
Удачи!
--
Best regards
Alexandr R. Ogurtzoff
next prev parent reply other threads:[~2004-08-26 13:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-26 13:11 [Comm] ðÒÏÚÒÁÞÎÙÊ ÐÒÏËÓÉ InboxISi
2004-08-26 13:24 ` Alexandr R. Ogurtzoff [this message]
2004-08-27 4:33 ` [Comm] Прозрачный прокси Alexandr Rakhmanin
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=200408261624.11686.aogurtsov@hostopia.com \
--to=aogurtsov@hostopia.com \
--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