Is there a way to configure ipfilter with multiport in one rule like on iptables?
Is there a way to configure ipfilter with multiport in one rule like on iptables?
Is there a way to configure ipfilter with multiport in one rule like on iptables?
Example of iptable multiport rule :
iptables -A INPUT -p tcp -i eth0 -m multiport --dports 465,110,995,587,143,11025,20,21,22,26,80,443 -j ACCEPT
Example of ipfilter rule:
pass in quick proto tcp from any to 154.230.171.5 port = 21 keep state
I can't find any options to configure multiport on ipfilter i know i have an option to create a separate rule for each port, but i have to avoid a lot of lines on my ipfilter rules because when i do that, I will have a total of 300+ lines of rule on my ipfilter rules which is not convenient and may result to slowdown.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
I'd recommend to shift this to serverfault.org, because that would be the better place to ask since your question is network-related.
– Robidu
Aug 30 at 7:17