mirror of
https://gitlab.com/shorewall/code.git
synced 2025-04-22 18:28:29 +02:00
Some cleanup of Shorewall Lite
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3978 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
b6a6195aa0
commit
ca017e532b
@ -266,6 +266,12 @@ if [ -n "$ARCHLINUX" ] ; then
|
|||||||
sed -e 's!LOGFILE=/var/log/messages!LOGFILE=/var/log/messages.log!' -i ${PREFIX}/etc/shorewall/shorewall.conf
|
sed -e 's!LOGFILE=/var/log/messages!LOGFILE=/var/log/messages.log!' -i ${PREFIX}/etc/shorewall/shorewall.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Install the default config path file
|
||||||
|
#
|
||||||
|
install_file configpath ${PREFIX}/usr/share/shorewall/configpath 0644
|
||||||
|
echo "Default config path file installed as ${PREFIX}/usr/share/shorewall/configpath"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install the functions file
|
# Install the functions file
|
||||||
#
|
#
|
||||||
|
@ -30,23 +30,18 @@ directory' for each firewall system. You copy the contents of
|
|||||||
d) On each firewall system, you run:
|
d) On each firewall system, you run:
|
||||||
|
|
||||||
/usr/share/shorewall/shorecap > capabilities
|
/usr/share/shorewall/shorecap > capabilities
|
||||||
|
scp capabilities <admin system>:<this system's config dir>
|
||||||
The 'capabilities' file is then copied to the corresponding
|
|
||||||
configuration directory on the administrative system.
|
|
||||||
|
|
||||||
e) On the administrative system, for each firewall system you:
|
e) On the administrative system, for each firewall system you:
|
||||||
|
|
||||||
1) modify the files in the corresponding configuration
|
1) modify the files in the corresponding configuration
|
||||||
directory appropriately.
|
directory appropriately.
|
||||||
|
|
||||||
2) As a non-root user:
|
2) (this may be done as a non-root user)
|
||||||
|
|
||||||
cd <configuration directory>
|
cd <configuration directory>
|
||||||
/sbin/shorewall compile . firewall
|
/sbin/shorewall compile -e . firewall
|
||||||
|
scp firewall root@<firewall system>:/usr/share/shorewall/
|
||||||
Then copy the compiled 'firewall' script to
|
|
||||||
/usr/share/shorewall/firewall on the corresponding firewall
|
|
||||||
system.
|
|
||||||
|
|
||||||
3) On the firewall system, 'shorewall start'.
|
3) On the firewall system, 'shorewall start'.
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@ fi
|
|||||||
%attr(0555,root,root) /sbin/shorewall
|
%attr(0555,root,root) /sbin/shorewall
|
||||||
|
|
||||||
%attr(0644,root,root) /usr/share/shorewall/version
|
%attr(0644,root,root) /usr/share/shorewall/version
|
||||||
|
%attr(0644,root,root) /usr/share/shorewall/configpath
|
||||||
%attr(0444,root,root) /usr/share/shorewall/functions
|
%attr(0444,root,root) /usr/share/shorewall/functions
|
||||||
%attr(0544,root,root) /usr/share/shorewall/shorecap
|
%attr(0544,root,root) /usr/share/shorewall/shorecap
|
||||||
%attr(0544,root,root) /usr/share/shorewall/help
|
%attr(0544,root,root) /usr/share/shorewall/help
|
||||||
|
Loading…
Reference in New Issue
Block a user