All of lore.kernel.org
 help / color / mirror / Atom feed
* what should I use for "unassigned" ports?
@ 2010-01-06 18:12 Anthony Ewell
  2010-01-06 20:33 ` Richard Horton
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Anthony Ewell @ 2010-01-06 18:12 UTC (permalink / raw)
  To: netfilter

Hi All,

A long time ago, I used

      unassgn=1024:65535

for my unassigned ports.  As in

      --sport $unassgn

Having taken a more recent look at "/etc/services", I
am finding zillions of service ports above 1024.

With that in mind, is there a better starting port
for my "unassigned" ports?

Many thanks,
-T


-- 
-------------------------
I Fish.  Therefore, I am.
-------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: what should I use for "unassigned" ports?
  2010-01-06 18:12 what should I use for "unassigned" ports? Anthony Ewell
@ 2010-01-06 20:33 ` Richard Horton
  2010-01-07 19:03   ` MargoAndTodd
  2010-01-07 11:36 ` Pascal Hambourg
  2010-01-07 11:56 ` Richard Horton
  2 siblings, 1 reply; 5+ messages in thread
From: Richard Horton @ 2010-01-06 20:33 UTC (permalink / raw)
  To: Anthony Ewell; +Cc: netfilter

2010/1/6 Anthony Ewell <amewell@verizon.net>:

> Having taken a more recent look at "/etc/services", I
> am finding zillions of service ports above 1024.
>
> With that in mind, is there a better starting port
> for my "unassigned" ports?
>

Sadly these days nope - the assigned port numbers are now all over the place.

However, alot of them are not likely to be in use on your system so
you ought to define your unassigned port range by what you are
actually running not by the contents of /etc/services (same goes for
protocols).
-- 
Richard Horton
Users are like a virus: Each causing a thousand tiny crises until the
host finally dies.
http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats
http://www.pbase.com/arimus - My online photogallery

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: what should I use for "unassigned" ports?
  2010-01-06 18:12 what should I use for "unassigned" ports? Anthony Ewell
  2010-01-06 20:33 ` Richard Horton
@ 2010-01-07 11:36 ` Pascal Hambourg
  2010-01-07 11:56 ` Richard Horton
  2 siblings, 0 replies; 5+ messages in thread
From: Pascal Hambourg @ 2010-01-07 11:36 UTC (permalink / raw)
  To: netfilter

Hello,

Anthony Ewell a écrit :
> 
> A long time ago, I used
> 
>       unassgn=1024:65535
> 
> for my unassigned ports.  As in
> 
>       --sport $unassgn

What do you need this for ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: what should I use for "unassigned" ports?
  2010-01-06 18:12 what should I use for "unassigned" ports? Anthony Ewell
  2010-01-06 20:33 ` Richard Horton
  2010-01-07 11:36 ` Pascal Hambourg
@ 2010-01-07 11:56 ` Richard Horton
  2 siblings, 0 replies; 5+ messages in thread
From: Richard Horton @ 2010-01-07 11:56 UTC (permalink / raw)
  To: Anthony Ewell; +Cc: netfilter

2010/1/6 Anthony Ewell <amewell@verizon.net>:
> Hi All,
>
>
> Having taken a more recent look at "/etc/services", I
> am finding zillions of service ports above 1024.
>
> With that in mind, is there a better starting port
> for my "unassigned" ports?

If you are purely trying to block traffic which is to services not
running then you could just change the default policies to drop and
then only explicitly allow what you want which is alot safer.

If you need this for logging then place a log rule as the last rule in
the table.


-- 
Richard Horton
Users are like a virus: Each causing a thousand tiny crises until the
host finally dies.
http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats
http://www.pbase.com/arimus - My online photogallery

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: what should I use for "unassigned" ports?
  2010-01-06 20:33 ` Richard Horton
@ 2010-01-07 19:03   ` MargoAndTodd
  0 siblings, 0 replies; 5+ messages in thread
From: MargoAndTodd @ 2010-01-07 19:03 UTC (permalink / raw)
  To: netfilter

On 01/06/2010 12:33 PM, Richard Horton wrote:
> 2010/1/6 Anthony Ewell<amewell@verizon.net>:
>
>> Having taken a more recent look at "/etc/services", I
>> am finding zillions of service ports above 1024.
>>
>> With that in mind, is there a better starting port
>> for my "unassigned" ports?
>>
>
> Sadly these days nope - the assigned port numbers are now all over the place.
>
> However, alot of them are not likely to be in use on your system so
> you ought to define your unassigned port range by what you are
> actually running not by the contents of /etc/services (same goes for
> protocols).

So, pick the highest port I use and go somewhat above that.
That will work.  Thank you!

-T

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-07 19:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-06 18:12 what should I use for "unassigned" ports? Anthony Ewell
2010-01-06 20:33 ` Richard Horton
2010-01-07 19:03   ` MargoAndTodd
2010-01-07 11:36 ` Pascal Hambourg
2010-01-07 11:56 ` Richard Horton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.