Routing Question

Nikos Vassiliadis nvass at teledomenet.gr
Tue Dec 12 01:00:48 PST 2006


On Tuesday 12 December 2006 09:49, Bret J. Esquivel wrote:
> Hi,
> 
>  
> 
> I have a cable modem at my office with a /28 allocated. I have a FreeBSD 6.1
> firewall/router in between the cable modem and the switch to other nodes. My
> question is how could I add static routes to say my web server having an
> external IP address but still going through the firewall box? NAT is not an
> option.
> 
>  
> 
> INET (70.164.48.225/28) -> [xl0] Firewall (70.164.48.226) [xl1] -> [xl0] Web
> server (70.164.48.227)

You can bridge xl0 and xl1. Then you'll use one address e.g. 70.164.48.225/28
on you xl0 and that will be reachable from your lan too. xl1 doesn't have to
have an IP address. Check man if_bridge.

But is this the topology? in many cases there is a PPP interface
which connects you to the world, a WAN interface. And there is a
network routed through this. Something like this:
                 W     A    N                                      L              A          N
(a.b.c.d/32) <-> (a.b.c.e/32 router d.e.f.a/28) <-> (d.e.f.b/28 other boxes)

Hope this help, Nikos


More information about the freebsd-questions mailing list