summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-10 19:42:44 +0100
committerChristian Breunig <christian@breunig.cc>2023-02-10 19:42:44 +0100
commit011e6a2cdea8fca73f7c433de5e2d6bc22bd9c19 (patch)
tree7391f3de5a743615cc3acdf9942380473eab6be3 /data/templates
parenta31f6d45f72dbe556bd3f3d7d62935251888eca5 (diff)
downloadvyos-1x-011e6a2cdea8fca73f7c433de5e2d6bc22bd9c19.tar.gz
vyos-1x-011e6a2cdea8fca73f7c433de5e2d6bc22bd9c19.zip
snmp: T4857: explicitly define default community networks 0.0.0.0/0 and ::/0
After the RESTRICTED view was introduced snmpd requires a network to be specified. Before adding the RESTRICTED view snmpd always assumed the default network 0.0.0.0/0. This commit re-adds the build in default networks for IPv4 and IPv6 and exposes it as a proper default to the CLI so the user is informed about it: vyos@vyos# set service snmp community foooo Possible completions: authorization Authorization type (default: ro) + client IP address of SNMP client allowed to contact system + network Subnet of SNMP client(s) allowed to contact system (default: 0.0.0.0/0, ::/0)
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/snmp/etc.snmpd.conf.j24
1 files changed, 0 insertions, 4 deletions
diff --git a/data/templates/snmp/etc.snmpd.conf.j2 b/data/templates/snmp/etc.snmpd.conf.j2
index 66cf7629a..9d78d479a 100644
--- a/data/templates/snmp/etc.snmpd.conf.j2
+++ b/data/templates/snmp/etc.snmpd.conf.j2
@@ -77,10 +77,6 @@ agentaddress unix:/run/snmpd.socket{{ ',' ~ options | join(',') if options is vy
{% endif %}
{% endfor %}
{% endif %}
-{% if comm_config.client is not vyos_defined and comm_config.network is not vyos_defined %}
-{{ comm_config.authorization }}community {{ comm }} 0.0.0.0/0 -V RESTRICTED
-{{ comm_config.authorization }}community6 {{ comm }} ::/0 -V RESTRICTED
-{% endif %}
{% endfor %}
{% endif %}