about summary refs log blame commit diff stats
path: root/linux/conf/rc.d/iptables
blob: 44f6bb2d440346e8ed7e9c620df68722fa62c338 (plain) (tree)
1
2
3
4
5
6
7
8
9
           
 
          
              
                                            

                                                    

             
                                            
                                                  

                
                

               
                                           
          
          

                                         
    
#!/bin/bash

case $1 in
	start)
	    echo "clear all iptables tables"
            #nohup bash /etc/iptables/ipt-start.sh &
            nohup bash /etc/iptables/ipt-start.sh &
	;;
        stop)
	    echo "clear all iptables tables"
            nohup bash /etc/iptables/ipt-stop.sh &
	;;
	restart)
        $0 start
        ;;
	status)
		/usr/sbin/iptables -L -n -v
	;;
	*)
	    echo "Usage: $0 [start|stop]"
	;;
esac