Clark's Home page

Tecnicismi vari di un Sysadmin Linux ma anche qualcosa della sua vita

startfw —

#!/bin/bash -x
### BEGIN INIT INFO
# Provides: ale338.sh
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Firewall initscript
# Description: Packet filtering iptables firewall
# placed in /usr/local/bin.
### END INIT INFO
### Mario V. Guenzi giugno 2000
### Last modified february 2017
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
######################
# start firewall
######################

case “$1” in
start)
/usr/local/bin/ale338.sh start
/usr/local/bin/torblock.sh
echo iptables is now running
;;
stop)
/usr/local/bin/ale338.sh stop

echo iptables is now stopped
;;
*)
esac

exit 0


Categorised as: Linux | Networking | Script | Work

Comments are disabled on this post


Comments are closed.


Hide picture