文件操作 - nm-shared.xml
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/firewalld/zones/nm-shared.xml
编辑文件内容
<?xml version="1.0" encoding="utf-8"?> <zone target="ACCEPT"> <short>NetworkManager Shared</short> <description> This zone is used internally by NetworkManager when activating a profile that uses connection sharing and doesn't have an explicit firewall zone set. Block all traffic to the local machine except ICMP, ICMPv6, DHCP and DNS. Allow all forwarded traffic. Note that future package updates may change the definition of the zone unless you overwrite it with your own definition. </description> <rule priority='32767'> <reject/> </rule> <protocol value='icmp'/> <protocol value='ipv6-icmp'/> <service name="dhcp"/> <service name="dns"/> <service name="ssh"/> </zone>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件