1 |
#!/bin/sh |
#!/bin/sh |
2 |
# $Header: /root/magellan-cvs/src/iptables/iptables.rc,v 1.1 2005-12-31 16:16:46 niro Exp $ |
# $Header: /root/magellan-cvs/src/iptables/iptables.rc,v 1.2 2008-03-27 10:40:32 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 2:s 3:s 4:s 5:s 0:k 1:k 6:k |
#%rlevels: 2:s 3:s 4:s 5:s 0:k 1:k 6:k |
5 |
#%start: 15 |
#%start: 15 |
109 |
|
|
110 |
save) |
save) |
111 |
echo -e ${COLOREDSTAR}"Saving ${SVC_NAME} ruleset ..." |
echo -e ${COLOREDSTAR}"Saving ${SVC_NAME} ruleset ..." |
112 |
[ -d $(dirname ${IPTABLES_SAVE_PATH}) ] && |
[ ! -d $(dirname ${IPTABLES_SAVE_PATH}) ] && |
113 |
install -d $(dirname ${IPTABLES_SAVE_PATH}) |
install -d $(dirname ${IPTABLES_SAVE_PATH}) |
114 |
touch "${IPTABLES_SAVE_PATH}" |
touch "${IPTABLES_SAVE_PATH}" |
115 |
chmod 0600 "${IPTABLES_SAVE_PATH}" |
chmod 0600 "${IPTABLES_SAVE_PATH}" |