Search found 15 matches

by rodrigoselau
25 Mar 2020, 13:46
Forum: IPoE
Topic: accel-ppp not working lua file
Replies: 1
Views: 120

accel-ppp not working lua file

Good morning, I have a problem with my accel-ppp, with ipoe authentication. Instead of using my lua file, it is sending the interface name. could they help me? lua file: function username(pkt) acid=pkt:agent_circuit_id() modAcid=string.gsub(acid, "-", "") return modAcid end Accel-ppp.log: [2020-03-2...
by rodrigoselau
06 Feb 2019, 17:07
Forum: IPoE
Topic: Accel-ppp not load file lua
Replies: 3
Views: 485

Re: Accel-ppp not load file lua

[ipoe] verbose=5 unit-cache=0 username=lua:username lua-file=/etc/accel-ppp.lua max-lease-time=120 lease-time=300 renew-time=300 attr-dhcp-client-ip=DHCP-Client-IP-Address attr-dhcp-router-ip=DHCP-Router-IP-Address gw-ip-address=172.19.2.62 proxy-arp=1 #interface=re:eth0\.1310\.([1-9]|[1-9][0-9][0-...
by rodrigoselau
06 Feb 2019, 14:33
Forum: IPoE
Topic: Accel-ppp not load file lua
Replies: 3
Views: 485

Accel-ppp not load file lua

Hello,
I have the following problem at the time of loading the lua ... file in the log emerg.log displays the following error

ipoe: unknown username value 'lua:username'



Thanks in advance.
Rodrigo
by rodrigoselau
07 Dec 2018, 14:43
Forum: IPoE
Topic: LUA in IPOE
Replies: 8
Views: 974

Re: LUA in IPOE

Thanks that worked
by rodrigoselau
07 Dec 2018, 12:59
Forum: IPoE
Topic: LUA in IPOE
Replies: 8
Views: 974

Re: LUA in IPOE

My log accel-ppp [2018-12-07 10:55:41]: info: IPoE-826: send [RADIUS(1) Accounting-Request id=1 <User-Name "13/2/FHTT06ef7e10"> <NAS-Identifier "IPoE"> <NAS-IP-Address 172.19.2.22> <NAS-Port 2002> <NAS-Port-Id "IPoE-826"> <NAS-Port-Type Ethernet> <Calling-Station-Id "18:0d:2c:18:6c:11"> <Called-Stat...
by rodrigoselau
07 Dec 2018, 12:43
Forum: IPoE
Topic: LUA in IPOE
Replies: 8
Views: 974

Re: LUA in IPOE

What would this script do? function username(pkt) acid=pkt:agent_circuit_id() if(string.sub(acid, 5, 5) ~= "-") then modAcid1=string.gsub(acid, "(FHTT)", "%1-") return modAcid1 elseif(string.sub(acid, 5, 5) ~= "-") then modAcid2=string.gsub(acid, "(FHTT-)", "%1-") return modAcid2 elseif(string.sub(a...
by rodrigoselau
07 Dec 2018, 11:47
Forum: IPoE
Topic: LUA in IPOE
Replies: 8
Views: 974

Re: LUA in IPOE

in some worked others not ... I think it's because my circuit id is olt card number / port number olt / serial onu for example I have two scenarios ... 14/2 / FHTT-XXXXX and 13/16 / PRKS- XXXXX
by rodrigoselau
06 Dec 2018, 18:51
Forum: IPoE
Topic: LUA in IPOE
Replies: 8
Views: 974

Re: LUA in IPOE

my accel-ppp.lua file:


function username(pkt)
return pkt:agent_circuit_id('')
end
by rodrigoselau
06 Dec 2018, 18:50
Forum: IPoE
Topic: LUA in IPOE
Replies: 8
Views: 974

LUA in IPOE

good afternoon guys, I'm facing a little problem,
Some onu'ssend their serial with the following format FHTT-XXXXXX and others send without the "-" ... would like to always send them with the "-" in the file lua, would have perform?
by rodrigoselau
03 Dec 2018, 18:09
Forum: Shaper
Topic: Accel-ipoe Upload Problem
Replies: 4
Views: 439

Re: Accel-ipoe Upload Problem

Many thanks friend, it worked perfectly here for me: D