source_ports "1024:"
end
end
+
+if node[:snmpd][:clients6]
+ node[:snmpd][:clients6].each do |address|
+ firewall_rule "accept-snmp" do
+ action :accept
+ family "inet6"
+ source "net:#{address}"
+ dest "fw"
+ proto "udp"
+ dest_ports "snmp"
+ source_ports "1024:"
+ end
+ end
+else
+ firewall_rule "accept-snmp" do
+ action :accept
+ family "inet6"
+ source "net"
+ dest "fw"
+ proto "udp"
+ dest_ports "snmp"
+ source_ports "1024:"
+ end
+end
# DO NOT EDIT - This file is being maintained by Chef
-rocommunity <%= @communities[node[:snmpd][:community]] %>
+<% @communities[node[:snmpd][:community]].each do |community| -%>
+rocommunity <%= community %>
+rocommunity6 <%= community %>
+<% end -%>
syslocation <%= node[:snmpd][:location] %>
<% if node[:snmpd][:contact] -%>
syscontact <%= node[:snmpd][:contact] %>
:nameservers => ["77.95.64.205", "77.95.64.206", "8.8.8.8", "8.8.4.4"]
},
:snmpd => {
- :clients => ["77.95.64.0/24", "77.95.70.0/24"],
+ :clients => ["77.95.64.0/21"],
+ :clients6 => ["2a03:9180::/32", "2001:7f8:47::/48"],
:community => "lyonix",
:location => "LYON",
:contact => "noc@lyonix.net"