diff --git a/Shorewall/Contrib/isusable b/Shorewall/Contrib/isusable deleted file mode 100644 index 4043aaf1f..000000000 --- a/Shorewall/Contrib/isusable +++ /dev/null @@ -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 diff --git a/Shorewall/configfiles/clear b/Shorewall/configfiles/clear new file mode 100644 index 000000000..980ad3aaf --- /dev/null +++ b/Shorewall/configfiles/clear @@ -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 diff --git a/Shorewall/configfiles/isusable b/Shorewall/configfiles/isusable new file mode 100644 index 000000000..813d9d93e --- /dev/null +++ b/Shorewall/configfiles/isusable @@ -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 diff --git a/Shorewall/configfiles/refresh b/Shorewall/configfiles/refresh new file mode 100644 index 000000000..6689f1e8e --- /dev/null +++ b/Shorewall/configfiles/refresh @@ -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 diff --git a/Shorewall/configfiles/refreshed b/Shorewall/configfiles/refreshed new file mode 100644 index 000000000..7dfa4c478 --- /dev/null +++ b/Shorewall/configfiles/refreshed @@ -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 diff --git a/Shorewall/configfiles/tcclear b/Shorewall/configfiles/tcclear new file mode 100644 index 000000000..cbff3c921 --- /dev/null +++ b/Shorewall/configfiles/tcclear @@ -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