Sorry, sorry.
Now, I think I understand it.
Thank you very much.
So if I want to mask ports 27000 to 28031 Then I can use rules something like this:
27000 0xfff8
port: 0110 1001 0111 1000
mask: 1111 1111 1111 1000
(27000-27007)
27008 0xff80
port: 0110 1001 1000 0000
mask: 1111 1111 1000 0000
(27008-27135)
27136 0xfe00
port: 0110 1010 0000 0000
mask: 1111 1110 0000 0000
(27136-27647)
27648 0xff00
port: 0110 1100 0000 0000
mask: 1111 1111 0000 0000
(27648-27903)
27904 0xff80
port: 0110 1101 0000 0000
mask: 1111 1111 1000 0000
(27904-28031)
Yes, I have read http://lartc.org/howto/, but I didn't find another method to define port ranges.
Thank you very, very much again.
Quote:
Originally Posted by
akbor
I said, if the mask bit is zero, the port bit is "don't care"
1024 0xfc00 will prioritize a range of 1024... 2047, so:
port 0000 0100 0000 0000
mask 1111 1100 0000 0000
===> 0000 01xx xxxx xxxx
so the min. range is
0000 0100 0000 0000 = 0x400 = 1024
the max. range is
0000 0111 1111 1111 = 0x7ff = 2047