Linux防火墙,linux防火墙开放端口


一、Linux防火墙配置文件及命令

1、RedHat Linux系统

此类型系统包含red hat 的各类衍生及相关版本,包括,RHEL,CentOS,Fedrora等。

防火墙配置文件:/etc/sysconfig/iptables-config

服务操作命令:etc/init.d/iptables service iptables {start|stop}

临时改变命令:iptables iptables-save iptables-restore等等

 

2、SUSE系统

SUSE系统采用了自己特色的防火墙体系

防火墙配置文件:/etc/sysconfig/SuSEfirewall2

防火墙资源目录:/etc/sysconfig/SuSEfirewall2.d

服务操作命令:/etc/init.d/SuSEfirewall2_init /etc/init.d/SuSEfirewall2_setup

rcSuSEfirewall2{start|stop...}

rcSuSEfirewall2是/etc/init.d/SuSEfirewall2_setup的符号连接

临时改变命令:iptables iptables-save iptabels-restore等

 

3、防火墙体系

防火墙体系,基于filter、nat、mangle、raw等表的基础上,再制定各个自己的表,SUSE显得较为复杂(或者称为更有自己的特色)

相关内容