Hi,
to resync users with radius server I enabled telnet on public ip with password and accel-cmd stopped working
[cli]
verbose=1
telnet=x,x,x,x:2000
tcp=127.0.0.1:2001
password=^$#####
no output after command
ty
accel-cmd stopped working when telnet enabled on public ip
Re: accel-cmd stopped working when telnet enabled on public ip
Hello hashbang, as you know telnet is not a secure proto. I propose to configure some secure tunnels and run telnet here. As an example wireguard, ipsec, OpenVPN
Note: accel-cmd and telnet require a password if it was defined. Try to use accel-cmd help.
Note: accel-cmd and telnet require a password if it was defined. Try to use accel-cmd help.
Re: accel-cmd stopped working when telnet enabled on public ip
ty
I couldnt find how to use password with accel-cmd in help
thanks
Re: accel-cmd stopped working when telnet enabled on public ip
Code: Select all
accel-cmd --help
Usage: accel-cmd [-v] [-4] [-6] [-n] [-j] [-f FAMILY] [-H HOST] [-p PORT] [-t TIMEOUT] [COMMAND]
-f, --family - Set protocol family to use for communicating with HOST. FAMILY can be set to "inet" (IPv4), "inet6" (IPv6) or "unspec" (automatic).
-4 - Shortcut for --family=inet.
-6 - Shortcut for --family=inet6.
-n, --numeric - Avoid name resolution for HOST and PORT.
-H, --host - Set hostname, or IP address, to communicate with. Defaults to "localhost".
-p, --port - Set remote port to use for communicating with HOST. Defaults to "2001".
-t, --timeout - Set inactivity timeout.
-P, --password - Set password for accessing HOST.
-v, --verbose - Verbose output.
-j, --json - Dispaly output data in JSON format.
-V, --version - Display version number and exit.
-h, --help - Display this help message and exit.
COMMAND is the accel-ppp command line to be executed (if omitted, commands are read from standard input).
The "help" command can be used (e.g. "accel-cmd help") to get information about available commands and their syntax.
Re: accel-cmd stopped working when telnet enabled on public ip
ty,
I tried this command
accel-cmd --password password show sessions
-bash: password: event not found
Please advise
thanks
I tried this command
accel-cmd --password password show sessions
-bash: password: event not found
Please advise
thanks
Re: accel-cmd stopped working when telnet enabled on public ip
It works for me in both ways:
Try to check the path to accel-cmd, e.g. `which accel-cmd`
Code: Select all
root@dev:~# accel-cmd show sessions -P 123
ifname | username | ip | type | state | uptime | rate-limit | rx-pkts | tx-pkts | rx-bytes | tx-bytes | called-sid | sid | vrf
--------+----------+------------+-------+--------+----------+------------+---------+---------+----------+----------+------------+------------------+-----
ppp1 | 101 | 100.64.1.2 | pppoe | active | 00:32:00 | 1024/512 | 53 | 3 | 3.0 KiB | 54 B | ens224 | 00000000001abc97 | red
root@dev:~# accel-cmd show sessions --password 123
ifname | username | ip | type | state | uptime | rate-limit | rx-pkts | tx-pkts | rx-bytes | tx-bytes | called-sid | sid | vrf
--------+----------+------------+-------+--------+----------+------------+---------+---------+----------+----------+------------+------------------+-----
ppp1 | 101 | 100.64.1.2 | pppoe | active | 00:32:25 | 1024/512 | 53 | 3 | 3.0 KiB | 54 B | ens224 | 00000000001abc97 | red
Re: accel-cmd stopped working when telnet enabled on public ip
hidimka88 wrote: ↑17 Dec 2021, 19:24 It works for me in both ways:Try to check the path to accel-cmd, e.g. `which accel-cmd`Code: Select all
root@dev:~# accel-cmd show sessions -P 123 ifname | username | ip | type | state | uptime | rate-limit | rx-pkts | tx-pkts | rx-bytes | tx-bytes | called-sid | sid | vrf --------+----------+------------+-------+--------+----------+------------+---------+---------+----------+----------+------------+------------------+----- ppp1 | 101 | 100.64.1.2 | pppoe | active | 00:32:00 | 1024/512 | 53 | 3 | 3.0 KiB | 54 B | ens224 | 00000000001abc97 | red root@dev:~# accel-cmd show sessions --password 123 ifname | username | ip | type | state | uptime | rate-limit | rx-pkts | tx-pkts | rx-bytes | tx-bytes | called-sid | sid | vrf --------+----------+------------+-------+--------+----------+------------+---------+---------+----------+----------+------------+------------------+----- ppp1 | 101 | 100.64.1.2 | pppoe | active | 00:32:25 | 1024/512 | 53 | 3 | 3.0 KiB | 54 B | ens224 | 00000000001abc97 | red
ty
no problem in path
i think its special characters in password in starting
can u plz try !@#password!@#
thanks
Re: accel-cmd stopped working when telnet enabled on public ip
Hi, yes, you should escape special characters, as an example
accel-cmd show stat -P \!@#password\!@#
accel-cmd show stat -P \!@#password\!@#