Page MenuHomeVyOS Platform

IPoE-server add the ability to configure Lua scripts for username mapping
Closed, ResolvedPublicFEATURE REQUEST

Description

IPoE-server add the ability to configure LUA scripts and username

[ipoe]
lua-file=/config/accel-ppp/ipoe.lua
interface=eth1,shared=1,mode=L2,ifcfg=1,start=dhcpv4,ipv6=1,username=lua:username_func

Allow to add configuration path to the LUA script

Example of the lua file:

#!lua
  function username_func(pkt)
    local username=pkt:hwaddr()
    return username
end

Proposed CLI:

set service ipoe-server lua-file <path_to_lua_file>
set service ipoe-server interface eth1 lua-username <username_func>

https://docs.accel-ppp.org/examples/lua_examples.html

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

Viacheslav triaged this task as Normal priority.
natali-rs1985 changed the task status from Open to In progress.Nov 13 2024, 2:15 PM
natali-rs1985 claimed this task.
dmbaturin renamed this task from IPoE-server add the ability to configure LUA scripts and username to IPoE-server add the ability to configure Lua scripts for username mapping.Wed, Mar 12, 3:30 PM
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.