ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Motsyo Gennadi aka Drool <motsyo@gmail.com>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] непонятки с прозрачным прокси (ALS4.0.1)
Date: Wed, 15 Aug 2007 11:44:19 +0300
Message-ID: <46C2BCE3.9070004@gmail.com> (raw)
In-Reply-To: <20070815060718.GB16907@xeon.vladregion.ru>

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

Alexander Volkov пишет:
> On 2007-08-14 20:51:09 +0300, Motsyo Gennadi aka Drool wrote:
> MGaD> Alexander Yereshenko пишет:
> MGaD> > В Sysadmins@ ответили:
> MGaD> > =============
> MGaD> > В 4.0.1 Squid линейки 2.6, для него httpd_accel_* не нужны.
> MGaD> > Необходимо и достаточно
> MGaD> > 
> MGaD> > http_port 3128 transparent
> MGaD> > 
> MGaD> > =============
> MGaD> > 
> MGaD> > Проверено - заработало...
> 
> MGaD> 	Проверено - не заработало. Что-то где-то еще. Можно в личку конфиг сквида?
> Как это не заработало? Все пашет. Правило в PREROUTING добавлено?

	Может что там накосячил? Но ведь остальное (почтовики etc) работают. 
Скрипт в аттаче.

[-- Attachment #2: nat --]
[-- Type: text/plain, Size: 697 bytes --]

#!/bin/sh

# chkconfig: 2345 13 89
# description: NAT
. /etc/init.d/functions

case "$1" in
	start)
		
		echo -n "Starting NAT: "
			iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport www -i ppp0 -j DNAT --to 192.168.1.14:3128 \
			&& iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport www -i ppp0 -j DNAT --to 192.168.2.1:3128 \
			&& echo 1 > /proc/sys/net/ipv4/ip_forward \
			&& iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE \
			&& success
		echo
		;;
	stop)
		echo -n "Stopping NAT: "
			echo 0 > /proc/sys/net/ipv4/ip_forward && success
		echo
		;;
	restart)
		$0 stop
		$0 start
		;;
	*)
		echo "Usage: nat {start|stop|restart}"
		exit 1
		;;
esac

exit $RETVAL

  reply	other threads:[~2007-08-15  8:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14  8:43 Alexander Yereschenko
2007-08-14 15:59 ` Motsyo Gennadi aka Drool
2007-08-14 17:34   ` Grigory Batalov
2007-08-14 18:05     ` Motsyo Gennadi aka Drool
2007-08-14 17:35   ` Alexander Yereshenko
2007-08-14 17:51     ` Motsyo Gennadi aka Drool
2007-08-15  6:07       ` Alexander Volkov
2007-08-15  8:44         ` Motsyo Gennadi aka Drool [this message]
2007-08-15  9:20           ` Alexander Volkov
2007-08-15  9:33             ` Motsyo Gennadi aka Drool
2007-08-15  9:25           ` Alexander Yereschenko
2007-08-15  9:56             ` Motsyo Gennadi aka Drool
2007-08-15 10:14               ` Alexander Yereschenko

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=46C2BCE3.9070004@gmail.com \
    --to=motsyo@gmail.com \
    --cc=community@lists.altlinux.org \
    /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