From owner-freebsd-questions@FreeBSD.ORG Sun Feb 13 09:38:34 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 064F416A4CE for ; Sun, 13 Feb 2005 09:38:34 +0000 (GMT) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7A7143D48 for ; Sun, 13 Feb 2005 09:38:33 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.44) id 1D0GD1-0000vZ-MU; Sun, 13 Feb 2005 09:38:32 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.44) id 1D0GD1-0003pm-Ai; Sun, 13 Feb 2005 09:38:31 +0000 Date: Sun, 13 Feb 2005 09:38:31 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Daniela In-Reply-To: Message-ID: References: <200502112206.43267.dgw@liwest.at> <420D2348.4020408@spintech.ro> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: -2.8 X-Spam-Level: -- cc: Alin-Adrian Anton cc: questions@freebsd.org Subject: Re: How do I set the source address on a multi-homed host? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 09:38:34 -0000 On Sun, 13 Feb 2005, Jan Grant wrote: > On Sat, 12 Feb 2005, Daniela wrote: > > > Yes, this happens when I connect from my machine (which functions as a router > > with NAT to allow the other LAN machines connect to the internet) to another > > LAN machine. When the router establishes a connection to another point in the > > intranet, the source address used is my official IP, and not 10.0.0.1, which > > is the intranet IP of the router. > > In other words, I want the source address to be 10.0.0.1 on every outgoing > > connection where the destination is inside my intranet. > > Assuming you haven't munged the internal IP address to hide it, and with > all due deference to the FreeBSD "mechanism, not policy" mantra: no, you > don't want to do this. Excuse my misinformation. Misread "inside" for "outside". -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287864 or +44 (0)117 9287088 http://ioctl.org/jan/ Solution: (n) a watered-down version of something neat.