diff options
-rw-r--r-- | debian/control | 3 | ||||
-rw-r--r-- | op-mode-definitions/traceroute.xml | 56 |
2 files changed, 50 insertions, 9 deletions
diff --git a/debian/control b/debian/control index 3a441b47b..34ba4be8e 100644 --- a/debian/control +++ b/debian/control @@ -106,7 +106,8 @@ Depends: python3, conntrack, libatomic1, fastnetmon, - libndp-tools + libndp-tools, + tcptraceroute Description: VyOS configuration scripts and data VyOS configuration scripts, interface definitions, and everything diff --git a/op-mode-definitions/traceroute.xml b/op-mode-definitions/traceroute.xml index efbaaeb2f..6a44fc25b 100644 --- a/op-mode-definitions/traceroute.xml +++ b/op-mode-definitions/traceroute.xml @@ -26,22 +26,23 @@ </properties> <command>/usr/bin/traceroute -4 "$3"</command> <children> - <tagNode name="tcp"> + <node name="tcp"> <properties> <help>Route tracing and port detection using TCP</help> </properties> + <command>sudo /usr/bin/tcptraceroute "$3" </command> <children> <tagNode name="port"> <properties> - <help>Perform operations on TCP ports</help> + <help>TCP port to connect to for path tracing</help> <completionHelp> <list>0-65535</list> </completionHelp> </properties> - <command>sudo /usr/sbin/tcptraceroute "$3" $6</command> + <command>sudo /usr/bin/tcptraceroute "$3" $6</command> </tagNode> </children> - </tagNode> + </node> </children> </tagNode> <tagNode name="ipv6"> @@ -53,22 +54,23 @@ </properties> <command>/usr/bin/traceroute -6 "$3"</command> <children> - <tagNode name="tcp"> + <node name="tcp"> <properties> <help>Use TCP/IPv6 packets to perform a traceroute</help> </properties> + <command>sudo /usr/bin/tcptraceroute6 "$3" </command> <children> <tagNode name="port"> <properties> - <help>Perform operations on TCP ports</help> + <help>TCP port to connect to for path tracing</help> <completionHelp> <list>0-65535</list> </completionHelp> </properties> - <command>sudo /usr/sbin/tcptraceroute6 "$3" $6</command> + <command>sudo /usr/bin/tcptraceroute6 "$3" $6</command> </tagNode> </children> - </tagNode> + </node> </children> </tagNode> <tagNode name="vrf"> @@ -98,6 +100,25 @@ </completionHelp> </properties> <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute -4 "$5"</command> + <children> + <node name="tcp"> + <properties> + <help>Route tracing and port detection using TCP</help> + </properties> + <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute "$5" </command> + <children> + <tagNode name="port"> + <properties> + <help>TCP port to connect to for path tracing</help> + <completionHelp> + <list>0-65535</list> + </completionHelp> + </properties> + <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute "$5" $8</command> + </tagNode> + </children> + </node> + </children> </tagNode> <tagNode name="ipv6"> <properties> @@ -107,6 +128,25 @@ </completionHelp> </properties> <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute -6 "$5"</command> + <children> + <node name="tcp"> + <properties> + <help>Use TCP/IPv6 packets to perform a traceroute</help> + </properties> + <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" </command> + <children> + <tagNode name="port"> + <properties> + <help>TCP port to connect to for path tracing</help> + <completionHelp> + <list>0-65535</list> + </completionHelp> + </properties> + <command>sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" $8</command> + </tagNode> + </children> + </node> + </children> </tagNode> </children> </tagNode> |