blob: 95af1e1dd2ed94bc45bdeacf9f8f46c1484b11a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#! /bin/bash
case "$1" in
start)
echo "iptables-all start"
#/etc/iptables/ipv6_6to4_tunnel start
#/etc/iptables/ip_tc start
#/etc/iptables/ip_alias start
#/etc/iptables/ip_route start
#sleep 1s
#/etc/init.d/rpcbind start
#/etc/init.d/named start
#/etc/init.d/dhcp6s start
#/etc/init.d/dhcpd start
#/etc/init.d/radvd start
#/etc/init.d/ypserv start
#/etc/init.d/yppasswdd start
#/etc/init.d/nfsserver start
echo -n "iptables setup init"
/etc/iptables/ip6tables_bad_fwdmz_good-secure start
/etc/iptables/ip4tables_bad_fwdmz_good-secure start
;;
stop)
echo "iptables-all stop"
/etc/iptables/ip4tables_bad_fwdmz_good-secure stop
/etc/iptables/ip6tables_bad_fwdmz_good-secure stop
#/etc/init.d/nfsserver stop
#/etc/init.d/yppasswdd stop
#/etc/init.d/ypserv stop
#/etc/init.d/radvd stop
#/etc/init.d/dhcpd stop
#/etc/init.d/dhcp6s stop
#/etc/init.d/named stop
#/etc/init.d/rpcbind stop
#/etc/iptables/ip_route stop
#/etc/iptables/ip_alias stop
#/etc/iptables/ip_tc stop
#/etc/iptables/ipv6_6to4_tunnel stop
;;
restart)
$0 stop && $0 start || return=$rc_failed
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
|