教你如何关闭iptables网络端口

运维 系统运维
iptables 是与最新的 2.6.x 版本Linux 内核集成的 IP 信息包过滤系统。在iptables如何关闭网络端口,答案就在文章里。

教你如何关闭iptables网络端口,看见有人卡在这个问题上,我搜了下资料,下面是答案!

 

  1.   iptables -P FORWARD DROP  
  2.  
  3.   iptables -A FORWARD -s 192.168.5.6 -p tcp --dport 110 -j ACCEPT  
  4.  
  5.   iptables -A FORWARD -s 192.168.5.6 -p tcp --dport 25 -j ACCEPT  
  6.  

 

通过上文的代码解释,想必大家都知道如何解决这个关闭iptables网络端口的问题了哇!希望本文对大家有用!

【编辑推荐】

责任编辑:赵鹏 来源: 网络转载
相关推荐

2011-03-16 13:29:33

iptables 端口

2011-03-17 14:26:45

iptables 端口

2011-03-16 14:55:36

关闭iptables

2011-03-15 09:10:45

2011-03-16 15:23:39

UBUNTU关闭iptables

2011-03-16 15:09:44

关闭iptables

2011-03-16 13:09:10

iptables 端口

2011-03-14 16:05:52

IPtables流量

2011-03-17 13:55:23

iptablesNAT端口映射

2011-03-16 10:43:36

2010-03-24 11:55:28

2011-03-16 12:55:00

iptables 端口

2011-03-17 09:06:58

iptables映射端口

2011-03-15 14:50:03

使用IPTables

2021-11-22 05:40:14

Windows 10操作系统微软

2020-12-29 09:30:27

Windows 10Windows操作系统

2011-03-16 10:12:27

LinuxIptables端口转发

2021-07-28 09:53:48

禁用CPU清理工具

2009-05-22 15:10:13

2011-03-17 09:54:02

iptables 映射外网内网
点赞
收藏

51CTO技术栈公众号