summaryrefslogtreecommitdiff
path: root/accel-pppd
AgeCommit message (Collapse)Author
2025-11-26docs: Improve ippool documentationDenys Fedoryshchenko
Improve ippool documentation based on users feedback. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-23Remove unused definition/struct and functionDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-23mempool: Fix 32-bit statsDenys Fedoryshchenko
We are living in 64-bit world long time, so there is very likely mempool stats might overflow past 4GB and report incorrect values. Updated mempool stats to use 64-bit counters so they don’t wrap past 4 GB and print correctly in CLI. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-23docs: Update accel-ppp.conf about certificate configurationDenys Fedoryshchenko
This is follow-up for https://github.com/accel-ppp/accel-ppp/pull/238 Adding missing documentation update. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-23Merge pull request #238 from socketpair/chainDenys Fedoryshchenko
SSTP: load certificate chain instead of single one
2025-11-23pppoe: add missing break, ignore vendor-specific tags when parsing PADRDenys Fedoryshchenko
Added an explicit break after handling TAG_VENDOR_SPECIFIC, so vendor-specific PADR tags (e.g., TR-101) no longer fall through and get misinterpreted as other tags like TAG_PPP_MAX_PAYLOAD. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-08-19ci: add tests execution with asan and ubsanSergey V. Lobanov
2025-08-08Merge pull request #252 from nuclearcat/fix-musl-linkingDenys Fedoryshchenko
feat(build): Add MUSL detection and conditional linking
2025-08-08Merge pull request #251 from nuclearcat/add-ippool-statsDenys Fedoryshchenko
cmd: implement show ippool command
2025-08-07feat(build): Add MUSL detection and conditional linkingDenys Fedoryshchenko
This commit introduces the ability to detect if the project is being built with the MUSL C library. A new variable `MUSL` is set to `ON` if MUSL is detected, and `OFF` otherwise. This is achieved by checking the output of `ldd --version`. The `accel-pppd/ctrl/pppoe/CMakeLists.txt` file is updated to conditionally link the `connlimit` library only when building with MUSL. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-08-07ipoe: dhcp: Fix username for noauth sessionDmitriy Eshenko
2025-08-07cmd: implement show ippool commandDenys Fedoryshchenko
Command Usage: accel-ppp# show ippool IP Pool Usage Report ==================== <default> total: 16384 used: 0 available: 16384 usage: 0% Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-07-01Add RADIUS blast attack protection with Message-AuthenticatorDenys Fedoryshchenko
Recently FreeRadius started to complain accel-ppp doesn't pass BlastRADIUS check. This commit fixes that. This commit implements protection against RADIUS blast attacks by adding support for the Message-Authenticator attribute in Access-Request packets. This security enhancement helps prevent unauthorized access attempts and replay attacks on RADIUS authentication. - Added new configuration option `blast-protection=1` in [radius] to enable Message-Authenticator inclusion - Implemented HMAC-MD5 calculation for Message-Authenticator attribute (RFC 2869) - Modified packet building to include 18-byte Message-Authenticator attribute when enabled - Updated packet structure to support signing with shared secret Enable blast protection by adding to the `[radius]` section: ``` blast-protection=1 ``` When enabled, all Access-Request packets will include a Message-Authenticator attribute with HMAC-MD5 signature, providing cryptographic integrity verification and protection against packet modification attacks. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-05-02SSTP: load certificate chain instead of single oneКоренберг ☢️ Марк
2025-01-22ipoe: fixed DHCP option 42 (ntp servers)aapostoliuk
Allowed using multiple NTP servers in DHCP option 42
2025-01-09Merge pull request #225 from ykholod/l2tp-include-calling-numberSergey V. Lobanov
L2TP include calling number to calling station ID RA
2024-12-12ipv6: Add DHCPv6 Confirm processingDmitriy Eshenko
2024-12-05L2TP include calling number to calling station ID RAYaroslav Kholod
2024-11-15Fix post_msg implementation buggrandnew
I think the error handling code of `post_msg` is wrongly implemented due to coding typo. The `EPIPE` should be also considered and then return -1, just like `PPTP_write`: https://github.com/xebd/accel-ppp/blob/1b8711cf75a7c278d99840112bc7a396398e0205/accel-pppd/ctrl/pptp/pptp.c#L539-L570
2024-10-26Merge pull request #185 from svlobanov/pcre2-1Denys Fedoryshchenko
migrate from pcre to pcre2
2024-10-23Merge pull request #188 from svlobanov/entwareDenys Fedoryshchenko
build: fix build for entware (HAVE_GOOD_IFARP detection issue)
2024-10-04Merge pull request #171 from ZBoris7/masterDmitriy Eshenko
pppd_compat: add Framed-Interface-Id attribute support in radattr
2024-10-04Merge pull request #183 from svlobanov/gcc14-compile-errorsDenys Fedoryshchenko
build: fix compile errors on GCC 14
2024-10-04fix(ppp_lcp): truncate echo reply if size > client MRUachillelamb
Fix issue #204 Proposed by https://github.com/achillelamb
2024-09-11Merge pull request #195 from nuclearcat/fix-typo-freeDenys Fedoryshchenko
fix(musl/l2tp_session_free): Fix, likely typo
2024-09-11fix(musl/l2tp_session_free): Fix, likely typoDenys Fedoryshchenko
It is logical, that function should remain same, not changed to free. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2024-09-05Revert "Fix #189: Make module pppoe work without module radius"Sergey V. Lobanov
This reverts commit 543700aed1ac045f12dfafd898bbbbae955fee31.
2024-09-04Fix #189: Make module pppoe work without module radiusNazar Androshchuk
The radius library is now linked in pppoe if `-DRADIUS` is true; it wasn't any issue when `-DRADIUS=FALSE`. This patch can't be worked around if the user wants to use pppoe with chap-secrets, because radius conflicts with chap-secrets.
2024-09-02build: fix build for entware (HAVE_GOOD_IFARP detection issue)Sergey V. Lobanov
Linux kernel before 4.11 has the issue decribed in the commit: https://github.com/torvalds/linux/commit/2618be7dccf8739b89e1906b64bd8d551af351e6 It fails accel-ppp build on entware. Let's include sys/socket.h to avoid this issue. All files that use linux/if_arp.h includes sys/socket.h before
2024-09-02migrate from pcre to pcre2Sergey V. Lobanov
PCRE is not supported anymore and removed from several distros
2024-09-02Merge pull request #181 from svlobanov/iputils-be-vlan-add-fixDenys Fedoryshchenko
iputils: fix vlan creation on big-endian platforms
2024-09-02Merge pull request #180 from svlobanov/owrt2Denys Fedoryshchenko
fix __WORDSIZE macro on musl 32 bit platforms
2024-09-01pppd_compat: add Framed-Interface-Id attribute support in radattrBoris Zervu
2024-08-27build: fix compile errors on GCC 14Sergey V. Lobanov
This patch fixes compile errors on GCC 14 like the following /root/accel-ppp/accel-pppd/radius/packet.c: In function 'rad_packet_recv': /root/accel-ppp/accel-pppd/radius/packet.c:142:72: error: passing argument 5 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] 142 | n = recvfrom(fd, pack->buf, REQ_LENGTH_MAX, 0, addr, &addr_len); | ^~~~ | | | struct sockaddr_in * In file included from /usr/include/netinet/in.h:10, from /usr/include/arpa/inet.h:9, from /root/accel-ppp/accel-pppd/radius/packet.c:10: /usr/include/sys/socket.h:397:55: note: expected 'struct sockaddr * restrict' but argument is of type 'struct sockaddr_in *' Reference: https://gcc.gnu.org/gcc-14/porting_to.html
2024-08-26iputils: fix vlan creation on big-endian platformsSergey V. Lobanov
2024-08-25fix __WORDSIZE macro on musl 32 bit platformsSergey V. Lobanov
This patch allows to build accel-ppp on mips32/ppc32 openwrt (musl)
2024-08-23ci: run tests in alpine vmSergey V. Lobanov
Alpine Linux uses musl libc so now accel-ppp is tested under musl Currently, Alpine Linux doesn't provide a link to the latest stable version so direct link to Alpine 3.20 is used Improved musl support might be used to run on platforms like openwrt without additional patches
2024-08-19tests: add pcre negative cases, improve pcre-related code test coverageSergey V. Lobanov
these test cases will help for pcre2 migration (issue #173)
2024-08-18Merge pull request #163 from dpokrovsky/http-error-fixDenys Fedoryshchenko
Fixes the issue #124 "HTTP replay for non SSTP query" and log_debug2 in Triton lib
2024-07-28Fix issue #131, pptp doesnt work without connlimitDenys Fedoryshchenko
Fix issue https://github.com/accel-ppp/accel-ppp/issues/131 Proposed by https://github.com/kugel- Author: Thomas Martitz <kugel@rockbox.org> Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2024-06-14Fixes the issue #124 "HTTP replay for non SSTP query"Dmitry Pokrovsky
2024-06-14Fixes the issue #124 "HTTP replay for non SSTP query"Dmitry Pokrovsky
2024-06-14Revert "1. Fixes the issue #124 "HTTP replay for non SSTP query""Dmitry Pokrovsky
This reverts commit 635ab1b77b06a8891479a46a0e1ba88315ff3958.
2024-06-121. Fixes the issue #124 "HTTP replay for non SSTP query"Dmitry Pokrovsky
2. Fixes log_debug2 in Triton lib
2024-06-01shaper: fix tbf leaf-qdiscSergey V. Lobanov
bad commit: bc85fe18e6066814d95d1bdc1a3dfe8cc8f9786f Reported-By: StasN77 <stasn77@gmail.com> Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2024-05-26shaper: add leaf-qdisc support for tbf rate-limiterSergey V. Lobanov
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2024-05-05ipv6_dhcp: Add RFC6334 AFTR-Name option supportLuiz Amaral
2024-04-29snmp: fix compatibility with net-snmp 5.9.4+ (issue #136)Sergey V. Lobanov
related net-snmp change: https://github.com/net-snmp/net-snmp/commit/a2cb167514ac0c7e1b04e8f151e0b015501362e0 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2024-04-28Merge pull request #138 from stasn77/upstreamDenys Fedoryshchenko
clsact + fwmark
2024-04-27clsact + fwmarkStasN77