PPPoE server ------------ VyOS utilizes `accel-ppp`_ to provide PPPoE server functionality. It can be used with local authentication or a connected RADIUS server. .. note:: Please be aware, due to an upstream bug, config changes/commits will restart the ppp daemon and will reset existing PPPoE connections from connected users, in order to become effective.** Configuration ^^^^^^^^^^^^^ The example below uses ACN as access-concentrator name, assigns an address from the pool 10.1.1.100-111, terminates at the local endpoint 10.1.1.1 and serves requests only on eth1. .. code-block:: sh set service pppoe-server access-concentrator 'ACN' set service pppoe-server authentication local-users username foo password 'bar' set service pppoe-server authentication mode 'local' set service pppoe-server client-ip-pool start '10.1.1.100' set service pppoe-server client-ip-pool stop '10.1.1.111' set service pppoe-server dns-servers server-1 '10.100.100.1' set service pppoe-server dns-servers server-2 '10.100.200.1' set service pppoe-server interface 'eth1' set service pppoe-server local-ip '10.1.1.2' Connections can be locally checked via the command .. code-block:: sh show pppoe-server sessions ifname | username | ip | calling-sid | rate-limit | state | uptime | rx-bytes | tx-bytes -------+----------+------------+-------------------+-------------+--------+----------+----------+---------- ppp0 | foo | 10.1.1.100 | 08:00:27:ba:db:15 | 20480/10240 | active | 00:00:11 | 214 B | 76 B To use a radius server, you need to switch to authentication mode radius and of course need to specify an IP for the server. You can have multiple RADIUS server configured, if you wish to achieve redundancy. .. code-block:: sh set service pppoe-server access-concentrator 'ACN' set service pppoe-server authentication mode 'radius' set service pppoe-server authentication radius-server 10.1.100.1 secret 'secret' set service pppoe-server interface 'eth1' set service pppoe-server local-ip '10.1.1.2' RADIUS provides the IP addresses in the example above via Framed-IP-Address. Bandwidth Shaping ================= Bandwidth rate limits can be set for local users or RADIUS based attributes. Local user setup ================ The rate-limit is set in kbit/sec. .. code-block:: sh set service pppoe-server access-concentrator 'ACN' set service pppoe-server authentication local-users username foo password 'bar' set service pppoe-server authentication local-users username foo rate-limit download '20480' set service pppoe-server authentication local-users username foo rate-limit upload '10240' set service pppoe-server authentication mode 'local' set service pppoe-server client-ip-pool start '10.1.1.100' set service pppoe-server client-ip-pool stop '10.1.1.111' set service pppoe-server dns-servers server-1 '10.100.100.1' set service pppoe-server dns-servers server-2 '10.100.200.1' set service pppoe-server interface 'eth1' set service pppoe-server local-ip '10.1.1.2' Once the user is connected, the user session is using the set limits and can be displayed via 'show pppoe-server sessions'. .. code-block:: sh show pppoe-server sessions ifname | username | ip | calling-sid | rate-limit | state | uptime | rx-bytes | tx-bytes -------+----------+------------+-------------------+-------------+--------+----------+----------+---------- ppp0 | foo | 10.1.1.100 | 08:00:27:ba:db:15 | 20480/10240 | active | 00:00:11 | 214 B | 76 B RADIUS shaper setup =================== The current attribute 'Filter-Id' is being used as default and can be setup within RADIUS: Filter-Id=2000/3000 (means 2000Kbit down-stream rate and 3000Kbit up-stream rate) The command below enables it, assuming the RADIUS connection has been setup and is working. .. code-block:: sh set service pppoe-server authentication radius-settings rate-limit enable Other attributes can be used, but they have to be in one of the dictionaries in /usr/share/accel-ppp/radius. .. _`accel-ppp`: https://accel-ppp.org/