Multiple instances of pppoe and accel-cmd

PPPoE related questions
Post Reply
hashbang
Posts: 38
Joined: 12 Jul 2015, 10:28

Multiple instances of pppoe and accel-cmd

Post by hashbang » 11 Feb 2020, 05:58

Hi
I need to run multiple instances of accel-ppd becoz of different service names. How will accel-cmd work with different instances ?

thanks

dimka88
Posts: 649
Joined: 13 Oct 2014, 05:51
Contact:

Re: Multiple instances of pppoe and accel-cmd

Post by dimka88 » 11 Feb 2020, 07:26

Hi, accel-cmd can work with tcp ports, e.g:
For instance 1 in accel-ppp1.conf we use

Code: Select all

[cli]
tcp=127.0.0.1:2001
For instance 2 in accel-ppp2.conf

Code: Select all

[cli]
tcp=127.0.0.1:2002
And CLI example for second server

Code: Select all

accel-cmd -p 2002 show sessions
Help args for accel-cmd

Code: Select all

accel-cmd help --help
Usage:	accel-cmd [-v] [-4] [-6] [-n] [-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.
	-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: 38
Joined: 12 Jul 2015, 10:28

Re: Multiple instances of pppoe and accel-cmd

Post by hashbang » 11 Feb 2020, 12:07

thanks

standula
Posts: 1
Joined: 25 Mar 2020, 12:39

Re: Multiple instances of pppoe and accel-cmd

Post by standula » 25 Mar 2020, 12:48

Hello,
when multiple instances are required, how i get configuration files list to service for loading ? Or accel-ppp instances are started separately and own daemon control management must be created for each instance ?

dimka88
Posts: 649
Joined: 13 Oct 2014, 05:51
Contact:

Re: Multiple instances of pppoe and accel-cmd

Post by dimka88 » 25 Mar 2020, 22:34

Hello, for multiple instances you need create multiples systemd services with own configs. Or just run accel-ppp manually. e.g.

Code: Select all

accel-pppd -d -c /etc/accel-ppp_1.conf -p /var/run/accel-ppp1.pid
accel-pppd -d -c /etc/accel-ppp_2.conf -p /var/run/accel-ppp2.pid
accel-pppd -d -c /etc/accel-ppp_3.conf -p /var/run/accel-ppp3.pid

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests