Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the firewall-cmd commands of linux Firewall Manager

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the use of linux firewall-cmd command firewall manager, the article is very detailed, has a certain reference value, interested friends must read it!

Firewall-cmd provides a dynamically managed firewall that supports network / firewall zones to define the trust level of network connections or interfaces. It supports IPv4, IPv6 firewall settings, and Ethernet bridges, and separates the runtime and permanent configuration options. It also supports interfaces for services or applications to directly add firewall rules.

The benefits of using firewalld can be changed immediately in the runtime environment without restarting the service or daemon; using the firewalld D-Bus interface, services, applications, and users can easily adjust firewall settings. The interface is complete and is used for firewall configuration tools firewall-cmd,firewall-config and firewall-applet.

Syntax format: firewalld-cmd [parameters]

Common parameters:

-- state shows the current service running status-- zone=public-- list-ports view all open and running ports-- load immediately without reload restart-- list-all-zones view region information-- panic-on rejects all packages-- panic-off cancels reject status-- query-panic checks whether it is rejected.

Reference example

View the current running status of the ffirewalld service:

[root@linuxcool] # firewall-cmd-- staterunning

View all released ports:

[root@linuxcool] # firewall-cmd-- zone=public-- list-ports

Reload the modified configuration without restarting the service:

[root@linuxcool] # firewall-cmd-- reloadsuccess

View all rule area configuration information:

[root@linuxcool ~] # firewall-cmd-the above is all the contents of the firewall manager using linux's firewall-cmd command, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report