SUSE防火墙查看命令:
linux:~ # chkconfig -list | grep fire
SuSEfirewall2_init 0:off 1:off 2:off 3:off 4:off 5:off 6:off B:on
SuSEfirewall2_setup 0:off 1:off 2:off 3:on 4:on 5:on 6:off
SUSE防火墙立即停止命令:
linux:~ # SuSEfirewall2 stop
SUSE默认的防火墙设置为禁止所有外来联结。如果你想开放某个端口的话,就得修改防火墙设置开放这个端口。本文介绍了怎么修改SUSE的防火墙设置以开放某指定端口:
linux ~ # vi /etc/sysconfig/SuSEfirewall2
#TCP端口的情况:
FW_SERVICES_EXT_TCP = "6000"
#UDP端口的情况:
FW_SERVICES_EXT_UDP = "177"
防火墙设置的生效:
linux:~ # rcSUSEfirewall2 restart
linux:~ # /sbin/SuSEfirewall2 start
其它的配置方法:
FW_SERVICES_EXT_TCP="ssh"
FW_SERVICES_EXT_TCP="ftp 22 telnet 512:514"
FW_SERVICES_EXT_UDP="631 400:405"