ALT Linux Community general discussions
 help / color / mirror / Atom feed
* RE: [Comm] iptables
@ 2004-09-07 11:46 InboxISi
  0 siblings, 0 replies; only message in thread
From: InboxISi @ 2004-09-07 11:46 UTC (permalink / raw)
  To: 'community@altlinux.ru'

[-- 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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-07 11:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-07 11:46 [Comm] iptables InboxISi

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