ipfilter --create my_filter_rule --type ipv4
ipfilter --addrule my_filter_rule -rule 2 -sip any -dp 22 -proto tcp -act permit
ipfilter --addrule my_filter_rule -rule 2 -sip any -dp 80 -proto tcp -act permit
ipfilter --addrule my_filter_rule -rule 2 -sip any -dp 443 -proto tcp -act permit
ipfilter --addrule my_filter_rule -rule 2 -sip any -dp 23 -proto tcp -act deny
ipfilter --activate my_filter_rule
ipfilter --save my_filter_rule
No comments:
Post a Comment