Page 1 of 1

next pool not found

Posted: 09 Jan 2019, 13:34
by villagenet
Hi i use accel-ppp with this config

[modules]
log_file
#log_syslog
#log_tcp
#log_pgsql

#pptp
#l2tp
#sstp
pppoe
#ipoe

#auth_mschap_v2
#auth_mschap_v1
#auth_chap_md5
auth_pap

radius
#chap-secrets

pppd_compat

#shaper
#net-snmp
#logwtmp
#connlimit

#ipv6_nd
#ipv6_dhcp
#ipv6pool
ippool

[core]
log-error=/var/log/accel-ppp/core.log
thread-count=4

[common]
#single-session=replace
#sid-case=upper
#sid-source=seq
#max-sessions=1000

[ppp]
verbose=1
min-mtu=1280
mtu=1496
mru=1496
#accomp=deny
#pcomp=deny
ccp=0
check-ip=0
#mppe=require
ipv4=require
ipv6=allow
ipv6-intf-id=0:0:0:1
ipv6-peer-intf-id=0:0:0:2
ipv6-accept-peer-intf-id=1
lcp-echo-interval=20
lcp-echo-failure=3
lcp-echo-timeout=120
unit-cache=1
#unit-preallocate=1

[auth]
#any-login=0
#noauth=0

[pptp]
#verbose=1
#echo-interval=30
#ifname=pptp%d

[pppoe]
verbose=1
ac-name=pppoe2
#service-name=pppoe22
#pado-delay=0
#pado-delay=0,100:100,200:200,-1:500
called-sid=ifname
#tr101=1
#padi-limit=0
ip-pool=pppoe
ip-pool=pppoe2
#ifname=pppoe%d
sid-uppercase=1
#vlan-mon=enp1s0f3,10-40
#vlan-timeout=60
#vlan-name=%I.%N
#interface=eth1,padi-limit=1000
#interface=eth0
interface=re:enp1s0f3.([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-4][0-9][0-9][0-9])
#interface=enp1s0f3.11,padi-limit=1000
#interface=enp1s0f3.12,padi-limit=1000
#interface=enp1s0f3.13,padi-limit=1000
#interface=enp1s0f3.14,padi-limit=1000
#interface=enp1s0f3.15,padi-limit=1000
#interface=enp1s0f3.16,padi-limit=1000
#interface=enp1s0f3.17,padi-limit=1000
#interface=enp1s0f3.18,padi-limit=1000
interface=enp1s0f3.19,padi-limit=1000
#interface=enp1s0f3.20,padi-limit=1000
#interface=enp1s0f3.21,padi-limit=1000
#interface=enp1s0f3.22,padi-limit=1000
#interface=enp1s0f3.26,padi-limit=1000
#interface=enp1s0f3.27,padi-limit=1000
#interface=enp1s0f3.28,padi-limit=1000
#interface=enp1s0f3.29,padi-limit=1000
#interface=enp1s0f3.30,padi-limit=1000
#interface=enp1s0f3.31,padi-limit=1000
#interface=enp1s0f3.32,padi-limit=1000
#interface=enp1s0f3.33,padi-limit=1000
#interface=enp1s0f3.34,padi-limit=1000

[l2tp]
#verbose=1
#dictionary=/usr/local/share/accel-ppp/l2tp/dictionary
#hello-interval=60
#timeout=60
#rtimeout=1
#rtimeout-cap=16
#retransmit=5
#recv-window=16
#host-name=accel-ppp
#dir300_quirk=0
#secret=
#dataseq=allow
#reorder-timeout=0
#ip-pool=l2tp
#ifname=l2tp%d

[dns]
dns1=8.8.8.8
dns2=8.8.8.8

[wins]
wins1=8.8.8.8
wins2=8.8.8.8

[radius]
dictionary=/usr/local/share/accel-ppp/radius/dictionary
nas-identifier=pppoe2-accel
nas-ip-address=127.0.0.1
gw-ip-address=10.10.10.1
server=127.0.0.1,testisav,auth-port=1812,acct-port=1813,req-limit=50,fail-timeout=0,max-fail=10,weight=1
dae-server=127.0.0.1:3799,testis
verbose=1
timeout=3
max-try=3
#acct-timeout=120
#acct-delay-time=0
#acct-on=0
#attr-tunnel-type=My-Tunnel-Type

[client-ip-range]
#10.0.0.0/8
disable

[ip-pool]
gw-ip-address=10.10.10.1

#vendor=Cisco
#attr=Cisco-AVPair

#attr=Framed-Pool
attr=Framed-IP-Address

10.10.150.1/24,name=pppoe,next=pppoe2
10.10.151.1/24,name=pppoe2


[log]
log-file=/var/log/accel-ppp/accel-ppp.log
log-emerg=/var/log/accel-ppp/emerg.log
log-fail-file=/var/log/accel-ppp/auth-fail.log
log-debug=/var/log/accel-ppp/debug.log
#syslog=accel-pppd,daemon
#log-tcp=127.0.0.1:3000
copy=0
color=1
#per-user-dir=per_user
#per-session-dir=per_session
#per-session=1
level=7

[log-pgsql]
conninfo=user=log
log-table=log

[pppd-compat]
verbose=1
ip-pre-up=/etc/ppp/auth-up
ip-up=/etc/ppp/ip-up
ip-down=/etc/ppp/ip-down
#ip-change=/etc/ppp/ip-change
radattr-prefix=/var/run/radattr
#fork-limit=16

[chap-secrets]
#gw-ip-address=192.168.100.1
#chap-secrets=/etc/ppp/chap-secrets
#encrypted=0
#username-hash=md5

[shaper]
#attr=Filter-Id
#down-burst-factor=0.1
#up-burst-factor=1.0
#latency=50
#mpu=0
#mtu=0
#r2q=10
#quantum=1500
#moderate-quantum=1
#cburst=1534
#ifb=ifb0
#up-limiter=police
#down-limiter=tbf
#leaf-qdisc=sfq perturb 10
#leaf-qdisc=fq_codel [limit PACKETS] [flows NUMBER] [target TIME] [interval TIME] [quantum BYTES] [[no]ecn]
#rate-multiplier=1
#fwmark=1
#verbose=1

[cli]
verbose=1
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001
#password=123
sessions-columns=ifname,username,ip,ip6,ip6-dp,type,state,uptime,uptime-raw,calling-sid,called-sid,sid,comp,rx-bytes,tx-bytes,rx-bytes-raw,tx-bytes-raw,rx-pkts,tx-pkts

[snmp]
master=0
agent-name=accel-ppp

[connlimit]
limit=10/min
burst=3
timeout=60

[ipv6-pool]
#gw-ip6-address=fc00:0:1::1
fc00:0:1::/48,64
delegate=fc00:1::/36,48

[ipv6-dns]
#fc00:1::1
#fc00:1::2
#fc00:1::3
#dnssl=suffix1.local.net
#dnssl=suffix2.local.net.

[ipv6-dhcp]
verbose=1
pref-lifetime=604800
valid-lifetime=2592000
route-via-gw=1

###########################

and have problem with ippool
from log:
[2019-01-08 14:41:15.972] ippool: 10.10.150.1/24,name=pppoe,next=pppoe2: next pool not found
and
ppp: no free IPv4 address
when ip address from first pool is finish
and this version accel-cmd 2910add2238d419ad82e43f3ebf1fb8d5708e13b
?

Re: next pool not found

Posted: 10 Jan 2019, 07:08
by nik247
From docs:

Code: Select all

next pool must be defined before being referenced
Try change from:

Code: Select all

10.10.150.1/24,name=pppoe,next=pppoe2
10.10.151.1/24,name=pppoe2
to:

Code: Select all

10.10.151.1/24,name=pppoe2
10.10.150.1/24,name=pppoe,next=pppoe2

Re: next pool not found

Posted: 10 Jan 2019, 13:07
by villagenet
Hi , it works !
i have another question for backup radius server? How to configure it?
Merci!

Re: next pool not found

Posted: 10 Jan 2019, 16:42
by dimka88
villagenet wrote: 10 Jan 2019, 13:07 i have another question for backup radius server? How to configure it?
Hi, https://accel-ppp.org/accel-ppp.conf.html
server=address,secret[,auth-port=1812][,acct-port=1813][,req-limit=0][,fail-timeout=0,max-fail=0,][,weight=1][,backup]
Specifies IP address, secret, ports of RADIUS server.
req-limit - number of simultaneous requests to server (0 - unlimited).
fail-time - if server doesn't responds mark it as unavailable for this time (sec).
max-fail - number of unreplied requests in a row after that mark server as unavailable.
weight - specifies weight of server for multi-server configuration.
backup - mark server as backup server f.e. use this server only when all other servers are failed.
If you want to specify only authentication or accounting server then set auth-port/acct-port to zero. You may specify multiple radius servers.

Code: Select all

[radius]
server=10.0.0.1,secret,auth-port=1812,acct-port=1813,req-limit=0,fail-timeout=3,max-fail=5
server=10.0.0.2,secret,auth-port=1812,acct-port=1813,req-limit=0,fail-timeout=0,max-fail=0,backup
after 5 (max-fail) and fail-timeout = 3 (5*3) main server mark as fail and activate backup server.

Re: next pool not found

Posted: 18 Jan 2019, 16:23
by villagenet
Hi
works all .Tnx about the answers. I have PPPoe server with dinamic ip adresses. How can I make every user graphic in case they use dinamic Ip adresses? is it possible?Do you have any scripts?

Re: next pool not found

Posted: 22 Jan 2019, 08:26
by dimka88
Hi, meny accel-ppp users parse output of command accel-cmd show sessions with zabbix-agent and create graphs with zabbix system.
Output of command accel-cmd show sessions support next argumens in config accel-ppp and confirm on accel-cmd reload without daemon restart

Code: Select all

[cli]
verbose=1
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001
sessions-columns=ifname,username,ip,ip6,ip6-dp,type,state,uptime,uptime-raw,calling-sid,called-sid,sid,comp,rx-bytes,tx-bytes,rx-bytes-raw,tx-bytes-raw,rx-pkts,tx-pkts

Re: next pool not found

Posted: 07 Feb 2019, 12:01
by villagenet
hi I installed zabbix-server and zabbix-agent but zabbix is the complex system, and not have teplates for captures trafik for all pppoe user. Do you have script or templates?

Re: next pool not found

Posted: 07 Feb 2019, 13:09
by djan

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>4.0</version>
    <date>2019-02-07T13:02:37Z</date>
    <groups>
        <group>
            <name>BNG</name>
        </group>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Accel IPoE</template>
            <name>Accel</name>
            <description/>
            <groups>
                <group>
                    <name>BNG</name>
                </group>
                <group>
                    <name>Templates</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Accel</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>Accel Online Users</name>
                    <type>7</type>
                    <snmp_community/>
                    <snmp_oid/>
                    <key>accel.onlineusers</key>
                    <delay>1m</delay>
                    <history>90d</history>
                    <trends>365d</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts/>
                    <units>Users</units>
                    <snmpv3_contextname/>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authprotocol>0</snmpv3_authprotocol>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privprotocol>0</snmpv3_privprotocol>
                    <snmpv3_privpassphrase/>
                    <params/>
                    <ipmi_sensor/>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description/>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Accel</name>
                        </application>
                    </applications>
                    <valuemap/>
                    <logtimefmt/>
                    <preprocessing/>
                    <jmx_endpoint/>
                    <timeout>3s</timeout>
                    <url/>
                    <query_fields/>
                    <posts/>
                    <status_codes>200</status_codes>
                    <follow_redirects>1</follow_redirects>
                    <post_type>0</post_type>
                    <http_proxy/>
                    <headers/>
                    <retrieve_mode>0</retrieve_mode>
                    <request_method>1</request_method>
                    <output_format>0</output_format>
                    <allow_traps>0</allow_traps>
                    <ssl_cert_file/>
                    <ssl_key_file/>
                    <ssl_key_password/>
                    <verify_peer>0</verify_peer>
                    <verify_host>0</verify_host>
                    <master_item/>
                </item>
                <item>
                    <name>Accel Start Sessions</name>
                    <type>7</type>
                    <snmp_community/>
                    <snmp_oid/>
                    <key>accel.startsessions</key>
                    <delay>1m</delay>
                    <history>1w</history>
                    <trends>365d</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts/>
                    <units>Sessions</units>
                    <snmpv3_contextname/>
                    <snmpv3_securityname/>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authprotocol>0</snmpv3_authprotocol>
                    <snmpv3_authpassphrase/>
                    <snmpv3_privprotocol>0</snmpv3_privprotocol>
                    <snmpv3_privpassphrase/>
                    <params/>
                    <ipmi_sensor/>
                    <authtype>0</authtype>
                    <username/>
                    <password/>
                    <publickey/>
                    <privatekey/>
                    <port/>
                    <description/>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>Accel</name>
                        </application>
                    </applications>
                    <valuemap/>
                    <logtimefmt/>
                    <preprocessing/>
                    <jmx_endpoint/>
                    <timeout>3s</timeout>
                    <url/>
                    <query_fields/>
                    <posts/>
                    <status_codes>200</status_codes>
                    <follow_redirects>1</follow_redirects>
                    <post_type>0</post_type>
                    <http_proxy/>
                    <headers/>
                    <retrieve_mode>0</retrieve_mode>
                    <request_method>1</request_method>
                    <output_format>0</output_format>
                    <allow_traps>0</allow_traps>
                    <ssl_cert_file/>
                    <ssl_key_file/>
                    <ssl_key_password/>
                    <verify_peer>0</verify_peer>
                    <verify_host>0</verify_host>
                    <master_item/>
                </item>
            </items>
            <discovery_rules/>
            <httptests/>
            <macros/>
            <templates/>
            <screens/>
        </template>
    </templates>
    <graphs>
        <graph>
            <name>Accel Online Users</name>
            <width>900</width>
            <height>200</height>
            <yaxismin>0.0000</yaxismin>
            <yaxismax>100.0000</yaxismax>
            <show_work_period>1</show_work_period>
            <show_triggers>1</show_triggers>
            <type>0</type>
            <show_legend>1</show_legend>
            <show_3d>0</show_3d>
            <percent_left>0.0000</percent_left>
            <percent_right>0.0000</percent_right>
            <ymin_type_1>0</ymin_type_1>
            <ymax_type_1>0</ymax_type_1>
            <ymin_item_1>0</ymin_item_1>
            <ymax_item_1>0</ymax_item_1>
            <graph_items>
                <graph_item>
                    <sortorder>0</sortorder>
                    <drawtype>5</drawtype>
                    <color>FF6F00</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Accel IPoE</host>
                        <key>accel.onlineusers</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>Accel Start Sessions</name>
            <width>900</width>
            <height>200</height>
            <yaxismin>0.0000</yaxismin>
            <yaxismax>100.0000</yaxismax>
            <show_work_period>1</show_work_period>
            <show_triggers>1</show_triggers>
            <type>0</type>
            <show_legend>1</show_legend>
            <show_3d>0</show_3d>
            <percent_left>0.0000</percent_left>
            <percent_right>0.0000</percent_right>
            <ymin_type_1>0</ymin_type_1>
            <ymax_type_1>0</ymax_type_1>
            <ymin_item_1>0</ymin_item_1>
            <ymax_item_1>0</ymax_item_1>
            <graph_items>
                <graph_item>
                    <sortorder>0</sortorder>
                    <drawtype>5</drawtype>
                    <color>FFA000</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Accel IPoE</host>
                        <key>accel.startsessions</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>


and two keys for userparameter.cnf, but I have ipoe you have to fix for yourself (pppoe)
UserParameter=accel.startsessions,/usr/local/bin/accel-cmd show stat | grep -A 4 "ipoe" | sed -e '/ipoe/d' -e '/active/d' -e '/delayed/d' -e 's/ starting: //g'
UserParameter=accel.onlineusers,/usr/local/bin/accel-cmd show stat | grep -A 4 "ipoe" | sed -e '/ipoe/d' -e '/starting/d' -e '/delayed/d' -e 's/ active: //g'