Page MenuHomeVyOS Platform

Add an option to start sessions with an unclassified packet to IPoE server
Closed, ResolvedPublicFEATURE REQUEST

Description

IPoE-server add the ability to start a session with an unclassified packet.
Currently, the session can be started only by DHCP packet start=dhcpv4
https://github.com/vyos/vyos-1x/blob/df0ef8a25f8f431ed9216b307f817a25d280acd8/data/templates/accel-ppp/ipoe.config.j2#L58

Needs to add start=up option
For sessions, start with the unclassified packet (start=up); the username is the client's IP address.

start=dhcpv4|up|auto

    By default is not defined. Important to set this.
    Parameter specifies which way session starts:

        dhcpv4 - start on DHCP Discover.
        up - unclassified packet.
        auto - means automatically start session with username=interface name. Use it with conjunction vlan_mon.

Proposed CLI:

set service ipoe-server interface eth1 start-session <dhcpv4|unclassified-packet>

Details

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

Event Timeline

Viacheslav triaged this task as Normal priority.
Viacheslav changed the task status from Open to In progress.Nov 22 2024, 11:32 AM
Viacheslav claimed this task.

PR https://github.com/vyos/vyos-1x/pull/4206

set service ipoe-server authentication mode 'radius'
set service ipoe-server authentication radius server 127.0.0.1 key 'vyos-secret'
set service ipoe-server client-ip-pool POOL range '100.64.0.0/22'
set service ipoe-server gateway-address '100.64.0.1/22'
set service ipoe-server interface eth1 mode 'l2'
set service ipoe-server interface eth1 network 'shared'
set service ipoe-server interface eth1 start-session 'unclassified-packet'
set service ipoe-server name-server '1.1.1.1'
set service ipoe-server name-server '8.8.8.8'

Check config:

vyos@r14:~$ cat /run/accel-pppd/ipoe.conf | grep interface
interface=eth1,shared=1,mode=L2,ifcfg=1,start=up,ipv6=1
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin moved this task from Backlog to Finished on the VyOS 1.4 Sagitta (1.4.2) board.
dmbaturin moved this task from Backport Candidates to Completed on the VyOS Rolling board.
dmbaturin renamed this task from IPoE-server add the ability to start a session with unclassified packet to Add an option to start sessions with an unclassified packet to IPoE server.Mar 12 2025, 4:46 PM