Skip to content

Commit

Permalink
micro-optimize multi-relay rule
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed Nov 19, 2023
1 parent 8f9033d commit 55243da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipv4-rules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function addTor() {

# rule 2
for i in 2 4 8; do
$common -m set --match-set $multilist-$i src -m set ! --match-set $ddoslist src -m connlimit --connlimit-mask $prefix --connlimit-upto $i -j ACCEPT
$common -m set --match-set $multilist-$i src -m connlimit --connlimit-mask $prefix --connlimit-upto $i -m set ! --match-set $ddoslist src -j ACCEPT
done

# rule 3
Expand Down
2 changes: 1 addition & 1 deletion ipv6-rules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function addTor() {

# rule 2
for i in 2 4 8; do
$common -m set --match-set $multilist-$i src -m set ! --match-set $ddoslist src -m connlimit --connlimit-mask $prefix --connlimit-upto $i -j ACCEPT
$common -m set --match-set $multilist-$i src -m connlimit --connlimit-mask $prefix --connlimit-upto $i -m set ! --match-set $ddoslist src -j ACCEPT
done

# rule 3
Expand Down

0 comments on commit 55243da

Please sign in to comment.