deajan / tcpping

tcpping script for smokeping that runs with newer linux traceroute binaries
GNU General Public License v3.0
127 stars 39 forks source link

unable to use with Docker (busybox) traceroute: unrecognized option: M #9

Closed lurk24 closed 4 years ago

lurk24 commented 4 years ago

Trying to install TCPPing into a docker for Smokeping

I am testing it with this: docker exec -i smokeping /usr/bin/tcpping -C -x 5 live-sjc05.twitch.tv 1935

I get this output:

Unable to run ' traceroute -M tcp -f 255 -m 255 -q 1 -w 1  -p 1935 live-sjc05.twitch.tv' command. Please submit an issue in 'https://github.com/deajan/tcpping/issues' with the output of the command.

Taking the command listed in the output and running it like this: docker exec -i smokeping traceroute -M tcp -f 255 -m 255 -q 1 -w 1 -p 1935 live-sjc05.twitch.tv

yields this:

traceroute: unrecognized option: M
BusyBox v1.31.1 () multi-call binary.

Usage: traceroute [-46FIlnrv] [-f 1ST_TTL] [-m MAXTTL] [-q PROBES] [-p PORT]
        [-t TOS] [-w WAIT_SEC] [-s SRC_IP] [-i IFACE]
        [-z PAUSE_MSEC] HOST [BYTES]

Trace the route to HOST

        -4,-6   Force IP or IPv6 name resolution
        -F      Set don't fragment bit
        -I      Use ICMP ECHO instead of UDP datagrams
        -l      Display TTL value of the returned packet
        -n      Print numeric addresses
        -r      Bypass routing tables, send directly to HOST
        -v      Verbose
        -f N    First number of hops (default 1)
        -m N    Max number of hops
        -q N    Number of probes per hop (default 3)
        -p N    Base UDP port number used in probes
                (default 33434)
        -s IP   Source address
        -i IFACE Source interface
        -t N    Type-of-service in probe packets (default 0)
        -w SEC  Time to wait for a response (default 3)
        -g IP   Loose source route gateway (8 max)

Most importantly it shows: traceroute: unrecognized option: M

lurk24 commented 4 years ago

ignore this issue... turns out the docker image i was using already had a working copy of tcpping installed - go figure?

qgbcs commented 2 years ago

traceroute: unrecognized option `--tcp'

deajan commented 2 years ago

@qgbcs A bit of context would surely be helpful here. Also feel free to open another issue since this once is obviously closed and isn't related.