How do I open a port in Linux?

How do I open a port in Linux?
Answer
Use sudo ufw allow [port number] to open a port.
  1. If the port you’re opening is for a service listed in /etc/services , you just type the service’s name instead of the port number. …
  2. To open a specific range of ports, use the syntax sudo ufw allow 6000:6007/tcp , replacing 6000:6007 with the actual range.
 

Tìm kiếm

Back
Top