iptables
狂飙的yellowcong
yellowcong
展开
-
CentOS之service iptables stop 显示not loaded
刚刚弄完了Tomcat后,想使用iptables来开放8080端口的时候,设定完之后,想保存规则,发生错误Failed to start ipatbles.service: Unit not found.原因是centos从7开始默认用的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是iptables的服务是没安装的。原创 2017-07-23 18:44:12 · 29290 阅读 · 0 评论 -
iptables详解
iptables的详解转载 2017-07-24 08:16:25 · 359 阅读 · 0 评论 -
iptables删除已有的iptables规则-yellowcong
删除iptables中的规则,可以使用iptables -L INPUT --line-numbers来显示规则,然后用命令iptables -D INPUT 7,删除指定number所对应的规则。原创 2017-07-24 08:18:08 · 25251 阅读 · 0 评论 -
CentOS之iptables-yellowcong
刚刚弄玩的Tomcat,虚拟机外面的物理机访问不到网站,所以肯定是CentOS的防火墙问题,我将默认的防火墙改为了iptables,设定iptables的端口规则,然后保存规则,最后重启iptables服务,端口配置生效。原创 2017-07-24 08:20:47 · 423 阅读 · 0 评论 -
Centos 7 之service iptables save 指令使用失败的结局方案
今天我保存转发规则的时候,发现service iptables save 无效,而且报错 The service command supports only basic LSB actions问题的原因是没有安装iptables的服务,需要关闭Centos的firewall,然后安然后安装iptables-server ,启动iptabls原创 2017-10-13 19:53:46 · 11771 阅读 · 1 评论