Advanced port+ip filtering
Posted: 20 Dec 2012, 18:44
Hello! I'm sorry if this has been covered elsewhere; I couldn't find more info on it.
I'm trying to set up advanced port+ip filtering using the following rule:
tcp/udp|in/out|s/d=port|s/d=ip
My first question is, what's the correct syntax for this? My initial thought was this:
tcp|in|d=993|s=123.456.0.1
OR
tcp|in|d=993|s=123.456.0.0/15
... But I'm not sure if this is correct.
My second question is, is it possible to specify multiple ports in the same rule, for example tcp ports 993 and 143, and is it possible to specify an IP range?
Many thanks! Any help would be greatly appreciated.
I'm trying to set up advanced port+ip filtering using the following rule:
tcp/udp|in/out|s/d=port|s/d=ip
My first question is, what's the correct syntax for this? My initial thought was this:
tcp|in|d=993|s=123.456.0.1
OR
tcp|in|d=993|s=123.456.0.0/15
... But I'm not sure if this is correct.
My second question is, is it possible to specify multiple ports in the same rule, for example tcp ports 993 and 143, and is it possible to specify an IP range?
Many thanks! Any help would be greatly appreciated.