I have to open up a group of ports.
Adding the single ports to (g)ufw was easy enough but I can't work out how to open the range
How do I do that?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
ufw allow 11200:11299/tcp ufw allow 11200:11299/udp
or if you need to use a from source ip range you must use full syntax
ufw allow from AAA.BBB.CCC.DDD/EE to any port 11200:11299 proto tcp ufw allow from AAA.BBB.CCC.DDD/EE to any port 11200:11299 proto udp
The cleanest command line way I've seen is a little script like this:
for i in `seq 11200 11299`; do ufw allow $i done