Opening up a range (multiple) ports
Bug #231103 reported by
A. Bram Neijt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ufw |
Fix Released
|
Wishlist
|
Jamie Strandboge |
Bug Description
I can't find a way to open up a range of ports, so something like: ufw allow 9000:9010
None of the syntaxes I could come up with work and looking in the source, you can see that none would match ^\d+$ ;-)
Currently the only solution I could find was using bash:
for port in {9000..9010}; do echo sudo ufw allow $port;done
(Remove the above echo to actually execute the commands). However, this will add a rule for every port, while ranges would be more efficient in the firewall.
Please add multiple-port support.
ufw 0.16.2
Related branches
Changed in ufw: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Changed in ufw: | |
assignee: | nobody → jdstrand |
status: | Confirmed → Fix Committed |
Changed in ufw: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.