Dave's Brain

Browse - Computer Tips - How can I open an arbitrary port using the command line?

Date: 2016mar23
OS: RedHat/Fedora/CentOS

Q.  How can I open an arbitrary port using the command line?

A.  For example to open TCP port 5000

firewall-cmd --list-ports Check first firewall-cmd --add-port=5000/tcp --permanent Let it thru firewall-cmd --restart Reboot firewall firewall-cmd --list-ports Check to make sure

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.