From owner-freebsd-questions@FreeBSD.ORG Wed Jan 4 18:10:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ECEF16A41F for ; Wed, 4 Jan 2006 18:10:30 +0000 (GMT) (envelope-from rubenl@bloemgarten.demon.nl) Received: from post-25.mail.nl.demon.net (post-25.mail.nl.demon.net [194.159.73.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 191DD43D46 for ; Wed, 4 Jan 2006 18:10:29 +0000 (GMT) (envelope-from rubenl@bloemgarten.demon.nl) Received: from axelds.demon.nl ([83.160.138.74]:15789 helo=abubbletprpdda) by post-25.mail.nl.demon.net with esmtp (Exim 4.51) id 1EuD5h-0003hr-17; Wed, 04 Jan 2006 18:10:29 +0000 From: "Ruben Bloemgarten" To: "'Brian Bobowski'" , "'FreeBSD User Questions List'" Date: Wed, 4 Jan 2006 19:10:10 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <43BC097C.4000401@gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Thread-Index: AcYRVpdOptP5cIUASY2XBK2nN970KwAAk4xg Cc: Subject: RE: Setting up a FreeBSD gateway X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ruben@bloemgarten.demon.nl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2006 18:10:30 -0000 1. I assume you are running some kind of NAT ? 2. allow udp/tcp traffic out on port 53 to the dns servers you want to use. This will pass the dns requests through the gateway. If you want to use the gateway as a dns forwarder, you need to install something to do this. A third alternative is to setup your own dns server on this machine using something like bind or djbdns. Regards, Ruben http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.ht ml these pages should tell you what you need to know. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Brian Bobowski Sent: January 04, 2006 6:44 PM To: FreeBSD User Questions List Subject: Setting up a FreeBSD gateway OK, I've tried searching through man pages and such, but I've got kind of lost here. I have one machine that's acting as a gateway for my home PC, in addition to running a few local servers. I know I shouldn't do that, but the traffic is low and I just don't have room for more computers in my room, anyway. At any rate... I think I've got the packet-forwarding aspect set up OK; I compiled a kernel with the options I found in the docs on the matter. However, I don't know how to set up DNS. Specifically, I want to either pass all DNS requests through the gateway, or have the gateway run a local DNS that queries my ISP's DNS in turn. Can anyone point me to some steps on how to set that up? A bit of user-friendly instruction on using ipfw would be nice, too; I think I'd be able to figure it out in time, but if someone can spare a few moments to point out where I can find instructions on e.g. passing traffic on certain ports through to the other machine, handling others, and blocking the rest, it'd be appreciated. It's specifically the forwarding part that has me a bit mystified. Please reply off-list. TIA, -BB _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.12/220 - Release Date: 01/03/2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.12/220 - Release Date: 01/03/2006