set a default value for hosts_conntrack_size

This commit is contained in:
Daniel Micay 2025-11-26 10:40:37 -05:00
parent 253113acc8
commit f0e24df323
3 changed files with 2 additions and 26 deletions

View file

@ -62,7 +62,7 @@ rsync tmp $remote:/mnt/etc/ssh/sshd_config
rm tmp
cp etc/nftables/nftables-${hosts_firewall[$host]:-web}.conf tmp
sed -i "s/{{synproxy_threshold}}/$(( ${hosts_conntrack_size[$host]} / 64 ))/g" tmp
sed -i "s/{{synproxy_threshold}}/$(( ${hosts_conntrack_size[$host]:-65536} / 64 ))/g" tmp
sed -i "s/{{ssh_ipv4}}/$ssh_ipv4/g" tmp
sed -i "s/{{ssh_ipv6}}/$ssh_ipv6/g" tmp
rsync tmp $remote:/mnt/etc/nftables.conf