summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-07Merge pull request #126 from stetsyuk/masterxebd
Fix radius Framed-IP-Address
2020-04-06pptp: T6: Check timer before modifyDmitriyEshenko
2020-04-02Fix radius Framed-IP-Addressstetsyuk
Add htonl to check if Framed-IP-Address==0xFFFFFFFE Ignore 0xFFFFFFFE as Framed-IP-Address in DM/CoA requests
2020-03-26Fix accel-cmd compile problem on Raspbian BusterBen Hardill
With GCC v8.x on Raspbian Buster the following warning is shown at compile time: ... [ 99%] Building C object accel-cmd/CMakeFiles/accel-cmd.dir/accel_cmd.c.o /home/pi/accel-ppp/accel-cmd/accel_cmd.c: In function ‘main’: /home/pi/accel-ppp/accel-cmd/accel_cmd.c:652:29: warning: comparison is always true due to limited range of data type [-Wtype-limits] long_opts, &oindx)) != -1) { ^~ [100%] Linking C executable accel-cmd [100%] Built target accel-cmd This leads to the accel-cmd always just showing the usage instructions rather than executing any commands. This is because ochar is declared as a char rather than an int so is considered to be unsigned by default. The man page says the return value should be an int. https://linux.die.net/man/3/getopt_long
2020-03-22Merge pull request #1 from c-po/version-number-improvementsEshenko Dmitriy
Version number improvements
2020-03-22CMake: use 'git describe' over 'git log' to obtain version numberChristian Poessinger
This is more efficient as its a Git build in function. If build from a non tagged commit, the version number will be extended by the "git describe" way: $ dpkg -I accel-ppp/build/_CPack_Packages/Linux/DEB/accel-ppp.deb | grep Vers Version: 1.12.0-53-g7afe0f0 The version indicator shows that the last Accel-PPP release was 1.12.0 (which was tagged) and we are now 53 commits past the 1.12.0 tag. The current commit id is 7afe0f0 (short form). After installation the Debian package database will show: $ dpkg -l | grep accel ii accel-ppp 1.12.0-53-g7afe0f0 amd64 PPtP/L2TP/PPPoE/SSTP server for Linux Also the embedded version command will show: $ accel-cmd -p 2005 -V accel-cmd 1.12.0-53-g7afe0f0 Signed-off-by: Christian Poessinger <christian@poessinger.com>
2020-03-22cpack: remove duplicate version number definitionChristian Poessinger
Version number for Accel-PPP is already generated in CMakeLists.txt and thus it should not be manually defined in a second place (cmake/cpack.cmake). Reuse the version number obtained in CMakeLists.txt when building binary packages -> single source. Signed-off-by: Christian Poessinger <christian@poessinger.com>
2020-03-22cpack: add SSTP to package descriptionChristian Poessinger
2020-03-18ppp: reset the ifindex when moving back to the default namespaceSimon Chopin
If you move an interface into a namespace where there is alreay an interface with the same index, the moved interface will get a new index assigned to it. We need to update our data structure accordingly. Signed-off-by: Simon Chopin <s.chopin@alphalink.fr>
2020-03-18ifconfig: reset the ifindex when moving namespacesSimon Chopin
If you move an interface into a namespace where there is alreay an interface with the same index, the moved interface will get a new index assigned to it. We need to update our data structure accordingly. Signed-off-by: Simon Chopin <s.chopin@alphalink.fr>
2020-03-18net: new function get_ifindexSimon Chopin
The index of a given interface is an operation that highly depends on the network namespace we're in. This patch simply cuts out a function to get the index for a given interface name from the session initialization code, and expose it in the ap_net structure. This function can then be used to refresh the index when moving interfaces around. Signed-off-by: Simon Chopin <s.chopin@alphalink.fr>
2020-03-10Merge pull request #121 from themiron/max-starting-cleanupxebd
Add global [common]max-starting option
2020-03-10Merge pull request #117 from themiron/echo-opt82xebd
ipoe: dhcpv4: echo back opt82 if sent by client/relay per rfc3046
2020-03-07sstp: fix max-sessions limit was not appliedVladislav Grishenko
2020-03-07session: add global [common]max-starting optionVladislav Grishenko
usually there's no need to have per-proto limitation, since the need of max starting limitation affects the whole server, not particular protocol only.
2020-03-07Revert "ipoe,pptp: introduced max-starting option (limit number of starting ↵Vladislav Grishenko
sessions)" This reverts commit 02008c74a19c538ff7d9ce643c8cd4c738886196.
2020-03-07Revert "pppoe: introduced max-starting option (limit number of starting ↵Vladislav Grishenko
sessions)" This reverts commit 61862862a9fa24db4f16c24db1aed1f1a5f0be19.
2020-02-17Merge pull request #115 from themiron/ipv6-poolxebd
pptp: add ip-pool & ipv6-pool config exmples
2020-02-17Merge pull request #114 from themiron/dhcp-csum-padxebd
ipoe: dhcp: implement udp csum and padding per rfc1542
2020-02-16ipoe: dhcpv4: echo back opt82 if sent by client/unknown relay per rfc3046Vladislav Grishenko
2020-02-16pptp: add ip-pool & ipv6-pool config exmplesVladislav Grishenko
2020-02-16ipoe: dhcpv4: move relay packet logging after paddingVladislav Grishenko
2020-02-16ipoe: dhcpv4: implement udp csum and padding per rfc1542Vladislav Grishenko
2020-01-28ipoe_mod: set type of IPOE_ATTR_HWADDR to NLA_BINARYDmitry Kozlov
2020-01-23Merge pull request #111 from themiron/interim-jitterxebd
radius: implement jitter of accounting update interval
2020-01-20radius: implement jitter of accounting update intervalVladislav Grishenko
2020-01-13Merge pull request #110 from themiron/ipv6-poolxebd
Add named ipv6 pools support
2020-01-11ipv6pool: add per-proto ipv6-pool and ipv6-pool-delegate optionsVladislav Grishenko
also, disable ipv6 pools via chap-secrets, need to find another syntax for it, may be with comments.
2020-01-10ipv6pool: fix config exmplesVladislav Grishenko
2020-01-10ipv6pool/radius: implement named ipv6 poolsVladislav Grishenko
default stateful ipv6 address & prefix radius attrs are per-rfc6911: 171 Delegated-IPv6-Prefix-Pool 172 Stateful-IPv6-Address-Pool the single pool name from chap-secret file pool is shared for ipv4/ipv6/ipv6 dp, new config syntax TBD. per-proto pool names are still for ipv4 only, new config syntax TBD.
2019-12-24pppoe: introduced max-starting option (limit number of starting sessions)Gavrilenkov A
2019-12-24ipoe,vlan_mon: add support for kernels 5.2+Dmitry Kozlov
2019-12-24triton: small fixesDmitry Kozlov
2019-12-23Merge pull request #108 from DmitriyEshenko/Centos8-cpackxebd
cpack: Add rules and requirements for Centos 8
2019-12-22cpack: Add rules and requirements for Centos 8DmitriyEshenko
2019-12-17Merge pull request #105 from DmitriyEshenko/patch-8xebd
Fix: build for Ubuntu 16, update required packages version
2019-12-09Fix: build for Ubuntu 16, update required packages versionEshenko Dmitriy
2019-11-19Merge pull request #102 from svlobanov/masterxebd
Added single-session-ignore-case option
2019-11-18Merge pull request #103 from themiron/masterxebd
ipv6: dhcpv6: fix pd gateway logging
2019-11-18ipv6: dhcpv6: fix pd gateway loggingVladislav Grishenko
2019-11-10Added single-session-ignore-case optionSergey V. Lobanov
If multisession behavior is managed by accel-ppp and Radius server ignores the case of the User-Name attribute, it might be required to ignore the case in accel-ppp to prevent multiple session with different letter cases.
2019-09-11ipoe: check for ipoe_create_session_dhcpv4 returns not NULLDmitry Kozlov
2019-09-04ipoe,pptp: introduced max-starting option (limit number of starting sessions)Gavrilenkov A
2019-09-02Merge pull request #99 from themiron/radius-user-namexebd
radius: add support for Access-Accept username
2019-08-30radius: dm/coa: add invalid packet loggingVladislav Grishenko
2019-08-29Merge pull request #98 from themiron/check-ip-cleanupxebd
ppp/ipoe: cleanup cleck-ip support
2019-08-29radius: add support for Access-Accept usernameVladislav Grishenko
once radius server has returned User-Name attribute in Access-Accept packet, it'll be used for any subsequent Accounting-Request packets instead of internal username per RFC2865 5.1 other way of just replacing session username is possible, but not desired at the moment due potential issues with single-session modes in case of different ppp logins / ipoe macs and same contract number returned by radius for that accounts.
2019-08-29ppp/ipoe: cleanup cleck-ip supportVladislav Grishenko
let check-ip setting from [ppp]/[ipoe] sections has prio over [common] for compatibility with older configs.
2019-08-28Merge pull request #93 from tugik/patch-1xebd
Added protocol IPoE and SSTP to init.d description
2019-08-28ipv6: implemented DHCPv6 relay supportDmitry Kozlov