summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-12-07Merge pull request #272 from nuclearcat/missing-docs-moreDenys Fedoryshchenko
Missing docs more
2025-12-01radius: Improve documentationDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-12-01ppp: Add missing documentation, improve clarityDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-12-01pppoe: Add missing documentationDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-12-01l2tp: Add missing documentationDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-12-01sstp: Improve documentation about proxy protocolDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-12-01sstp: Update documentation for missing optionsDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-12-01sstp: Add config option enum for better code readabilityDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-30Merge pull request #269 from nuclearcat/fix-buffer-overflowDenys Fedoryshchenko
l2tp: fix buffer overflow and type errors in Calling/Called Number handling
2025-11-30auth_chap_md5: unused variable, mschap_error likely copy paste error, plain ↵Denys Fedoryshchenko
chap dont have errors like mschap Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-28Merge pull request #267 from nuclearcat/fix-ssl-warningsDenys Fedoryshchenko
Suppress OpenSSL 3.0 deprecation warnings for legacy crypto APIs
2025-11-27Merge pull request #268 from nuclearcat/fixup-warningsDenys Fedoryshchenko
fixup! Add RADIUS blast attack protection with Message-Authenticator
2025-11-26l2tp: fix buffer overflow and type errors in Calling/Called Number handlingDenys Fedoryshchenko
Fix issues introduced in 88a2ebdb: - Fix type declaration: uint8_t *calling[254] declared an array of 254 pointers instead of an array of 254 bytes. Remove erroneous asterisks. - Fix buffer overflow vulnerability: L2TP AVP values can be up to 1017 bytes (L2TP_AVP_LEN_MASK - sizeof(avp_header)), but buffers were only 254(*4?) bytes. A malicious packet could cause stack buffer overflow. Use L2TP_AVP_LEN_MASK (1023) for buffer size to handle maximum AVP length. - Remove useless NULL checks: Stack-allocated arrays can never be NULL, causing compiler warnings. The existence check is n > 0 / m > 1. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-26fixup! Add RADIUS blast attack protection with Message-AuthenticatorDenys Fedoryshchenko
Not a bug, but to supress warnings. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-26Suppress OpenSSL 3.0 deprecation warnings for legacy crypto APIsDenys Fedoryshchenko
We are using similar approach as in other projects, easiest one, but probably in future it will break as soon as this functions will be removed completely. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-26Merge pull request #265 from nuclearcat/fix-mempoolDenys Fedoryshchenko
mempool: Fix 32-bit stats
2025-11-26Merge pull request #263 from nuclearcat/raise-cmake-versionDenys Fedoryshchenko
Raised cmake_minimum_required to 3.5
2025-11-26Merge pull request #266 from nuclearcat/docs-ippoolDenys Fedoryshchenko
docs: Improve ippool documentation
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-26Merge pull request #264 from nuclearcat/cert-doc-updateDenys Fedoryshchenko
docs: Update accel-ppp.conf about certificate configuration
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-23Merge pull request #262 from nuclearcat/add-missing-breakDenys Fedoryshchenko
pppoe: add missing break, ignore vendor-specific tags when parsing PADR
2025-11-23README: Update minimal cmake versionDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-23ipoe: Fix flowi4_tos build error on Fedora 6.18Denys Fedoryshchenko
Part of a long-term kernel networking cleanup is the kernel is moving to a strict type called dscp_t. 1)Macros like flowi4_tos are being removed to break compilation of old drivers (like accel-ppp) that treat the field as a raw byte. 2)This forces developers to use the new accessor functions (like ip4_dst_hoplimit or inet_dscp_to_dsfield) ensuring ECN bits are preserved. We need to maintain compatibility with older kernel as well. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-23Add printout of kernel version we are building ipoe forDenys Fedoryshchenko
It should look like: [ 99%] Generating driver/ipoe.ko for kernel $(make -s -C ${KDIR} kernelrelease 2>/dev/null || uname -r)" right before the module build Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-11-23Raised cmake_minimum_required to 3.5 in CMakeLists.txt:1 so the build now ↵Denys Fedoryshchenko
targets CMake 3.5+ and inherits the correct modern policy set Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
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-09-06Merge pull request #256 from svlobanov/asan-ubsanSergey V. Lobanov
ci: add tests execution with asan and ubsan
2025-08-19ci: add tests execution with asan and ubsanSergey V. Lobanov
2025-08-15Merge pull request #255 from svlobanov/debian-forkySergey V. Lobanov
ci: add build in debian:forky container
2025-08-15ci: add build in debian:forky containerSergey 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-07Merge pull request #253 from DmitriyEshenko/fix_ipoe_dhcp_noauth_usernameDenys Fedoryshchenko
ipoe: dhcp: Fix username for noauth session
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-08-05Merge pull request #244 from nuclearcat/blast-protectionDenys Fedoryshchenko
Add RADIUS blast attack protection with Message-Authenticator
2025-07-12Merge pull request #250 from svlobanov/ci-fedora-rawhide-buildDenys Fedoryshchenko
ci: add fedora:rawhide build to build with latest kernel
2025-07-03ci: add fedora:rawhide build to build with latest kernelSergey V. Lobanov
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-06-30Merge pull request #249 from nuclearcat/add-build-fixesDenys Fedoryshchenko
Add build fixes
2025-06-30ipoe: NETIF_F_NETNS_LOCAL got added back, fixDenys Fedoryshchenko
NETIF_F_NETNS_LOCAL existed in <=6.11, then converted to dev->netns_local, and then renamed to netns_immutable in 0c493da86374dffff7505e67289ad75b21f5b301. This commit address this properly. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-06-30ipoe: Fix del_timer / timer_delete renameDenys Fedoryshchenko
del_timer() was renamed to timer_delete() by commit bb663f0f3c396c6d (“timers: Rename del_timer() to timer_delete()”) authored by Thomas Gleixner on 23 Nov 2022, merged via the timers/core branch and included in the Linux 6.2-rc1 merge window; the change therefore reached users with the Linux 6.2 final release on 19 Feb 2023. (The legacy inline wrappers del_timer() / del_timer_sync() stayed in place for compatibility until they were dropped by the tree-wide cleanup commit 8fa7292fee5c on 5 Apr 2025, merged for Linux 6.15-rc1.) Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-06-13Merge pull request #243 from svlobanov/ub20-removeSergey V. Lobanov
ci: remove ubuntu 20 builds due to EOL of Standard Support
2025-06-13ci: remove ubuntu 20 builds due to EOL of Standard SupportSergey V. Lobanov
2025-05-07Merge pull request #239 from nuclearcat/fix-testsSergey V. Lobanov
(workflows): Ubuntu 20.04 is deprecated, removing it