From owner-freebsd-questions Tue Jul 16 21: 9:17 2002 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 D9ECE37B401 for ; Tue, 16 Jul 2002 21:09:11 -0700 (PDT) Received: from localhost.neotext.ca (h24-70-64-200.ed.shawcable.net [24.70.64.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0FEA43E67 for ; Tue, 16 Jul 2002 21:09:10 -0700 (PDT) (envelope-from campbell@babayaga.neotext.ca) Received: from babayaga.neotext.ca (localhost.neotext.ca [127.0.0.1]) by localhost.neotext.ca (8.11.6/8.11.0) with ESMTP id g6H499a24140; Tue, 16 Jul 2002 22:09:09 -0600 (MDT) (envelope-from campbell@babayaga.neotext.ca) Date: Tue, 16 Jul 2002 22:09:09 -0600 (MDT) Message-Id: <200207170409.g6H499a24140@localhost.neotext.ca> From: "Duncan Patton a Campbell is Dhu" To: freebsd@ec.rr.com Cc: freebsd-questions@FreeBSD.ORG Subject: Dynamic Rules with IPFW Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Date: Tue, 16 Jul 2002 22:09:09 -0600 Message-Id: <20020717040909.M40939@babayaga.neotext.ca> X-Mailer: Open WebMail 1.70 20020712 X-OriginatingIP: 127.0.0.1 (campbell) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 I use no check-states, just keep-state, and only for DNS, soo, ${fwcmd} add pass tcp from any to ${myip} 443 setup ${fwcmd} add pass tcp from any to ${myip} 25 setup ${fwcmd} add pass tcp from any to ${myip} 22 setup ${fwcmd} add pass tcp from any to ${myip} 80 setup ${fwcmd} add pass esp from any to any This passess https, smtp, ssh and http. Seems to stay up. Do you need to deny established links for some reason? Duncan Patton a Campbell is Duibh ;-) you wrote: I use Dynamic rulesets with IPFW: ipfw add check-state ipfw add deny tcp from any to any established ipfw add allow tcp from my-net to any setup keep-state But I also have services I need anyone on the net to get to, without me making a connection first from " my-net ". I allow such services with: allow tcp from any to my-net 25,80,443 setup in via xl0 keep-state This works fine for 25,80, and 443. However, when I apply the same rule for SSH, and login to my box remotely, about 10 minutes later, the connection just dies, and it dies with every connection. Removing the keep-state option for ssh effec tively closes 22 obviously. Would check-state be a better option here? Michael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message