From c554c483817bfc6ef4f0175298d23355696f8665 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 21 May 2024 08:06:35 +0000 Subject: T6366: CGNAT add ability to get external and internal allocations Add the ability to show port allocation per external or internal address With huge entries, it is necessary to filter it by specific external/internal IP address --- op-mode-definitions/nat.xml.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/nat.xml.in b/op-mode-definitions/nat.xml.in index 6398c0e07..13e7fd81d 100644 --- a/op-mode-definitions/nat.xml.in +++ b/op-mode-definitions/nat.xml.in @@ -16,6 +16,26 @@ Show allocated CGNAT parameters + + + + Show CGNAT allocations for an external IP address + + <x.x.x.x> + + + sudo ${vyos_op_scripts_dir}/cgnat.py show_allocation --external-address "$6" + + + + Show CGNAT allocations for an internal IP address + + <x.x.x.x> + + + sudo ${vyos_op_scripts_dir}/cgnat.py show_allocation --internal-address "$6" + + sudo ${vyos_op_scripts_dir}/cgnat.py show_allocation -- cgit v1.2.3