From owner-freebsd-hackers Fri Dec 18 19:12:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA13875 for freebsd-hackers-outgoing; Fri, 18 Dec 1998 19:12:29 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from findmail.com (m9.findmail.com [209.185.96.144]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id TAA13870 for ; Fri, 18 Dec 1998 19:12:28 -0800 (PST) (envelope-from dnelson@redwoodsoft.com) Received: (qmail 10032 invoked by uid 505); 19 Dec 1998 03:12:19 -0000 Date: 19 Dec 1998 03:12:19 -0000 Message-ID: <19981219031219.10031.qmail@findmail.com> Received: from 206.16.70.101 (via http) from to list "freebsd-hackers" From: "Dru Nelson" Subject: Re: Source address In-Reply-To: <87r9u0tkgr.fsf@pens.ion.sci.fi> To: freebsd-hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I think this is a great idea. > So. If there is no current solution to this problem, I'm > thinking of doing the neccesary modifications to the kernel. I'm not a > kernel hacker but this problem does'nt seem too hard to solve. > > So I'd like to get your oppinnions. I'm thinking of using the > sysctl interface to the kernel. Introduce a new variable and if this > variable is set outgoing packets are given source address described in > this variable. This would be done just before the source address is > set to the outgoing interface if it's not already set. (in ip_output.c) > > I really have no real clue if this is the right way to go it's > just my first idea and I'd like to hear whay you think about it. Thanks. > > > Jamie Bowden writes: > > > On Tue, 15 Dec 1998, Richard Smith wrote: > > > > > 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. > > > > Not quite. His ISP is using 1918 networks between routers. > > > > I do this as well. With Cisco you can set the primary IP of the router, > > and all traffic appears to come from that IP, no matter which interface it > > goes through. If there is a way to have FreeBSD always report the > > connection as coming from it's usable IP, all that has to be done is to do > > it, but I don't know if FreeBSD can do that. > > > > Jamie Bowden > > > > -- > > Systems Administrator, iTRiBE.net > > > > If we've got to fight over grep, sign me up. But boggle can go. > > -Ted Faber (on Hasbro's request for removal of /usr/games/boggle) > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > -- > Antti Kaipila > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > ----- See the original message at http://www.egroups.com/list/freebsd-hackers/?start=31780 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message