Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2001 11:36:57 -0400 
From:      Greg Diamond <greg.diamond@nurunnewyork.com>
To:        "'freebsd-newbies@freebsd.org'" <freebsd-newbies@freebsd.org>
Subject:   FreeBSD gateway - what am i missing?
Message-ID:  <1116383010B7D31182A900508B8B8605B01536@6321146195.cythereinc.com>

next in thread | raw e-mail | index | archive | help
I am trying to set up a FreeBSD box to act as a gateway (+ firewall/nat)

I set up a box with 2 nic cards:
rl0: IP 111.222.33.44 netmask 255.255.255.0     #public ip (static) -
connected to DSL Modem
dc0: IP 192.168.1.1 netmask 255.255.255.0      #internal ip - connected out
to hub
gateway_enabled="yes"
default_router 111.222.33.1   #my isp assigned gateway

i re-compiled the kernel to include
options IPFIREWALL
options IPDIVERT

i connected my NT Server to the hub and assigned it
IP 192.168.1.2 netmask 255.255.255.0 default gateway 192.168.1.1

i edited the `hosts` files on both my FreeBSD and NT machines
also edited my desktop firewall on my NT box to allow local traffic

i figured at this point i should be able to at least have my machines ping
each other, but to no avail
NT to FreeBSD --> request time out
FreeBSD to NT --> `Permission Denied`

i tried adding to no avail:
route add -net 192.168.1.1/16 -interface dc0
and tried running the routed which just storms me with permission denied
i have netstart run at boot time from the rc.local script

what step am i missing?  is there other info of my setup/config i need to
post?
i'm rather new to unix, and using FreeBSD as my learning box instead of a
Linux distro.
I've have pretty good luck so far the past few weeks with it, setting up
x/kde/apache/mysql/php as a server/workstation with success.. been pretty
happy as a newbie so far ;-) but stumped with this issue ;-(
any help, or maybe a link to a good newbie walk thru for this setup.. i've
been searching and hacking at it for a while without success.

thanx
Greg

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




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