mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
Merge branch 'master' of git.ipfire.org:/pub/git/ipfire-2.x
This commit is contained in:
@@ -280,7 +280,7 @@ sub buildrules {
|
|||||||
# Concurrent connection limit
|
# Concurrent connection limit
|
||||||
my @ratelimit_options = ();
|
my @ratelimit_options = ();
|
||||||
|
|
||||||
if (($elements gt 34) && ($$hash{$key}[32] eq 'ON')) {
|
if (($elements ge 34) && ($$hash{$key}[32] eq 'ON')) {
|
||||||
my $conn_limit = $$hash{$key}[33];
|
my $conn_limit = $$hash{$key}[33];
|
||||||
|
|
||||||
if ($conn_limit ge 1) {
|
if ($conn_limit ge 1) {
|
||||||
@@ -296,13 +296,13 @@ sub buildrules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Ratelimit
|
# Ratelimit
|
||||||
if (($elements gt 37) && ($$hash{$key}[34] eq 'ON')) {
|
if (($elements ge 37) && ($$hash{$key}[34] eq 'ON')) {
|
||||||
my $rate_limit = "$$hash{$key}[35]/$$hash{$key}[36]";
|
my $rate_limit = "$$hash{$key}[35]/$$hash{$key}[36]";
|
||||||
|
|
||||||
if ($rate_limit) {
|
if ($rate_limit) {
|
||||||
push(@ratelimit_options, ("-m", "limit"));
|
push(@ratelimit_options, ("-m", "limit"));
|
||||||
push(@ratelimit_options, ("--limit", $rate_limit));
|
push(@ratelimit_options, ("--limit", $rate_limit));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check which protocols are used in this rule and so that we can
|
# Check which protocols are used in this rule and so that we can
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
etc/system-release
|
etc/system-release
|
||||||
etc/issue
|
etc/issue
|
||||||
opt/pakfire/etc/pakfire.conf
|
opt/pakfire/etc/pakfire.conf
|
||||||
|
usr/lib/firewall/rules.pl
|
||||||
usr/local/bin/update-bootloader
|
usr/local/bin/update-bootloader
|
||||||
var/ipfire/header.pl
|
var/ipfire/header.pl
|
||||||
var/ipfire/langs
|
var/ipfire/langs
|
||||||
|
|||||||
Reference in New Issue
Block a user