How to block several outgoing ports in one firewall rule?

Hi

New user here that has never used OpenWrt before, I'm using a ER-4 with OpenWrt 24.10.1

I'm trying to add a firewall rule to block several outgoing ports, I'm only able to add two ports in the source port field - any more ports and a warning comes up.

'Expecting: Potential negation of: valid port or port range (port1-port2)'

Can I only block two ports in firewall rule ?

Any help will do.
Thanks

2-20,24,26-79

I can input '135-139' just fine but if I input '135-139,445' the same error shows up.

It is list type in backend.
Either

option ports '1 3-4 7-9

or

list ports 1
list ports 3-4
list ports 7-9

(in /etc/config/firewall)

This worked just fine for me - option src_port '135-139 445 593 1900 5000 5353 25415'

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.