Linux本地可以访问,其他的无法访问,关闭防火墙

来源:互联网 发布:linux late initcall 编辑:程序博客网 时间:2024/05/01 21:11

查看防火墙配置(需要root权限)

[plain]view plaincopyprint?

1.     [root@localhost ~]# service iptables status  

2.     Redirecting to /bin/systemctl status  iptables.service  

3.     iptables.service - IPv4 firewall with iptables  

4.        Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)  

5.        Active: inactive (dead)  

[root@localhost ~]# service iptables status

Redirecting to /bin/systemctl status iptables.service

iptables.service - IPv4 firewall with iptables

   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)

   Active: inactive (dead)

关闭防火墙(需要root权限)

[plain]view plaincopyprint?

1.     [root@localhost ~]# service iptables stop  

 

0 0
原创粉丝点击