blob: 44f6bb2d440346e8ed7e9c620df68722fa62c338 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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
|