[root@localhost ~]# service iptables status[root@localhost ~]# service iptables start[root@localhost ~]# service iptables stop[root@localhost ~]# service iptables restart[root@localhost ~]# chkconfig iptables off[root@localhost ~]# chkconfig iptables on补充
编辑/etc/sysconfig/iptables文件,可以配置不同端口的对外提供服务。