This command adds a permanent firewall rule to allow incoming TCP traffic on port 3002 in the 'public' zone.

firewall-cmd --permanent --zone=public --add-port=3002/tcp

Explanation:

  • firewall-cmd: The command to interact with Firewalld.
  • --permanent: Makes the rule permanent, meaning it will persist even after a reboot.
  • --zone=public: Specifies the 'public' zone, which is the default zone for incoming traffic.
  • --add-port=3002/tcp: Adds a rule to allow TCP traffic on port 3002.
How to Open Port 3002 in Firewalld for TCP Traffic

原文地址: https://www.cveoy.top/t/topic/m9lH 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录