Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 1998 17:41:49 -0800 (PST)
From:      Dan Busarow <dan@dpcsys.com>
To:        erron jett <erron@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: need routing help
Message-ID:  <Pine.BSF.3.96.980323172450.881H-100000@java.dpcsys.com>
In-Reply-To: <19980323231235.6680.qmail@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 23 Mar 1998, erron jett wrote:
> heres the info for the nics
> ed0  (isp, static)
> ip        24.1.88.xx
> gateway   24.1.88.1
> subnet    255.255.255.0
> 
> edi  (local)
> ip       208.202.105.xx
> gateway  208.202.105.1
> subnet   255.255.255.255

Since 208.202.105.0 is in UUNet's address space this wouldn't work
even if you did have your routing working. (Return packets
would go to UUNet)

Switch to RFC1918 addresses internally (ie 192.168.0.0-192.168.255.255)
and use natd.

You need to compile a kernel with options IPFIREWALL and IPDIVERT

Then enable the firewall in rc.conf with

firewall_enable="YES"
firewall_type="open"            # Set to firewall type or NO for none.
firewall_quiet="NO"             # Set to firewall type or NO for none.

You can change firewall_type to something other that "open"
*after* you get the rest working.

You apparently already have gateway_enable="YES" or you wouldn't
be able to ping ed0 from the inside.

Finally run natd to handle the translation from private addresses
to your @Home address, here's what I run

/usr/sbin/natd -s -m -u -interface ed0

That should get you up.  You do not need to make any manual
entries in the routing table, ifconfig will take care of that
for you.

If you run into problems do a search on natd using the freebsd.org
mailing list search engine.

Dan
-- 
 Dan Busarow                                                  714 443 4172
 DPC Systems / Beach.Net                                    dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82


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?Pine.BSF.3.96.980323172450.881H-100000>