From owner-freebsd-questions@FreeBSD.ORG Sun Nov 28 01:32:50 2004 Return-Path: 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 8F93916A4CE for ; Sun, 28 Nov 2004 01:32:50 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C83743D5F for ; Sun, 28 Nov 2004 01:32:48 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a196.otenet.gr [212.205.215.196]) iAS1Vitb009229; Sun, 28 Nov 2004 03:31:44 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id iAS1VZbL001070; Sun, 28 Nov 2004 03:31:35 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id iAS1VZn7001069; Sun, 28 Nov 2004 03:31:35 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 28 Nov 2004 03:31:35 +0200 From: Giorgos Keramidas To: Jonathon McKitrick Message-ID: <20041128013135.GD662@gothmog.gr> References: <20041127215612.GA86416@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041127215612.GA86416@dogma.freebsd-uk.eu.org> cc: freebsd-questions@freebsd.org Subject: Re: Is this a hole in my firewall? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2004 01:32:50 -0000 On 2004-11-27 21:56, Jonathon McKitrick wrote: > root@neptune:~# ipfw show > 00100 0 0 check-state > 00200 2 144 allow ip from me to any keep-state out xmit tun0 > 00300 0 0 allow ip from any to any keep-state out xmit tun0 > 00400 0 0 deny tcp from any to any in recv tun0 established > 00500 0 0 allow ip from any to any via vr0 > 00600 0 0 allow ip from any to any via lo0 > 00700 0 0 deny ip from any to 127.0.0.0/8 > 00800 0 0 deny ip from 127.0.0.0/8 to any > 00900 0 0 allow tcp from any to me 22 keep-state in recv vr0 setup > 01000 0 0 allow icmp from any to any via tun0 icmptype 0,3,8,11,12 > 01100 0 0 deny log logamount 100 ip from any to any > 65535 0 0 deny ip from any to any > > I added rule 300 so that my laptop on my wireless network can connect, > ping, and get DNS and DHCP. Is there a better way to specify this? AFAIK, rule 00300 will never be hit by packets going out tun0 as long as you also have rule 00200 in there.