mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-12-19 10:22:33 -05:00
set a default value for hosts_conntrack_size
This commit is contained in:
parent
253113acc8
commit
f0e24df323
3 changed files with 2 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue