Contents tagged with Firewal

  • How to open specific port in Cent OS permanently

    Hello everybody,

    today I want to document how to permanently open port in CentOS linux permanently. You can achieve it with following command:

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

    or with usage of iptables:

    iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT

    Key --permanent ensures that port will remain working after the reboot. more