From owner-freebsd-questions Sat Dec 18 20:23:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from brutus.converging.net (edtn002029.hs.telusplanet.net [161.184.135.251]) by hub.freebsd.org (Postfix) with ESMTP id 6558D1514F for ; Sat, 18 Dec 1999 20:23:20 -0800 (PST) (envelope-from dtougas@brutus.converging.net) Received: (from dtougas@localhost) by brutus.converging.net (8.9.3/8.9.3) id VAA15103; Sat, 18 Dec 1999 21:26:37 -0700 (MST) (envelope-from dtougas) Date: Sat, 18 Dec 1999 21:26:37 -0700 From: D Tougas To: Charles Cc: freebsd-questions@freebsd.org Subject: Re: vanilla natd setup faq Message-ID: <19991218212637.A13854@converging.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from charles271828@my-Deja.com on Sat, Dec 18, 1999 at 06:11:16PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I am doing that very thing at home. I looked over your config info and only saw one thing that was different than my config. In my kernel, I have set the following in addition to what you have: options IPFIREWALL_DEFAULT_TO_ACCEPT I don't know if this will help, but it works for me. -- Damien Tougas Converging Technology Solutions, Inc. Phone: (780)469-1679 Fax: (780)461-5127 E-mail: dtougas@converging.net http://www.converging.net On Sat, Dec 18, 1999 at 06:11:16PM -0800, Charles wrote: > I apologize for being a clueless newbie with natd, but... I have read > the Handbook, the Complete FreeBSD, the FAQs, the man pages, and the > tutorial that was pointed out at: > > http://www.cis.ohio-state.edu/~rowland/FreeBSD/natd.html > > I still can't get the most simple natd situation to work, and I hope > someone can help me. I have a DSL connection, a FreeBSD machine with > two NICs, and a Windows machine with 1 NIC. Both machines connect to > the Internet fine via a direct connection to the DSL. > > In my desired configuration, I cable the two private NICs together and > connect the public NIC on the FreeBSD box to the DSL. My Windows setup > looks like this: > > IP Address: 192.168.0.2 > Gateway: 192.168.0.1 > DNS: 206.13.28.12 [Pacbell DSL] > > On the FreeBSD box, I have: > > network_interfaces="pn0 pn1 lo" > ifconfig_pn0="inet 192.168.0.1 netmask 255.255.255.0" > ifconfig_pn1="inet A.B.C.D netmask 255.255.255.0" > defaultrouter="E.F.G.H" [Pacbell DSL-assigned gateway] > gateway_enable="YES" > firewall_enable="YES" > firewall_type="open" > natd_enable="YES" > natd_interface="pn1" > natd_flags="-u -m -dynamic" > > In my kernel I have set > > options IPFIREWALL > options IPDIVERT > pseudo-device bpfilter 4 > > And I created the /dev/bpf[0-3] devices. (Though I don't believe > bpfilter is necessary, the "tutorial" mentioned above says it is.) > > Shouldn't this be enough? I'm baffled as to what to check next, or how > to check it... pings from either side to the other just time out. > > I feel there is something fundamental I just don't understand... > > Charles > > > > > --== Sent via Deja.com http://www.deja.com/ ==-- > Share what you know. Learn what you don't. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message