summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-19 16:13:01 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-19 16:13:01 +0200
commit96a4b6f46c99dd41a44505f929feda0422f4dca7 (patch)
tree1cc8956a89b5901f7a94535ac871cd1eff4e2695 /op-mode-definitions
parent587416ef606827c5cbf6ac49834fc65283794fbb (diff)
downloadvyos-1x-96a4b6f46c99dd41a44505f929feda0422f4dca7.tar.gz
vyos-1x-96a4b6f46c99dd41a44505f929feda0422f4dca7.zip
op-mode: add "show ip ports" to list local opened ports
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-ip-ports.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/show-ip-ports.xml b/op-mode-definitions/show-ip-ports.xml
new file mode 100644
index 000000000..a74b68ffc
--- /dev/null
+++ b/op-mode-definitions/show-ip-ports.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="ip">
+ <children>
+ <leafNode name="ports">
+ <properties>
+ <help>Show IP ports in use by various system services</help>
+ </properties>
+ <command>sudo /usr/bin/netstat -tulnp</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>