mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +01:00
Add additional extension script files -- second phase
This commit is contained in:
parent
dba5f719c0
commit
2c25deeccf
17
Shorewall/configfiles/findgw
Normal file
17
Shorewall/configfiles/findgw
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - Filegw File
|
||||||
|
#
|
||||||
|
# /etc/shorewall/findgw
|
||||||
|
#
|
||||||
|
# The code in this file is executed when Shorewall is trying to detect the
|
||||||
|
# gateway through an interface in /etc/shorewall/providers that has GATEWAY
|
||||||
|
# specified as 'detect'.
|
||||||
|
#
|
||||||
|
# The function should echo the IP address of the gateway if it knows what
|
||||||
|
# it is; the name of the interface is in $1.
|
||||||
|
#
|
||||||
|
# See http://shorewall.net/shorewall_extension_scripts.htm for additional
|
||||||
|
# information.
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE
|
@ -601,6 +601,51 @@ if [ -z "$CYGWIN" -a ! -f ${PREFIX}/etc/shorewall/restored ]; then
|
|||||||
echo "Restored file installed as ${PREFIX}/etc/shorewall/restored"
|
echo "Restored file installed as ${PREFIX}/etc/shorewall/restored"
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
# Install the Clear file
|
||||||
|
#
|
||||||
|
run_install $OWNERSHIP -m 0644 configfiles/clear ${PREFIX}/usr/share/shorewall/configfiles/clear
|
||||||
|
|
||||||
|
if [ -z "$CYGWIN" -a ! -f ${PREFIX}/etc/shorewall/clear ]; then
|
||||||
|
run_install $OWNERSHIP -m 0600 configfiles/clear ${PREFIX}/etc/shorewall/clear
|
||||||
|
echo "Restored file installed as ${PREFIX}/etc/shorewall/clear"
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
# Install the Isusable file
|
||||||
|
#
|
||||||
|
run_install $OWNERSHIP -m 0644 configfiles/isusable ${PREFIX}/usr/share/shorewall/configfiles/isusable
|
||||||
|
|
||||||
|
if [ -z "$CYGWIN" -a ! -f ${PREFIX}/etc/shorewall/isusable ]; then
|
||||||
|
run_install $OWNERSHIP -m 0600 configfiles/isusable ${PREFIX}/etc/shorewall/isusable
|
||||||
|
echo "Restored file installed as ${PREFIX}/etc/shorewall/isusable"
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
# Install the Refresh file
|
||||||
|
#
|
||||||
|
run_install $OWNERSHIP -m 0644 configfiles/refresh ${PREFIX}/usr/share/shorewall/configfiles/refresh
|
||||||
|
|
||||||
|
if [ -z "$CYGWIN" -a ! -f ${PREFIX}/etc/shorewall/refresh ]; then
|
||||||
|
run_install $OWNERSHIP -m 0600 configfiles/refresh ${PREFIX}/etc/shorewall/refresh
|
||||||
|
echo "Restored file installed as ${PREFIX}/etc/shorewall/refresh"
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
# Install the Refreshed file
|
||||||
|
#
|
||||||
|
run_install $OWNERSHIP -m 0644 configfiles/refreshed ${PREFIX}/usr/share/shorewall/configfiles/refreshed
|
||||||
|
|
||||||
|
if [ -z "$CYGWIN" -a ! -f ${PREFIX}/etc/shorewall/refreshed ]; then
|
||||||
|
run_install $OWNERSHIP -m 0600 configfiles/refreshed ${PREFIX}/etc/shorewall/refreshed
|
||||||
|
echo "Restored file installed as ${PREFIX}/etc/shorewall/refreshed"
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
# Install the Tcclear file
|
||||||
|
#
|
||||||
|
run_install $OWNERSHIP -m 0644 configfiles/tcclear ${PREFIX}/usr/share/shorewall/configfiles/tcclear
|
||||||
|
|
||||||
|
if [ -z "$CYGWIN" -a ! -f ${PREFIX}/etc/shorewall/tcclear ]; then
|
||||||
|
run_install $OWNERSHIP -m 0600 configfiles/tcclear ${PREFIX}/etc/shorewall/tcclear
|
||||||
|
echo "Restored file installed as ${PREFIX}/etc/shorewall/tcclear"
|
||||||
|
fi
|
||||||
|
#
|
||||||
# Install the Standard Actions file
|
# Install the Standard Actions file
|
||||||
#
|
#
|
||||||
install_file actions.std ${PREFIX}/usr/share/shorewall/actions.std 0644
|
install_file actions.std ${PREFIX}/usr/share/shorewall/actions.std 0644
|
||||||
|
@ -93,6 +93,11 @@ fi
|
|||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/blacklist
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/blacklist
|
||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/init
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/init
|
||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/initdone
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/initdone
|
||||||
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/clear
|
||||||
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/isusable
|
||||||
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/refresh
|
||||||
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/refreshed
|
||||||
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/tcclear
|
||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/start
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/start
|
||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/stop
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/stop
|
||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/stopped
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user