Change default max_ip_blocklist

This commit is contained in:
q3aql 2024-04-16 20:30:43 +02:00
parent 5a0328e9b6
commit 324353477d
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ else
echo "always_ip_allowed=\"192.168.0.1 192.168.0.2\"" >> /etc/blockauth/blockauth.conf echo "always_ip_allowed=\"192.168.0.1 192.168.0.2\"" >> /etc/blockauth/blockauth.conf
echo "blocklist=\"/etc/blockauth/blocklist.list\"" >> /etc/blockauth/blockauth.conf echo "blocklist=\"/etc/blockauth/blocklist.list\"" >> /etc/blockauth/blockauth.conf
echo "filelog=\"/etc/blockauth/blockauth.log\"" >> /etc/blockauth/blockauth.conf echo "filelog=\"/etc/blockauth/blockauth.log\"" >> /etc/blockauth/blockauth.conf
echo "max_ip_blocklist=\"12500\"" >> /etc/blockauth/blockauth.conf echo "max_ip_blocklist=\"500\"" >> /etc/blockauth/blockauth.conf
echo "block_ports=\"22,80,443\"" >> /etc/blockauth/blockauth.conf echo "block_ports=\"22,80,443\"" >> /etc/blockauth/blockauth.conf
fi fi
@ -96,7 +96,7 @@ if [ -z "${filelog}" ] ; then
echo "filelog=\"/etc/blockauth/blockauth.log\"" >> /etc/blockauth/blockauth.conf echo "filelog=\"/etc/blockauth/blockauth.log\"" >> /etc/blockauth/blockauth.conf
fi fi
if [ -z "${max_ip_blocklist}" ] ; then if [ -z "${max_ip_blocklist}" ] ; then
echo "max_ip_blocklist=\"12500\"" >> /etc/blockauth/blockauth.conf echo "max_ip_blocklist=\"500\"" >> /etc/blockauth/blockauth.conf
fi fi
if [ -z "${block_ports}" ] ; then if [ -z "${block_ports}" ] ; then
echo "block_ports=\"22,80,443\"" >> /etc/blockauth/blockauth.conf echo "block_ports=\"22,80,443\"" >> /etc/blockauth/blockauth.conf

View File

@ -3,5 +3,5 @@ valid_users="test1 test2"
always_ip_allowed="192.168.0.1 192.168.0.2" always_ip_allowed="192.168.0.1 192.168.0.2"
blocklist="/etc/blockauth/blocklist.list" blocklist="/etc/blockauth/blocklist.list"
filelog="/etc/blockauth/blockauth.log" filelog="/etc/blockauth/blockauth.log"
max_ip_blocklist="12500" max_ip_blocklist="500"
block_ports="22,80,443" block_ports="22,80,443"