Tag: firewalld

Testing multiple ports

Redirecting a range of ports

Usefull if you need to test a range of ports but dont have a server that listen to all the ports. this forward to the webserver. run

firewall-cmd --zone=public --add-forward-port=port=6000-6500:proto=tcp:toport=80

reload the firewall then you have finished testing to remove the rule.

firewall-cmd --reload

Test if port range is open

nmap -d2 -p 6000-6500 samuel.dalesjo.nu > 6000-6500.txt