ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] Не могу развернуть SQUID ?
@ 2008-10-10  0:07 Vitalik Salomatin
  0 siblings, 0 replies; only message in thread
From: Vitalik Salomatin @ 2008-10-10  0:07 UTC (permalink / raw)
  To: sysadmins

При обращении на мой Web сервер по http  я командой 
 iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 
  весь трафик, приходящий на порт 80 перенаправляю на порт 3128
 
 Помечаю пакеты
 
 iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 80 -j MARK --set-mark 2
 
 Как повернуть их на мой squid?
 
 чтобы закачивали только через прокси.
 
 в конфигурации squida ставлю
#
#Default:
# http_port 3128
#
# Squid normally listens to port 3128
http_port 3128 transparent

модуль redirect подгружен


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

only message in thread, other threads:[~2008-10-10  0:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-10  0:07 [Sysadmins] Не могу развернуть SQUID ? Vitalik Salomatin

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git