摘要: 重启后永久性生效:开启: chkconfig iptables on关闭: chkconfig iptables off2) 即时生效,重启后失效:开启: service iptables start关闭: service iptables stop需要说明的是对于Linux下的其它服务都可以用以上命令执行开启和关闭操作。在开启了防火墙时,做如下设置,开启相关端口, 修改/etc/sysconfig/iptables 文件,添加以下内容: -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEP. 阅读全文
posted @ 2012-11-14 23:31 Mr.Shadow 阅读(202) 评论(0) 推荐(0) 编辑
摘要: spider@shadow:~$ service vsftpd restartstop: Rejected send message, 1 matched rules; type="method_call", sender=":1.92" (uid=1000 pid=6437 comm="stop vsftpd ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" request 阅读全文
posted @ 2012-11-14 23:19 Mr.Shadow 阅读(376) 评论(0) 推荐(0) 编辑