请教Firewall配置
发表于 : 2017-11-28 22:24
firewall,请问如何指定一些ip段访问指定端口?
复制了ssh.xml到了/etc/firewalld/services此目录下(<service name="ssh"/> 也添加到了public.xml)
<rule family="ipv4">
<source address="12.16.1.0/22"/>
<service name="ssh"/>
<accept/>
</rule>
似乎这样的添加几千条后,要重新载入firewall-cmd --complete-reload
就出现问题了
ERROR:dbus.proxies:Introspect error on :1.30:/org/fedoraproject/FirewallD1: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
不清楚是怎么回事?!
请大家帮忙下
复制了ssh.xml到了/etc/firewalld/services此目录下(<service name="ssh"/> 也添加到了public.xml)
<rule family="ipv4">
<source address="12.16.1.0/22"/>
<service name="ssh"/>
<accept/>
</rule>
似乎这样的添加几千条后,要重新载入firewall-cmd --complete-reload
就出现问题了
ERROR:dbus.proxies:Introspect error on :1.30:/org/fedoraproject/FirewallD1: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
不清楚是怎么回事?!
请大家帮忙下