From owner-freebsd-hackers Tue Dec 15 02:49:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA12739 for freebsd-hackers-outgoing; Tue, 15 Dec 1998 02:49:46 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns.wan (trltech.demon.co.uk [194.222.7.191]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA12730 for ; Tue, 15 Dec 1998 02:49:41 -0800 (PST) (envelope-from richard@jezebel.demon.co.uk) Received: from jezebel.demon.co.uk (rdls.dhcp.sw.wan [192.9.201.75]) by ns.wan (8.8.8/8.8.8) with ESMTP id KAA20939; Tue, 15 Dec 1998 10:49:00 GMT (envelope-from richard@jezebel.demon.co.uk) Message-ID: <36763ED7.99324B8B@jezebel.demon.co.uk> Date: Tue, 15 Dec 1998 10:49:59 +0000 From: Richard Smith Organization: http://www.trltech.co.uk X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: Antti Kaipila CC: hackers@FreeBSD.ORG Subject: Re: Source address References: <87af0pzohw.fsf@pens.ion.sci.fi> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Antti Kaipila wrote: > > I have a interesting problem here. I have FreeBSD accting as a router > between our LAN and Internet. I have a ET5025 card as interface eth0 and > Intel EtherExpress as interface fxp0. > > eth0 has address 10.156.214.2 and remote ends address is 10.156.214.1. > fxp0 has address 195.74.8.138 > > So, now when I try to connect from this machine acting as router to > anywhere on the internet my source address get set to > 10.156.214.2. Which is not nice, because all routers are dropping my > packets thinking they should'nt be routed (that's the right thing to > do ofcourse). > > Is there any way around this? You need to run natd on your FBSD router, so that all packets 'appear' to originate from *it* (195.74.8.138). See man natd. -richard. _______________________________________________________________________ Richard Smith Assistant Chief Engineer TRL Technology Limited To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message