jow- / nlbwmon

Simple conntrack based traffic accounting
ISC License
154 stars 34 forks source link

port range? #17

Closed rezad1393 closed 6 years ago

rezad1393 commented 6 years ago

can I specify a port range instead of one port?

jow- commented 6 years ago

Kind of, you can specify multiple consecutive (!) entries with one port each which will be grouped into one layer7 protocol, see e.g. the existing NetBios examples.

# custom protocol spanning ports 10000-10010
6 10000 CustomProto
6 10001 CustomProto
6 10002 CustomProto
6 10003 CustomProto
6 10004 CustomProto
6 10005 CustomProto
6 10006 CustomProto
6 10007 CustomProto
6 10008 CustomProto
6 10009 CustomProto
6 10010 CustomProto

Specifying ranges directly is not supported at the moment.

rezad1393 commented 6 years ago

and if I want to add an application that want to have 30 port range then I have to add those 30 manually? maybe this should be considered as an feature to be added?