From owner-freebsd-questions@FreeBSD.ORG Fri Sep 26 09:57:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A8E11065688 for ; Fri, 26 Sep 2008 09:57:59 +0000 (UTC) (envelope-from cb@lim.nl) Received: from lim.nl (93-125-163-97.dsl.alice.nl [93.125.163.97]) by mx1.freebsd.org (Postfix) with ESMTP id C4A208FC1E for ; Fri, 26 Sep 2008 09:57:58 +0000 (UTC) (envelope-from cb@lim.nl) Received: by venus (Postfix, from userid 80) id 7E30A5C2A; Fri, 26 Sep 2008 11:41:41 +0200 (CEST) To: freebsd-questions@freebsd.org MIME-Version: 1.0 Date: Fri, 26 Sep 2008 11:41:41 +0200 From: Colin Brace Message-ID: <6fcb5b8a45c5f63a10d863a009ee0700@localhost> X-Sender: cb@lim.nl User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: gateway NAT settings lost X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2008 09:57:59 -0000 Hi all, I recently ran out of diskspace on the root partition of my FreeBSD 7 box, which serves as a home server/gateway. As a result, when I went to edit my rc.conf file with nano earlier this moth, it couldn't save the changes and the file was written zero-length. Alas, my nightly backup subsequently archived this, and I've now lost the original. I only realized this when I needed to reboot last night. I have now been trying to rebuild my rc.conf settings from scratch. Most things work again now, except I still can't access the web from my LAN clients. 1.) I can get a dhcp lease from the server. 2.) DNS works, ie, $ dig cern.ch returns a DNS record 3.) but $ lynx cern.ch doesn't work. Here is my rc.conf now: check_quotas="NO" cron_enable="YES" hostname="venus" inetd_enable="NO" linux_enable="YES" moused_enable="YES" sshd_enable="YES" usbd_enable="YES" lighttpd_enable="YES" postfix_enable="YES" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" dovecot_enable="YES" rpcbind_enable="YES" nfs_server_enable="YES" mountd_flags="-r" # WLAN interface ifconfig_fxp0="DHCP" # LAN interface ifconfig_rl0="inet 192.168.1.1 netmask 255.255.255.0" # WIFI interface ifconfig_ath0="" smartd_enable="YES" pf_enable="YES" pflog_enable="YES" dhcpd_enable="YES" /usr/local/sbin/dnrd -s 208.67.222.222 postgresql_enable="YES" obspamd_enable="YES" obspamdlog_enable="YES" dovecot_enable="YES" rsyncd_enable="YES" rtadvd_enable="YES" I am using PF for NAT, and have the following rule: [...] ext_if = "fxp0" [...] nat on $ext_if from !($ext_if) to any -> ($ext_if) [...] I must be missing something obvious, but what? TIA -- Colin Brace Amsterdam http://lim.nl