Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2002 18:42:16 -0800 (PST)
From:      Dennis Holmes <dholmes@liberator.dyndns.org>
To:        failure@speakeasy.net (BURNT MELTING MONKEY FACE)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: NAT, route, & firewall
Message-ID:  <200203060242.SAA04506@star-one.liberator.dyndns.org>
In-Reply-To: <Pine.LNX.4.44.0203051700290.21723-100000@grace.speakeasy.net> from BURNT MELTING MONKEY FACE at "Mar 5, 2002  5: 8:41 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Look what BURNT MELTING MONKEY FACE wrote:
> hello,
> 
> i've just added a new host (freebsd 4.3) to our NAT'd LAN and i'm having some
> troubles adding the route.
> 
> we have a ENI Speedstream 5871 router connected to a SOHO Watchguard firewall.  
> we've got the 4 boxes connected to the firewall, which is the gateway also at 
> 192.168.254.254.  not sure what the LAN IP of the router is though.  i do know 
> the WAN IP...
> 
> after i run... (which i'm sure is wrong)
> 
> $ route add -net 192.168.254.0 -host 192.168.254.254 -netmask 255.255.255.0
> 
> in the routing tables i see...
> 
> Dest		Gateway			Flags
> ----		-------			-----
> 192.168.254	192.168.254.254		UGSc
> 
> please tell me what i'm doing wrong.  'man route' is imprinted in my skull but 
> i'm obviously retarded.  if i've left anything out please let me know.
> 
> thanks.
> 
> -jared

The route for the local subnet looks like your above result and is
normally added automatically when the interface is configured.  It
sounds like you're trying to add the new host's default route so it
can communicate beyond the local subnet; if not, please excuse me and
explain your environment in more detail is possible.
Assuming that the address assigned for the new host is 192.168.254.x,
you probably want the following if manually configuring while running.
Substitute "ed0" with the appropriate name of your NIC.

$ ifconfig ed0 inet 192.168.254.x netmask 255.255.255.0
$ route add -net default 192.168.254.254

Or automatically in /etc/rc.conf:

ifconfig_ed0="inet 192.168.254.x netmask 255.255.255.0"
defaultrouter="192.168.254.254"

+----------------+-------------------+------------------------------------+
| Dennis Holmes  | dholmes@rahul.net |  "We demand rigidly defined        |
| San Jose, CA   +-------------------+   areas of doubt and uncertainty!" |
+------=>{ Meanwhile, as Ford said: "Where are my potato chips?" }<=------+

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203060242.SAA04506>