Is there someone posting this subject, cause i dont see it.
My suggestion is there is a port lists like address lists at firewall so we can filter the good port and the bad port using the port list that we can modify only for the port. I think its more easier than using port filter with mangle.
what is a good port? some people say that port 135 is bad, some people need it for MS Active Directory. It completely depends on your needs. There is no bad port list.
If you want a really secure network, allow all the basic ports (http, https, mail send, mail receive, ntp, something else … ) and then block other ports. very simple firewall will do that.
ok, in firewall theres address lists that i use to group a list of ip, so i make firewall rule based on address lists.
if i theres port lists, i want to use it to group and make firewall or mangle rules based on the port lists too.
address lists is useful where you need frequently changing list of addresses
I would disagree…
It is for convienience… when you have a list of addresses which you plan to treat with firewall rules (for example) in the same way… It’s a heck of lot easier to just refer to the variable (the address list) than it is to implicitly refer to each one.
Similarly with a port list… when constructing firewalls with Mik (for example) there are a bunch of ports that come to mind that I treat the same… Currently that is done by writing rule after rule after rule after rule - all with the same result.
A port list would simplify this.
Though… someone posted:
in 3.x cant you use dst-port=10,20,30-35,40
Apparently now you can also list a variety of contiguous and non-contiguous ports within a single rule… This kinda gets us to the same place.
But, a port list would be easier.
Though, the only two ‘port lists’ that I can think of using would be:
the lists of ports allowed (only from an address-list of specific ip’s) on an input chain of a mik router before dropping virtually everything else…
the list of destination ports that we typically dis-allow in the forward chain (you know the ones that I am refering to)
list of ports would be useful if tehre are several firewall riles that apply different rules on the same list ofports. It would let us update list in one palce
also, list of ports has a human readable name, so you can name list accoring to the purpose, making administering it much easier.