accel-cmd stopped working when telnet enabled on public ip

Questions related to general functionality
Post Reply
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

accel-cmd stopped working when telnet enabled on public ip

Post by hashbang »

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
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

Re: accel-cmd stopped working when telnet enabled on public ip

Post by dimka88 »

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.
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

Re: accel-cmd stopped working when telnet enabled on public ip

Post by hashbang »

dimka88 wrote: 11 Dec 2021, 09:16 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.
ty
I couldnt find how to use password with accel-cmd in help :(
thanks
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

Re: accel-cmd stopped working when telnet enabled on public ip

Post by dimka88 »

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.
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

Re: accel-cmd stopped working when telnet enabled on public ip

Post by hashbang »

ty,
I tried this command
accel-cmd --password password show sessions
-bash: password: event not found

Please advise
thanks
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

Re: accel-cmd stopped working when telnet enabled on public ip

Post by dimka88 »

It works for me in both ways:

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
Try to check the path to accel-cmd, e.g. `which accel-cmd`
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

Re: accel-cmd stopped working when telnet enabled on public ip

Post by hashbang »

dimka88 wrote: 17 Dec 2021, 19:24 It works for me in both ways:

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
Try to check the path to accel-cmd, e.g. `which accel-cmd`
hi
ty
no problem in path
i think its special characters in password in starting
can u plz try !@#password!@#
thanks
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

Re: accel-cmd stopped working when telnet enabled on public ip

Post by dimka88 »

Hi, yes, you should escape special characters, as an example

accel-cmd show stat -P \!@#password\!@#
Post Reply