diff --git a/Shorewall2/install.sh b/Shorewall2/install.sh index 3c96259d9..5ee41a25a 100755 --- a/Shorewall2/install.sh +++ b/Shorewall2/install.sh @@ -408,6 +408,16 @@ else echo "Blacklist file installed as ${PREFIX}/etc/shorewall/blacklist" fi # +# Install the Routes file +# +if [ -f ${PREFIX}/etc/shorewall/routes ]; then + backup_file /etc/shorewall/routes +else + run_install $OWNERSHIP -m 0600 routes ${PREFIX}/etc/shorewall/routes + echo + echo "Routes file installed as ${PREFIX}/etc/shorewall/blacklist" +fi +# # Backup and remove the whitelist file # if [ -f ${PREFIX}/etc/shorewall/whitelist ]; then diff --git a/Shorewall2/shorewall.spec b/Shorewall2/shorewall.spec index bd6030d15..ebc57636c 100644 --- a/Shorewall2/shorewall.spec +++ b/Shorewall2/shorewall.spec @@ -95,6 +95,7 @@ fi %attr(0600,root,root) %config(noreplace) /etc/shorewall/actions %attr(0600,root,root) %config(noreplace) /etc/shorewall/continue %attr(0600,root,root) %config(noreplace) /etc/shorewall/started +%attr(0600,root,root) %config(noreplace) /etc/shorewall/routes %attr(0544,root,root) /sbin/shorewall