From 00e460884cb3b086a85267ec9368c9250b25b6bc Mon Sep 17 00:00:00 2001 From: egoncalv Date: Fri, 11 Jun 2021 12:45:42 -0300 Subject: [PATCH] Nginx port forwarding not working for udp:161 Worked on a bug. Patch 1: Worked on Greg's comment. Signed-off-by: egoncalv Change-Id: Iceac708f5609f5509d4228129511804a318e570f --- .../kubernetes/enabling-snmp-support.rst | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/doc/source/fault-mgmt/kubernetes/enabling-snmp-support.rst b/doc/source/fault-mgmt/kubernetes/enabling-snmp-support.rst index f646a1460..af1861bae 100644 --- a/doc/source/fault-mgmt/kubernetes/enabling-snmp-support.rst +++ b/doc/source/fault-mgmt/kubernetes/enabling-snmp-support.rst @@ -230,7 +230,7 @@ In order to enable and configure |SNMP|, complete the following steps. .. code-block:: none - ~(keystone_admin)$ system helm-override-update --values snmp_port.yaml nginx-ingress-controller nginx-ingress kube-system + ~(keystone_admin)$ system helm-override-update --values snmp_port.yaml nginx-ingress-controller ingress-nginx kube-system +----------------+------------------------------------------+ | Property | Value | +----------------+------------------------------------------+ @@ -262,6 +262,40 @@ In order to enable and configure |SNMP|, complete the following steps. | updated_at | 2020-11-10T17:27:21.509548+00:00 | +---------------+----------------------------------------+ +#. Redirect the SNMP UDP traffic to port 161 by creating the next policies.yml + file and apply it as below. + + Change the ipVersion parameter value from 4 to 6 if you are using IPV6. + + .. code-block:: none + + ~(keystone_admin)$ + cat < policies.yml + apiVersion: crd.projectcalico.org/v1 + kind: GlobalNetworkPolicy + metadata: + name: snmp + spec: + applyOnForward: false + ingress: + - action: Allow + destination: + ports: + - 161 + ipVersion: 4 + protocol: UDP + order: 200 + selector: has(iftype) && iftype == 'oam' + types: + - Ingress + EOF + + Then, run the following command: + + .. code-block:: none + + ~(keystone_admin)$ kubectl apply -f policies.yml + .. _change-configuration-of-SNMP: --------------------------------------------