From owner-freebsd-questions Fri May 12 10:12:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pollo.monkeybrains.net (rururudy-0.dsl.speakeasy.net [216.231.57.142]) by hub.freebsd.org (Postfix) with ESMTP id CAFEE37B62D for ; Fri, 12 May 2000 10:12:20 -0700 (PDT) (envelope-from rudy@pollo.monkeybrains.net) Received: from localhost (rudy@localhost) by pollo.monkeybrains.net (8.9.3/8.9.3) with ESMTP id DAA32166; Fri, 12 May 2000 03:09:12 -0700 (PDT) (envelope-from rudy@pollo.monkeybrains.net) Date: Fri, 12 May 2000 03:09:12 -0700 (PDT) From: Rudy Rucker To: Jeremy Warner Cc: questions@FreeBSD.ORG Subject: Re: IPFW and NATD question In-Reply-To: <001401bfbc33$025f0980$1001a8c0@northwesttechnical.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Do a 'ipfw show' as root. That will make sure that your firewall is running and the correct rules are loaded (look for the divert rule). Did you set up clients on the 192.168.1.x network to use 192.168.1.1 as their gateway (and as their DNS)? Rudy On Fri, 12 May 2000, Jeremy Warner wrote: > I trying to setup NATD and IPFW and im not getting very far. > I'm using FreeBSD-4.0. > My gateway server is connected to the internet (fxp0) and it is also connected to my network (fxp1) > I am trying to get natd to divert my internal network 192.168.1.0 through my gateway so that my internal network can see the internet, but for some reason its not working. > > I compiled my Kernal with: > options IPFIREWALL > options IPFIREWALL_VERBOSE > options IPDIVERT > > This is what my rc.conf file looks like: > > ifconfig_fxp0="inet 206.163.165.1 netmask 255.255.255.224" > ifconfig_fxp1="inet 192.168.1.1 netmask 255.255.255.0" > gateway_enable="YES" > defaultrouter="206.163.165.30" > named_enable="YES" > network_interfaces="lo0 fxp0 fxp1" > hostname="gw.northwesttechnical.com" > natd_enable=YES > natd_interface="fxp0" > natd_flags="-f /etc/natd.conf" > firewall_enable=YES > firewall_type=open > firewall_quiet=YES > > This is my natd.conf file: > > interface fxp0 > deny_incoming yes > use_sockets yes > same_ports yes > > > If anyone has any ideas here let me know. > > Thanks... > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message