From owner-freebsd-ipfw Sun Jun 2 11: 4:26 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from moutvdomng1.kundenserver.de (moutvdomng1.kundenserver.de [195.20.224.131]) by hub.freebsd.org (Postfix) with ESMTP id D26B437B406; Sun, 2 Jun 2002 11:04:16 -0700 (PDT) Received: from [195.20.224.219] (helo=mrvdom03.kundenserver.de) by moutvdomng1.kundenserver.de with esmtp (Exim 3.22 #2) id 17EZi7-0005ja-00; Sun, 02 Jun 2002 20:04:11 +0200 Received: from p3e9e198d.dip0.t-ipconnect.de ([62.158.25.141] helo=encephalon.de) by mrvdom03.kundenserver.de with esmtp (Exim 2.12 #3) id 17EZi6-0005XA-00; Sun, 2 Jun 2002 20:04:11 +0200 Received: from chuckie.encephalon.de (localhost.encephalon.de [127.0.0.1]) by encephalon.de (8.12.3/8.11.6) with ESMTP id g52I5j0p001296; Sun, 2 Jun 2002 20:05:45 +0200 (CEST) (envelope-from plankalkuel@chuckie.encephalon.de) Received: (from plankalkuel@localhost) by chuckie.encephalon.de (8.12.3/8.12.3/Submit) id g52I5h5o001293; Sun, 2 Jun 2002 20:05:43 +0200 (CEST) (envelope-from plankalkuel) Date: Sun, 2 Jun 2002 20:05:39 +0200 From: "a.s.gruner" To: freebsd-ipfw@freebsd.org Cc: freebsd-questions@freebsd.org Subject: ipfw+natd+ppp problem Message-ID: <20020602200539.A1206@encephalon.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Operating-System: FreeBSD 4.6-RC i386 X-Editor: vi Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. I have some problems with setting up ipfw+ppp+natd on my FreeBSD 4.6-RC machine. ppp is working perfectly (user ppp). Now I want to run ipfw as firewall and natd for the windows box. FreeBSD Box has the interface xl0 with the IP 192.168.0.1 Windows Box has the IP 192.168.0.2 I can ping both of them. But i am not able to connect to the internet with the windows box via the freebsd box. Ok, first the configuration: /etc/rc.conf: (just the parts for ipfw and natd) gateway_enable="YES" firewall_enable="YES" firewall_script="/etc/firewall/fwrules" natd_program="/sbin/natd" natd_enable="YES" natd_interface="tun0" natd_flags="-dynamic" /etc/firewall/fwrules: ipfw add 65534 allow ip from any to any Yeah, i know there is no rule right now, it is all allowed. Well, on my FreeBSD Box everything is working perfectly. Ah, my kernel, i insert these lines and compiles a new one before i did the above changes: options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=100 options IPDIVERT On my FreeBSD Box wwwoffle is also running, but if this proxy is running or not, there is no difference, windows box cant get to the internet.... On my windows box i cant ping to the outside, and cant get a webpage at all. I am running ppp like: #ppp >dial internet Hmm, well, i hope i havent forgot anything, so that someone can help me out of this. Uh, i read that, before natd is running, ppp has to run. Well, i am using a dial up modem connection and i dont want to run ppp on startup, so, is this the problem that i am running natd before i run ppp ? Well, if i kill natd, run ppp (connect to the internet) and start natd again, the windows box cant get a connection too. On the Windows Box, i have insert the DNS Server IP, like the one on the freebsd box in resolv.conf, and, the gateway IP is the IP of the freebsd Box, 192.168.0.1 (xl0). asg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message