From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 10 Jan 2003 09:54:49 +0400 From: "Sergey V. Golovin" To: community@altlinux.ru Subject: Re: [Comm] Re: dial-in troubles... again! Message-ID: <20030110055449.GB2915@sysadm.service.samkon.ru> Mail-Followup-To: community@altlinux.ru References: <9049741324.20021227090350@scs-900.ru> <20021227093914.3d359774.gosha@zkb.ru> <19011527235.20021227141555@scs-900.ru> <20021228104128.423be842.gosha@zkb.ru> <117705575113.20030104150323@scs-900.ru> <20030104114134.GA7294@sysadm.service.samkon.ru> <20030109233049.GC77533@osdn.org.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030109233049.GC77533@osdn.org.ua> User-Agent: Mutt/1.4i Sender: community-admin@altlinux.ru Errors-To: community-admin@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: community@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: On 10 Jan Fri 1:30, Michael Shigorin wrote: > On Sat, Jan 04, 2003 at 03:41:34PM +0400, Sergey V. Golovin wrote: > > А дальше надо настроить NAT, например, так > > iptables -t nat -A POSTROUTING -j SNAT --to-source 10.10.4.90 > > -s <здесь адрес удал. машины> > > Во-первых, куда удаленной? Рутера. Внешний. Например дом->сетка на работе->интернет Т.е. нужно с домашней(удаленной) в интер(интра)нет > Во-вторых, в данной ситуации проще -j MASQUERADE. не проще from man iptables: MASQUERADE This target is only valid in the nat table, in the POSTROUTING chain. ----------------------(sic!)---------------------------------------- It should only be used with dynami- cally assigned IP (dialup) connections: if you have a static IP address, you should use the SNAT target. ----------------------(/sic!)--------------------------------------- Mas- querading is equivalent to specifying a mapping to the IP address of the interface the packet is going out, but also has the effect that connections are forgotten when the interface goes down. This is the correct behavior when the next dialup is unlikely to have the same interface address (and hence any established connections are lost anyway). Впрочем, всегда можно поизвращаться ;-) > В-третьих, всегда есть > http://google.com/search?q=rusty+three+line+guide+masquerading > :-) -- Sergey V. Golovin