-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ns-api(threathshield): added additional options to api (#793)
Signed-off-by: Tommaso Bailetti <[email protected]> Signed-off-by: Andrea Leardini <[email protected]> Co-authored-by: Andrea Leardini <[email protected]>
- Loading branch information
Showing
4 changed files
with
271 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ "$(uci -q get banip.global.ban_logforwardwan)" != "" ] && exit 0 | ||
|
||
uci -q batch << EOI | ||
set banip.global.ban_logforwardwan="1" | ||
set banip.global.ban_logforwardlan="1" | ||
set banip.global.ban_logprerouting="0" | ||
set banip.global.ban_loginput="0" | ||
|
||
set banip.global.ban_loglimit="100" | ||
set banip.global.ban_logcount="3" | ||
set banip.global.ban_nftexpiry="30m" | ||
|
||
delete banip.global.ban_logterm | ||
add_list banip.global.ban_logterm="Exit before auth from" | ||
add_list banip.global.ban_logterm="authentication failed for user" | ||
|
||
set banip.global.ban_icmplimit="10" | ||
set banip.global.ban_synlimit="10" | ||
set banip.global.ban_udplimit="100" | ||
|
||
commit banip | ||
EOI |