Date: 23 Oct 2001 17:41:18 -0500 From: Kirk Strauser <kirk@strauser.com> To: freebsd-net@freebsd.org Subject: Silly problem has me stumped Message-ID: <871yjunfn5.fsf@pooh.int>
next in thread | raw e-mail | index | archive | help
It's late in the day, my coffee's wearing off, and my brain is fried. My new ISP uses private addresses for all internal routing. Let's say that my new public address block is 1.2.3.0/24, and that the routing block between their network and mine is 10.0.0.0/30, and my default router is 10.0.0.1.My FreeBSD 4.4 (STABLE) machine, named gw1 and housing several Ethernet cards, will be a router and DNS server. Here is the basic network diagram: Internet +--- || | Their network 10.0.0.1 - their router +--- || || 10.0.0.2 - gw1 +--- || | 1.2.3.0/24 - gw1 | My network || | Public servers | on my LAN +--- Because gw1 needs to be world-accessible, I need both the private (10.0.0.2/30) and public (1.2.3.0/24) configured on the same NIC. While that's trivial enough, my problem is that all outgoing packets originating from gw1 have a source address in the private block, which means that I can't ping out or traceroute past the borders of my ISP's internal routing system. My guess is that the outbound packets get a source address in the private block because the default route is in that block. Is there a way to get FreeBSD to use a particular address out of several on an interface as the source address? Please forgive me if I sound like a crack junkie. I've been looking at the screen too long for one day's work. -- Kirk Strauser To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?871yjunfn5.fsf>