How do I open firewall ports?

Man Ly

New member
How do I open firewall ports?
Answer
Opening a port
  1. Get a list of allowed ports in the current zone: $ firewall-cmd –list-ports.
  2. Add a port to the allowed ports to open it for incoming traffic: $ sudo firewall-cmd –add-port=port-number/port-type.
  3. Make the new settings persistent: $ sudo firewall-cmd –runtime-to-permanent.
 

Tìm kiếm

Back
Top