Django administration
Welcome, azenlijing. View site / Change password / Log out
Home › Blogs › Blogs › firewall-cmd
Authentication and Authorization
Groups Add
Users Add
Blogs
Blogs Add
Categorys Add
Tags Add
Change blog
firewall-cmd
History
Title:
firewall-cmd
Category:
Linux
ChangeAddDelete
Tags:
MySQLPostgreSQLCentOSNetbootLVSHTTPRouterSwitchUbuntuTransportNoSQLOthersProgrammingHelpdeskSANVPNCloud NativeFirewall Add
Hold down “Control”, or “Command” on a Mac, to select more than one.
Content:
firewall-cmd --list-all-zones
firewall-cmd --get-default-zone
firewall-cmd --list-services
firewall-cmd --list-ports
firewall-cmd --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --add-port=2222/tcp
systemctl restart firewalld
Delete