btest-opensource
btest-opensource copied to clipboard
Unable to run btest against RouterOS 6.48
Hi, this was a great contribution however I couldn't get it to work:
-
Installed on Ubuntu 20.04 using git clone https://github.com/samm-git/btest-opensource cd btest-opensource gcc -o btest *.c -lpthread
-
ran: ./btest -s -a admin -p password
-
On the router, ran: /tool bandwidth-test dur=5s dir=both user=admin pass=password prot=tcp addr=10.1.0.1 status: test unsupported tx-current: 0bps tx-10-second-average: 0bps tx-total-average: 0bps rx-current: 0bps rx-10-second-average: 0bps rx-total-average: 0bps random-data: no direction: both connection-count: 20 On the linux side, the output is: Running in server mode Listening Cmd buffer: 01030114008000000000000000000000 proto=1 direction=3 random=1 tcp_conn_count=20 tx_size=32768 client_buf_size=0 remote_tx_speed=0 local_tx_speed=0 remoteIP=10.1.10.33 Listening on TCP cmdsock Complete
-
same results with no username/password on either end, and same results with dir=transmit or dir=receive
-
Other direction: ran ./btest -c 10.1.10.33 -r -t -a admin -p password Remote did not return correct hello response Response: 03000000 Same result with only -r or only -t
-
Installed on a different Ubuntu 20.04 system and ran the server there (with user/password) and the client on the first Ubuntu system as: ./btest -c 10.1.13.248 -r -t -a admin -p password - that produced results as expected. The first time I tried with -r only I got a series of 0.00kbps. However running it later with -r -t and then -t and then -r, all three cases produced realistic bandwidths.
Update:
- on RouterOS, /tool bandwidth-server set authenticate=no and then run btest as a client on Linux: works as expected.
- running btest as a server on Linux, with no user/password, and running the client on RouterOS still produces the result "test unsupported" EXCEPT, if I leave out protocol=tcp (default therefore udp) the test runs but produces 0.0kb/s output.
I'm seeing the same symptoms against RouterOS 7.1beta6 with your btest tool built from tip-of-master source on macOS 10.15.
as i mentioned already - password auth will NOT work with any recent routeros as Mikrotik changed authentication and new format is not yet known.