From: InboxISi <mailbox030403@mail.ru>
To: "'community@altlinux.ru'" <community@altlinux.ru>
Subject: RE: [Comm] iptables
Date: Tue, 7 Sep 2004 15:46:00 +0400
Message-ID: <D07A0720E2689E418F173F62E7C24D1E01695DFF@localhost> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 962 bytes --]
>Ñäåëàí ìàñêàðàäèíã. Ñòîèò ñêâèä. ×òî íàäî ñêàçàòü, ÷òî áû ðåäèðåêòèòü
>âñå îáðàùåíèÿ ñ îïðåäåëåííîãî IP íà 80 ïîðò ïðîêñè íà, íàïðèìåð, 800?
>$IPTABLES -t nat -A PREROUTING -i eth1 -s 192.168.1.XX -p tcp --dport 80 -j
DNAT --to-destination 192.168.1.66:800
>
>Íå ïîìîãàåò. ×òî íå òàê?
Ìîæíî àäàïòèðîâàòü ïðàâèëà ïî àíàëîãèè ñ ýòèìè:
iptables -t nat -A PREROUTING -i eth0 -s ! squid-box -p tcp --dport 80 -j
DNAT --to squid-box:3128
Èëè
iptables -t nat -A PREROUTING -i eth0 -s 192.168.1.XX -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 eth1 -p tcp
--dport 3128 -j ACCEPT
À òàêæå, âîçìîæíî åùå ïîòðåáóåòñÿ íàñòðîèòü ñêâèä íà "ïðîçðà÷íîå"
ïðîêñèðîâàíèå
Ïðîïèñàòü â squid.conf ñëåäóþùèå ïàðàìåòðû:
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
reply other threads:[~2004-09-07 11:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=D07A0720E2689E418F173F62E7C24D1E01695DFF@localhost \
--to=mailbox030403@mail.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