Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 98 16:32:42 -800
From:      "Muhammad Najib"<najib@csi-x.net>
To:        freebsd-security@FreeBSD.ORG
Subject:   Re: Firewall ...
Message-ID:  <360df82a.16bd.0@csi-x.net>

next in thread | raw e-mail | index | archive | help
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?360df82a.16bd.0>