From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: ABATAPA To: ALT Linux Community Subject: Re: [Comm] =?koi8-r?b?0sHaxMHU2A==?= =?koi8-r?b?IMnOxdQ=?= Date: Mon, 26 Sep 2005 15:20:56 +0400 User-Agent: KMail/1.8.1 References: <200509252317.28017.az@zolochevskie.net> <4337B7BA.6040408@ricom.ru> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200509261520.57209.altlinux-community@yandex.ru> X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 11:21:06 -0000 Archived-At: List-Archive: List-Post: Понедельник 26 Сентябрь 2005 12:09, Aleksander N. Gorohovski написал: > Так, тут Internet получается приходит через сетевую (), а   > человек спрашивал > случай когда он приходит через modem? В чем проблема? Можно поднимать из ifup скрипта, можно вместо SNAT сказать MASQ: iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0/0 -j MASQUERADE А можно сказать без привязки к IP: ipchains -A forward -j MASQ -s 192.168.0.0/16 -d 0.0.0.0/0 или через iproute2: ip rule add from 10.0.1.0/24 nat 254.147.38.14 -- ABATAPA