From owner-freebsd-isp Thu Sep 16 14:44:51 1999 Delivered-To: freebsd-isp@freebsd.org Received: from donna.risc.lv (donna.risc.lv [159.148.12.1]) by hub.freebsd.org (Postfix) with ESMTP id 3E2F314C1E for ; Thu, 16 Sep 1999 14:44:33 -0700 (PDT) (envelope-from vic@rezekne.lv) Received: from rezekne.lv (vic.risc.lv [159.148.12.22]) by donna.risc.lv (8.9.3/X.Y.Z) with ESMTP id AAA18778 for ; Fri, 17 Sep 1999 00:44:30 +0300 (EEST) (envelope-from vic@rezekne.lv) Message-ID: <37E164BE.BAECADE0@rezekne.lv> Date: Fri, 17 Sep 1999 00:44:30 +0300 From: Victor Meirans Organization: Rezekne Internet Service Center (http://www.risc.lv) X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: en,zh-CN,zh-TW,zh,ru MIME-Version: 1.0 To: FreeBSD ISP mailing list Subject: What am I doing wrong? Content-Type: text/plain; charset=iso-8859-4 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello... I need to set up a FreeBSD (3.2-RELEASE) router with NAT. 2 NICs. The situation is: Internet | | --------159.148.42.241 |Router|------------------ --------255.255.255.252 | | | |159.148.42.242 |255.255.255.252 ------------- | FreeBSD | ------------- |192.168.1.254 |255.255.255.0 | | --------------- |-----------------------|Local network| |192.168.1.0 | |255.255.255.0| --------------- What I did: 1. Compiled kernel with options IPFIREWALL options IPDIVERT 2. My rc.conf is moused_port="/dev/psm0" moused_enable="YES" saver="logo" gateway_enable="YES" firewall_enable="YES" natd_enable="YES" natd_interface="ed1" natd_flags="-f /etc/natd.conf" hostname="ufo.blezurs.lv" ifconfig_ed2="inet 192.168.1.254 netmask 255.255.255.0" ifconfig_ed1="inet 159.148.42.242 netmask 255.255.255.252" defaultrouter="159.148.42.241" network_interfaces="ed2 ed1 lo0" linux_enable="YES" ntpdate_enable="YES" ntpdate_flags="Time1.Stupi.SE" named_enable="YES" 3. My rc.firewall is /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via ed1 /sbin/ipfw add pass all from any to any 4. My rc.local just runs natd natd -f /etc/natd.conf 5. My natd.conf is interface ed1 use_sockets yes same_ports yes dinamic yes That's all. Nothing works. I can't ping the router nor I can ping local addresses. Am I missing something? Is something misconfigured? Thanks in advance... -- ---> ViC <--- --==> Rezekne Internet Service Center http://www.risc.lv "PCT Latgale" Ltd. Phone: +371-4622972 Baznicas 17, Rezekne, Fax: +371-4625931 LV-4601, Latvia GSM: +371-9577569 -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message