From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-POP-User: strofimchuk.hostopia.com From: "Alexandr R. Ogurtzoff" Organization: Hostopia To: community@altlinux.ru Subject: Re: [Comm] =?windows-1251?b?8NLP2tLB3s7Zyg==?= =?windows-1251?b?INDSz8vTyQ==?= Date: Thu, 26 Aug 2004 16:24:11 +0300 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Message-Id: <200408261624.11686.aogurtsov@hostopia.com> X-MMX: 0 X-MMC: 224 X-MMR: 1 X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 13:27:26 -0000 Archived-At: List-Archive: List-Post: Привет! > Достаточно ли что-то роде > 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