Add additional extension script files

This commit is contained in:
Tom Eastep 2009-05-19 17:10:42 -07:00
parent 20805a6e46
commit dba5f719c0
6 changed files with 75 additions and 17 deletions

View File

@ -1,17 +0,0 @@
#
# Shorewall version 4 - 'isusable' sample script
#
# /etc/shorewall/isusable
#
# This script is a companion to the 'swping' script described at
# http://www.shorewall.net/MultiISP.html#swping.
#
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
# information.
#
###############################################################################
local status=0
[ -f /etc/shorewall/${1}.status ] && status=$(cat /etc/shorewall/${1}.status)
return $status

View File

@ -0,0 +1,13 @@
#
# Shorewall version 4 - clear File
#
# /etc/shorewall/clear
#
# Add commands below that you want to be executed after Shorewall
# has processed the 'clear' command.
#
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
# information.
#
###############################################################################
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE

View File

@ -0,0 +1,23 @@
#
# Shorewall version 4 - isusable File
#
# /etc/shorewall/isusable
#
# This script is called when Shorewall is attempting to determine
# if an interface named in /etc/shorewall/providers is usable.
#
# The script is invoked inside a function that accepts an interface
# name as a single argument. The file below is designed to work with
# both swping and lsm as described at http://www.shorewall.net/MultiISP.html
#
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
# information.
#
###############################################################################
local status=0
[ -f /etc/shorewall/${1}.status ] && status=$(cat /etc/shorewall/${1}.status)
return $status
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE

View File

@ -0,0 +1,13 @@
#
# Shorewall version 4 - refresh File
#
# /etc/shorewall/refresh
#
# Add commands below that you want to be executed before Shorewall
# has processed the 'refresh' command.
#
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
# information.
#
###############################################################################
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE

View File

@ -0,0 +1,13 @@
#
# Shorewall version 4 - refreshed File
#
# /etc/shorewall/refreshed
#
# Add commands below that you want to be executed after Shorewall
# has processed the 'refresh' command.
#
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
# information.
#
###############################################################################
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE

View File

@ -0,0 +1,13 @@
#
# Shorewall version 4 - tcclear File
#
# /etc/shorewall/tcclear
#
# Add commands below that you want to be executed before Shorewall
# clears the traffic shaping configuration.
#
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
# information.
#
###############################################################################
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE