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
[code laungage=”bash”]firewall-cmd –zone=public –add-forward-port=port=6000-6500:proto=tcp:toport=80[/code]
reload the firewall then you have finished testing to remove the rule.
[code laungage=”bash”]firewall-cmd –reload[/code]
Test if port range is open
[code laungage=”bash”]nmap -d2 -p 6000-6500 samuel.dalesjo.nu > 6000-6500.txt[/code]