diff --git a/Shorewall-init/shorewall-init.service.214.debian b/Shorewall-init/shorewall-init.service.214.debian index 9231ba7f6..6e42b3cca 100644 --- a/Shorewall-init/shorewall-init.service.214.debian +++ b/Shorewall-init/shorewall-init.service.214.debian @@ -2,6 +2,7 @@ # The Shoreline Firewall (Shorewall) Packet Filtering Firewall # # Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep # [Unit] Description=Shorewall firewall (bootup security) diff --git a/Shorewall-init/shorewall-init.service.debian b/Shorewall-init/shorewall-init.service.debian index f94ad64e6..303b5123b 100644 --- a/Shorewall-init/shorewall-init.service.debian +++ b/Shorewall-init/shorewall-init.service.debian @@ -2,6 +2,7 @@ # The Shoreline Firewall (Shorewall) Packet Filtering Firewall # # Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep # [Unit] Description=Shorewall firewall (bootup security) diff --git a/Shorewall-lite/shorewall-lite.service.debian b/Shorewall-lite/shorewall-lite.service.debian index 75bc522f5..86f20910a 100644 --- a/Shorewall-lite/shorewall-lite.service.debian +++ b/Shorewall-lite/shorewall-lite.service.debian @@ -2,6 +2,7 @@ # The Shoreline Firewall (Shorewall) Packet Filtering Firewall # # Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep # [Unit] Description=Shorewall IPv4 firewall (lite) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 7e3fe431e..a9924981f 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -4832,7 +4832,7 @@ sub update_config_file( $ ) { unless ( supplied $config{LOGLIMIT} ) { if ( $config{LOGRATE} || $config{LOGBURST} ) { my $limit; - + if ( supplied $config{LOGRATE} ) { fatal_error"Invalid LOGRATE ($config{LOGRATE})" unless $config{LOGRATE} =~ /^\d+\/(second|minute)$/; $limit = $config{LOGRATE}; @@ -5564,7 +5564,7 @@ sub get_configuration( $$$$ ) { $limit .= "--$match $1 --hashlimit-burst $5 --hashlimit-name lograte --hashlimit-mode "; $units = $4; - } elsif ( $rate =~ /^[sd]:((\d+)(\/(sec|min|hour|day))?)$/ ) { + } elsif ( $rate =~ /^[sd]:((\d+)(\/(sec|min|second|minute|hour|day))?)$/ ) { fatal_error "Invalid rate ($1)" unless $2; $limit .= "--$match $1 --hashlimit-name lograte --hashlimit-mode "; $units = $4; @@ -5588,7 +5588,7 @@ sub get_configuration( $$$$ ) { fatal_error "Invalid rate ($1)" unless $2; fatal_error "Invalid burst value ($5)" unless $5; $limit = "-m limit --limit $1 --limit-burst $5 "; - } elsif ( $rate =~ /^(\d+)(\/(sec|min|hour|day))?$/ ) { + } elsif ( $rate =~ /^(\d+)(\/(sec|min|second|minute|hour|day))?$/ ) { fatal_error "Invalid rate (${1}${2})" unless $1; $limit = "-m limit --limit $rate "; } else { diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 6e0359f8d..c56f476a1 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -846,12 +846,12 @@ CEOF if ( $hostroute ) { if ( $family == F_IPV4 ) { - emit "run_ip route replace $gateway src $address dev $physical ${mtu}"; - emit "run_ip route replace $gateway src $address dev $physical ${mtu}table $id $realm"; + emit qq(run_ip route replace $gateway src $address dev $physical ${mtu}); + emit qq(run_ip route replace $gateway src $address dev $physical ${mtu}table $id $realm); } else { - emit "qt \$IP -6 route add $gateway src $address dev $physical ${mtu}"; - emit "qt \$IP -6 route del $gateway src $address dev $physical ${mtu}table $id $realm"; - emit "run_ip route add $gateway src $address dev $physical ${mtu}table $id $realm"; + emit qq(qt \$IP -6 route add $gateway src $address dev $physical ${mtu}); + emit qq(qt \$IP -6 route del $gateway src $address dev $physical ${mtu}table $id $realm); + emit qq(run_ip route add $gateway src $address dev $physical ${mtu}table $id $realm); } } diff --git a/Shorewall/shorewall.service.debian b/Shorewall/shorewall.service.debian index 7aee4daf3..ec250ef1f 100644 --- a/Shorewall/shorewall.service.debian +++ b/Shorewall/shorewall.service.debian @@ -2,6 +2,7 @@ # The Shoreline Firewall (Shorewall) Packet Filtering Firewall # # Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep # [Unit] Description=Shorewall IPv4 firewall diff --git a/Shorewall6/shorewall6.service.debian b/Shorewall6/shorewall6.service.debian index cf724d3ed..ad0225d50 100644 --- a/Shorewall6/shorewall6.service.debian +++ b/Shorewall6/shorewall6.service.debian @@ -2,6 +2,7 @@ # The Shoreline Firewall (Shorewall) Packet Filtering Firewall # # Copyright 2011 Jonathan Underwood +# Copyright 2015 Tom Eastep # [Unit] Description=Shorewall IPv6 firewall