make sure syncookies are enabled
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 4 Mar 2014 08:56:34 +0000 (09:56 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 4 Mar 2014 08:56:34 +0000 (09:56 +0100)
src/PVE/Firewall.pm

index 3a4f2f4..140cbe6 100644 (file)
@@ -627,6 +627,9 @@ sub enable_bridge_firewall {
     PVE::ProcFSTools::write_proc_entry("/proc/sys/net/bridge/bridge-nf-call-iptables", "1");
     PVE::ProcFSTools::write_proc_entry("/proc/sys/net/bridge/bridge-nf-call-ip6tables", "1");
 
+    # make sure syncookies are enabled (which is default on newer 3.X kernels anyways)
+    PVE::ProcFSTools::write_proc_entry("/proc/sys/net/ipv4/tcp_syncookies", "1");
+
     $bridge_firewall_enabled = 1;
 }