Re: [LARTC] how can i filter for a range of ports?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> "AS" == Adam Schrader <schrader2k2@xxxxxxxxx> writes:

AS> how can i filter for a range of ports? I have seen people use
AS> 1024:32000 when saying from port 1024 to 32000 but tc doesnt
AS> accept this? can somebody tell me how i can do this? -thanks

iptables -A INPUT -p tcp --dport 1024:65535 -j ACCEPT

Should do what you want. iptables is very limited in defining ranges,
multiple hosts and similar ranges compares to ipfw2. I hope this will
change sometime in the future since it would highly simplify the
definitions of large rulesets.

/ahnberg.




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux