aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 636a3dc..7ef6ff6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -883,6 +883,9 @@ fn machine_configuration_script(config: &MachineConfig) -> String {
883 script.push_str("echo 16384 > /proc/sys/net/ipv4/neigh/default/gc_thresh2\n"); 883 script.push_str("echo 16384 > /proc/sys/net/ipv4/neigh/default/gc_thresh2\n");
884 script.push_str("echo 32768 > /proc/sys/net/ipv4/neigh/default/gc_thresh3\n"); 884 script.push_str("echo 32768 > /proc/sys/net/ipv4/neigh/default/gc_thresh3\n");
885 885
886 // tcp max orphan limit
887 script.push_str("echo 524288 > /proc/sys/net/ipv4/tcp_max_orphans\n");
888
886 // ip configuration 889 // ip configuration
887 script.push_str("cat << EOF | ip -b -\n"); 890 script.push_str("cat << EOF | ip -b -\n");
888 for command in config.ip_commands.iter() { 891 for command in config.ip_commands.iter() {