centos更改防火墙配置文件iptables

 时间:2024-10-12 23:46:30

1、登录服务器。查看防火墙启动状态。service iptables status

centos更改防火墙配置文件iptables

2、关闭防火墙service iptables stop

centos更改防火墙配置文件iptables

3、启动防火墙service iptables start

centos更改防火墙配置文件iptables

4、查看规则列表iptables --list-rules

centos更改防火墙配置文件iptables

5、编辑规则vim /etc/sysconfig/iptables加入一行-A I鲍伊酷雪NPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT

centos更改防火墙配置文件iptables

6、保存,重启防火墙service iptables restart

centos更改防火墙配置文件iptables

7、查看规则iptables --list-rules

centos更改防火墙配置文件iptables
  • 魔兽世界怀旧服德鲁伊如何接到东部王国任务
  • 魔兽世界TBC怀旧服怎么完成邪恶的伊瓦任务
  • WOW怀旧服被囚禁的水元素任务怎么做?
  • 怀旧服奥山战场声望怎么刷
  • 刀锋山轰炸任务怎么做
  • 热门搜索
    感恩励志红五月手抄报 手抄报感恩内容大全 有关于读书的手抄报 关于三爱三节的手抄报 爱我中华手抄报资料 我让妈妈露笑脸手抄报 跟读书有关的手抄报 珍惜时间的手抄报 有关数学的手抄报 关于保护地球的手抄报