Nguyễn Hương Chà
New member
How do I open a port in Linux?
Answer
Use sudo ufw allow [port number] to open a port.
Answer
Use sudo ufw allow [port number] to open a port.
- 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. …
- To open a specific range of ports, use the syntax sudo ufw allow 6000:6007/tcp , replacing 6000:6007 with the actual range.