如何保存iptables配置

运维 系统运维
iptables 是与最新的 2.6.x 版本Linux 内核集成的 IP 信息包过滤系统。许多新手都为自己配置好了iptables,但是下次在上的时候又得重新配置,那我们就应该及时的保存iptables配置,本文就介绍下具体的方法!

保存iptables配置的具体工作如下:

  iptables 代理内部网上网已经配置好,怎样保存该配置,使之能够在每次启动计算机时,自动运行,或者能够通过ntsysv 中的iptables 启动和停止。

  怎样配置 /etc/rc.d/rc.local ?

  自己建个脚本,如:firewall

  把该文件放在rc.local文件中,

  如加:/etc/rc.d/firewall

  这样可以自动运行。

  停止firewall,也可以建个脚本,如:firewall.stop

  在该脚本中设置默认允许,

  运行它,就可以停止firewall

通过上文的解答,想必都能明白如何保存iptables配置!希望大家能喜欢!

【编辑推荐】

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

2011-03-16 16:06:46

iptables日志MySQL

2011-03-15 14:01:13

2011-03-15 09:46:31

2011-03-16 11:08:58

2011-03-17 16:31:12

2013-02-28 13:18:08

2011-03-14 14:40:10

2011-03-15 14:50:03

使用IPTables

2011-03-15 15:47:25

Squidiptables

2009-11-30 09:56:16

2011-03-16 16:23:23

保存iptables防火墙

2011-03-16 16:41:57

清空iptables

2009-12-18 16:59:22

配置路由器

2011-03-15 15:47:15

Iptables防火墙

2011-03-15 14:26:23

iptablesNAT

2011-03-15 09:10:47

iptablesNAT

2011-04-21 09:54:14

Linuxiptables

2011-03-16 12:46:29

CentOSiptables防火墙

2011-03-16 09:05:29

iptablesNAT

2011-03-16 13:29:33

iptables 端口
点赞
收藏

51CTO技术栈公众号