From 8ec706746ddce7836e84ed254927c4760c60a530 Mon Sep 17 00:00:00 2001 From: Jordi Prats Date: Mon, 30 Apr 2018 13:00:59 +0200 Subject: [PATCH] check module bridge --- templates/sysctlbase.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/sysctlbase.erb b/templates/sysctlbase.erb index 0fa7cb0..3529f4e 100644 --- a/templates/sysctlbase.erb +++ b/templates/sysctlbase.erb @@ -13,11 +13,13 @@ kernel.core_uses_pid = <%= scope.function_bool2number([@core_uses_pid]) %> net.ipv4.tcp_syncookies = <%= scope.function_bool2number([@ipv4_tcp_syncookies]) %> <% if @disable_netfilter_on_bridges %> + <%- if defined?(scope.lookupvar('::eyp_sysctl_net_bridge')) -%> # Disable netfilter on bridges. net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0 + <%- end -%> <% end -%> # Controls the default maxmimum size of a mesage queue kernel.msgmnb = <%= @msgmnb %>