Add Port Range as - or :

Asked by I'M YourOnly.One 🔏

Is it possible, or maybe as a request for future updates, to add Port Ranges like so:

1234-4321 or 1234:4321

Currently, gufw port range add "pairs-up" each "to" individual port to each "from" individual port.

Using my example, currently it will add:

To From
1234 1234
1234 1235
1234 1236
1234 1237
1234 1238
1234 1239
1234 1240
1234 1241
.
.
.
4321 4260
4321 4261
4321 4262
4321 4263
4321 4264
4321 4265

And it takes very long adding 120 ports range, that's like 120*120 possible combinations if my math is correct :p

Is it possible, probably 0.7.x update? ^_^ Thank you very much!!

Question information

Language:
English Edit question
Status:
Solved
For:
Gufw Edit question
Assignee:
No assignee Edit question
Solved by:
costales
Solved:
Last query:
Last reply:
Revision history for this message
Best costales (costales) said :
#1

Hi!
I think you can open only the "from" port ;)

In other way, I was reading that ufw will include this feature in the future ;)
But not, You can specify a range ports in only one line.

¡Best regards and thanks by use Gufw :)

Revision history for this message
I'M YourOnly.One 🔏 (techmagus) said :
#2

Thanks Marcos, that solved my question.