Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 16:22:38 -0500 (CDT)
From:      Nick Rogness <nick@rogness.net>
To:        Ryan Thompson <ryan@sasknow.com>
Cc:        Josh Thomas <jdt2101@ksu.edu>, freebsd-questions@FreeBSD.ORG
Subject:   Re: IPFW rules and outward connections
Message-ID:  <Pine.BSF.4.21.0106071617590.10693-100000@cody.jharris.com>
In-Reply-To: <Pine.BSF.4.21.0106071349220.67902-100000@ren.sasknow.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Jun 2001, Ryan Thompson wrote:

> Josh Thomas wrote to freebsd-questions@FreeBSD.ORG:
> 
> > I am looking to set up a firewall to be closed to all incoming >
> connections except for 20-22 (for ftp and ssh), and to allow all >
> outward connections.  However, I'm having trouble specifically keeping
> > the dynamically assigned ports above 1024 for normal usage open.  
> ie, > http from other machines, ftp from other machines.
> 
[snip]
> 
> # OR, only allow connections to remote ports 1024-9999
> ipfw 1000 allow ip from ${network} to any 1024-9999
		  ^^
		You need to be protocol specific, eg tcp,udp
	in order to specify ports or port ranges...unless that has
	changed.

Nick Rogness <nick@rogness.net>
 - Keep on Routing in a Free World...
  "FreeBSD: The Power to Serve!"




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106071617590.10693-100000>