That should work. It’s unnecessary to specify the src-address, though. If you have more than one rule, it’s generally easier to rewrite that with accepts for the specific ports for servers, and a final drop without any conditions. If the rule isn’t working for you, that’s most likely due to the rest of the ruleset. You might also need port forwarding NAT rules if you’re NAT’ing in general.
but if i have more than 10 ports to open for 6 webservers then i have many accept rules but if i exempt ports using drop rules then i have just 6 rules.
my filter rules r working perfect without any problem.
but something like address list can we make port list and accept the connections???