-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set net.ipv4 sysctl flags via server metapackage
Instead of setting these via ansible, let's ship them in this package so it's easier to tweak them in the future without needing future ansible runs. A postinst snippet removes the values from /etc/sysctld.conf; it's okay if they're temporarily duplicated since they'll have the same values. Refs <freedomofpress/securedrop#7323>.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
vm.heap_stack_gap=1048576 | ||
|
||
net.ipv4.tcp_max_syn_backlog = 4096 | ||
net.ipv4.tcp_syncookies = 1 | ||
net.ipv4.conf.all.rp_filter = 1 | ||
net.ipv4.conf.all.accept_source_route = 0 | ||
net.ipv4.conf.all.accept_redirects = 0 | ||
net.ipv4.conf.all.secure_redirects = 0 | ||
net.ipv4.conf.default.rp_filter = 1 | ||
net.ipv4.conf.default.accept_source_route = 0 | ||
net.ipv4.conf.default.accept_redirects = 0 | ||
net.ipv4.conf.default.secure_redirects = 0 | ||
net.ipv4.icmp_echo_ignore_broadcasts = 1 | ||
net.ipv4.ip_forward = 0 | ||
net.ipv4.conf.all.send_redirects = 0 | ||
net.ipv4.conf.default.send_redirects = 0 |