From owner-freebsd-security Sun Sep 27 01:27:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA01051 for freebsd-security-outgoing; Sun, 27 Sep 1998 01:27:02 -0700 (PDT) (envelope-from owner-freebsd-security@FreeBSD.ORG) Received: from csi-x.net (csi-x.net [202.184.73.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA01041 for ; Sun, 27 Sep 1998 01:26:59 -0700 (PDT) (envelope-from najib@csi-x.net) Received: from csi-x.net (nobody@csi-x.net [202.184.73.5]) by csi-x.net (8.9.1/8.9.1) with SMTP id QAA05826 for ; Sun, 27 Sep 1998 16:32:40 +0800 (MYT) From: "Muhammad Najib" Reply-to: najib@csi-x.net To: freebsd-security@FreeBSD.ORG Date: Sun, 27 Sep 98 16:32:42 -800 Subject: Re: Firewall ... X-Mailer: DMailWeb Web to Mail Gateway 1.5af, http://netwinsite.com/top_mail.htm Message-id: <360df82a.16bd.0@csi-x.net> X-User-Info: 202.188.177.2 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >In some mail from Muhammad Najib, sie said: >> >> Thanx Andrew for that bunch of information. But actually I need it in 'ipf' >> instead of 'ipfw' :) > >If you're using ipf, use "keep state". > >Darren > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-security" in the body of the message > Thanx Darren, Let me try this here. This is the file I made for trying out purposes. It's actually allow DNS, telnet and ftp services only and disallow other then those services. # Allow ftp and ftp-data pass in proto tcp from any to any port = 20 keep state pass out proto tcp from any to any port = 20 keep state pass in proto tcp from any to any port = 21 keep state pass out proto tcp from any to any port = 21 keep state # Allow telnet pass in proto tcp from any to any port = 23 keep state pass out proto tcp from any to any port = 23 keep state # Allow DNS pass in proto tcp from any to any port = 53 keep state pass out proto tcp from any to any port = 53 keep state Please point me out if there's anything wrong with this. Thanx in advance. regards, ****************************************************************** MUHAMMAD NAJIB ABDUL MUKTHI member of My-Linux.ORG NETWORK ENGINEER / SYSTEM ADMINISTRATOR http://www.my-linux.org Cutting Edge Enterprise MPKS Tower Jalan Tunku Ibrahim najib@mrsm.org 05000 Kedah Darulaman. najib@csi-x.net http://najib.csi-x.net najib@kdupg.edu.my Tel : 012-4717452 najib@my-linux.org ****************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message