Page 1 of 1
Multiple instances of pppoe and accel-cmd
Posted: 11 Feb 2020, 05:58
by hashbang
Hi
I need to run multiple instances of accel-ppd becoz of different service names. How will accel-cmd work with different instances ?
thanks
Re: Multiple instances of pppoe and accel-cmd
Posted: 11 Feb 2020, 07:26
by dimka88
Hi, accel-cmd can work with tcp ports, e.g:
For instance 1 in accel-ppp1.conf we use
For instance 2 in accel-ppp2.conf
And CLI example for second server
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.
Re: Multiple instances of pppoe and accel-cmd
Posted: 11 Feb 2020, 12:07
by hashbang
thanks
Re: Multiple instances of pppoe and accel-cmd
Posted: 25 Mar 2020, 12:48
by standula
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 ?
Re: Multiple instances of pppoe and accel-cmd
Posted: 25 Mar 2020, 22:34
by dimka88
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