Magellan Linux

Diff of /trunk/iptables/iptables.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1697 by niro, Thu Jan 12 12:19:29 2012 UTC revision 1698 by niro, Tue Mar 13 09:12:17 2012 UTC
# Line 8  IPTABLES=/sbin/iptables Line 8  IPTABLES=/sbin/iptables
8  IPTABLES_SAVE=/sbin/iptables-save  IPTABLES_SAVE=/sbin/iptables-save
9  IPTABLES_RESTORE=/sbin/iptables-restore  IPTABLES_RESTORE=/sbin/iptables-restore
10  IPTABLES_PROC=/proc/net/ip_tables_names  IPTABLES_PROC=/proc/net/ip_tables_names
11    SYSTEMDLIBDIR=/usr/lib/systemd
12    
13  # read config  # read config
14  source /etc/conf.d/${SVC_NAME}  source /etc/conf.d/${SVC_NAME}
# Line 17  checkconfig() Line 18  checkconfig()
18   if [[ ! -f ${IPTABLES_SAVE_PATH} ]]   if [[ ! -f ${IPTABLES_SAVE_PATH} ]]
19   then   then
20   echo "Not starting ${SVC_NAME}. First create some rules then run:"   echo "Not starting ${SVC_NAME}. First create some rules then run:"
21   echo "/etc/init.d/${SVC_NAME} save"   echo "${SYSTEMDLIBDIR}/magellan-${SVC_NAME} save"
22   exit 1   exit 1
23   fi   fi
24   return 0   return 0

Legend:
Removed from v.1697  
changed lines
  Added in v.1698