From owner-freebsd-security Thu Apr 11 1:20:24 2002 Delivered-To: freebsd-security@freebsd.org Received: from south.nanolink.com (south.nanolink.com [217.75.134.10]) by hub.freebsd.org (Postfix) with SMTP id 4B97E37B400 for ; Thu, 11 Apr 2002 01:20:16 -0700 (PDT) Received: (qmail 47490 invoked from network); 11 Apr 2002 08:26:34 -0000 Received: from unknown (HELO straylight.ringlet.net) (212.116.140.125) by south.nanolink.com with SMTP; 11 Apr 2002 08:26:34 -0000 Received: (qmail 30801 invoked by uid 1000); 11 Apr 2002 08:20:02 -0000 Date: Thu, 11 Apr 2002 11:20:02 +0300 From: Peter Pentchev To: Mario Pranjic Cc: security@FreeBSD.ORG Subject: Re: ipfw configuration Message-ID: <20020411112002.A30703@straylight.oblivion.bg> Mail-Followup-To: Mario Pranjic , security@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from mario.pranjic@irb.hr on Thu, Apr 11, 2002 at 10:15:44AM +0200 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 11, 2002 at 10:15:44AM +0200, Mario Pranjic wrote: > Hi! >=20 > I'm configuring my first firewall on FreeBSD 4.5 release. > The default rule is: > 65535 deny ip from any to any >=20 > I need to allow icmp, ssh, http, ftp and some other services. > It's not a problem to allow such services, i.e: > 00600 allow tcp from any to any 22 setup >=20 >=20 > But what do I need to allow in generally, i.e allow al outgoing ports > >1024. >=20 > Can anyone give me some hints? Yep; look at the ipfw(8) manual page, the RULE FORMAT section; scroll down to the discussion of 'src and dst', find the sentence that starts with 'With the TCP and UDP protocols, optional ports may be specified as...', and read on :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If I had finished this sentence, --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjy1RzIACgkQ7Ri2jRYZRVN3lgCfVrP9gJYuyNJ+4fLOsP6Xpc5b /u8AoJ/8ifQLV/dyuOf9d35RvI6O7CWK =f1Pm -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message