Closed strobil closed 6 years ago
commit 43bd92e615d94342b689a20eff2df51b5b517c5f
@xebd , can't confirm :( With /23 pool i have only 252 active sessions, and a lot of log message like this:
[2017-12-15 11:57:01]: warn: ipoe248: authentication failed [2017-12-15 11:57:01]: info: ipoe248: ipoe: session finished [2017-12-15 11:57:01]: error: ipoe193: ipoe: nl_modify: File exists [2017-12-15 11:57:01]: info: ipoe193: ipoe: session finished [2017-12-15 11:57:01]: error: ipoe252: ipoe: nl_modify: File exists [2017-12-15 11:57:01]: info: ipoe252: ipoe: session finished [2017-12-15 11:57:01]: error: ipoe249: ipoe: nl_modify: File exists [2017-12-15 11:57:01]: info: ipoe249: ipoe: session finished
Is it possible to have one ip range for several interfaces, like below?
interface=enp77s0f1.3000,range=178.209.68.0/23 interface=enp77s0f1.3001,range=178.209.68.0/23
these messages are not related to ip-pool please set log level=5
@xebd, last 2k lines of log file with level=5 accel-ppp.log
with config below i have 343 actives sessions
interface=enp77s0f1.3000,range=178.209.68.0/23 interface=enp77s0f1.3001,range=5.105.184.0/22
but with this config i have only 252
interface=enp77s0f1.3000,range=178.209.68.0/23 interface=enp77s0f1.3001,range=178.209.68.0/23
https://accel-ppp.org/forum/viewtopic.php?t=58#p372 This is actual info? Maybe i should use ip-pool instead of range on several ifaces? But this feature not documented in manpage for accel-ppp.conf :(
к сожалению общий range на несколько интерфейсов не реализован предлагаю использовать ip-pool вместо range
With those config all works fine, i have 351 active session. But the next question, does ip-pool variable supports several ip-pool names? Like ip-pool=pool1,pool2,pool3?
[ipoe] verbose=1 mode=L2 shared=1 start=dhcpv4 ifcfg=1 lua-file=/etc/accel-ppp.lua username=lua:username password=empty lease-time=300 max-lease-time=600 interface=re:^enp77s0f1.*$ ip-pool=trinity gw-ip-address=178.209.68.1/23 unit-cache=300 [ip-pool] gw-ip-address=178.209.68.1
attr=Framed-Pool 178.209.68.0/23,name=trinity
System: 4.4.39-gentoo Accel-PPP version: 1.11.1_p20170508 Problem description: Accel-ppp is using only half (~256 in my case) of specified local ippool, and when it reach 253 active sessions an error "error: ipoe253: no free IPv4 address" appears in my accel-ppp log file.
If i change range mask from /23 to /24 - this error will appear at ~130 active sessions. Looks like it does no matter the size of pool. Accel-PPP will always use a half.
Config file is below: