Trouble configuring network gateway

Lists akbeech at
Sun Apr 13 10:34:21 PDT 2003

-----Original Message-----
From: owner-freebsd-questions at
[mailto:owner-freebsd-questions at]On Behalf Of John C
Sent: Saturday, April 12, 2003 5:14 PM
To: freebsd-questions at
Subject: Trouble configuring network gateway


I am attempting to turn a PC into a gateway/firewall for my home network.
My ISP is Comcast ... So whatever ramifications therein, for better or
worse, apply to my predicament ...

I've gotten both interfaces up and working, but I can't seem to get it to
switch packets from within the subnet out into the internet.  The kernel is
pretty much GENERIC 4.7, except with the GATEWAY option set, plus with

In sysctl.conf

My configuration is as follows:

Gateway machine: "argonath"
External network interface: sis0 (netgear card, ip provided by
Default route: (presumably my cable modem)
Private subnet interface: rl0

Secondary subnetted machine "shelob":
Default route:

I can ping & ssh to "argonath" from "shelob", and can reach the internet
from argonath's rl0 ... But like I said, the gateway action isn't happening.

One other thing I found odd is that when my secondary machine is plugged
directly into the Comcast subnet, it reports a default route of,
which seems more right, but I don't have experience enough in these matters
to say, and what documentation I've found isn't specific enough to give me a
clue about how to solve this problem ...

Please help?


You need to set up network address translation. The following section from
the handbook should help you:


    Beech Rintoul - Network Administrator - akbeech at
/"\   ASCII Ribbon Campaign  | NorthWind Communications
\ / - NO HTML/RTF in e-mail  |
 X  - NO Word docs in e-mail | Anchorage, AK 99518-1841
      No More Spam!
/ \ -----------------------------------------------------------------

More information about the freebsd-questions mailing list