From owner-freebsd-questions@FreeBSD.ORG Sun Nov 13 06:26:39 2005 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 09F6416A41F for ; Sun, 13 Nov 2005 06:26:39 +0000 (GMT) (envelope-from bulk_mail@siegel-tech.net) Received: from smtp101.mail.sc5.yahoo.com (smtp101.mail.sc5.yahoo.com [216.136.174.139]) by mx1.FreeBSD.org (Postfix) with SMTP id B76CB43D45 for ; Sun, 13 Nov 2005 06:26:38 +0000 (GMT) (envelope-from bulk_mail@siegel-tech.net) Received: (qmail 4993 invoked from network); 13 Nov 2005 06:26:38 -0000 Received: from unknown (HELO ?192.168.245.22?) (aaronjsiegel@70.58.29.136 with plain) by smtp101.mail.sc5.yahoo.com with SMTP; 13 Nov 2005 06:26:37 -0000 From: Aaron Siegel To: freebsd-questions@freebsd.org Date: Sat, 12 Nov 2005 23:38:49 -0700 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511122338.49766.bulk_mail@siegel-tech.net> Subject: In a bit of a bind - DNS problems and ipfw X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aj@siegel-tech.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2005 06:26:39 -0000 Hello I am having problems with my FreeBSD 5.4 gateway/firewall. When I enable a custom firewall (ipfw) or the "Simple" firewall through rc.firewall my clients are unable to resolve DNS when DNS does work with the "Open" ruleset that is provide by rc.firewall. I create the custom firewall couple years ago and they work fine under 4.11 but after the upgrade I have not been able to get them to work. I sure I am doing something stupid but I am not smart enough to solve it at the moment. Thank you Aaron Siegel Custom firewall rules #Allow DNS $cmd 019 allow tcp from any to any 53 out via $pif $cmd 018 allow udp from any to any 53 out via $pif /etc/rc.conf gateway_enable="YES" firewall_enable="YES" firewall_type="open" natd_enable="YES" natd_interface="dc0" ifconfig_dc0="192.168.0.2" #public interface ifconfig_fxp0="192.168.245.1 netmask 255.255.255.0" #private interface /etc/rc.conf I have commented out the following lines #${fwcmd} add deny all from any to 192.168.0.0/16 via ${oif}