forked from extern/shorewall_code
Add additional extension script files
This commit is contained in:
parent
20805a6e46
commit
dba5f719c0
@ -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
|
13
Shorewall/configfiles/clear
Normal file
13
Shorewall/configfiles/clear
Normal 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
|
23
Shorewall/configfiles/isusable
Normal file
23
Shorewall/configfiles/isusable
Normal 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
|
13
Shorewall/configfiles/refresh
Normal file
13
Shorewall/configfiles/refresh
Normal 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
|
13
Shorewall/configfiles/refreshed
Normal file
13
Shorewall/configfiles/refreshed
Normal 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
|
13
Shorewall/configfiles/tcclear
Normal file
13
Shorewall/configfiles/tcclear
Normal 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
|
Loading…
Reference in New Issue
Block a user