From 6032223ef5f06b46f101d740f381ddf24f5a9996 Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Mon, 9 Sep 2024 15:11:13 +0300 Subject: op_mode: T6181: A feature for checking ports (cherry picked from commit 7d20a52e02bec76474ca060fcb1eaeca52c52001) --- op-mode-definitions/execute-port-scan.xml.in | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 op-mode-definitions/execute-port-scan.xml.in (limited to 'op-mode-definitions/execute-port-scan.xml.in') diff --git a/op-mode-definitions/execute-port-scan.xml.in b/op-mode-definitions/execute-port-scan.xml.in new file mode 100644 index 000000000..52cdab5f0 --- /dev/null +++ b/op-mode-definitions/execute-port-scan.xml.in @@ -0,0 +1,34 @@ + + + + + + + Scan network for open ports + + + + + IP address or domain name of the host to scan (scan all ports 1-65535) + + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> + + + nmap -p- -T4 --max-retries=1 --host-timeout=30s "$4" + + + + Port scan options + + + + + ${vyos_op_scripts_dir}/execute_port-scan.py "${@:4}" + + + + + + + + -- cgit v1.2.3