<feed xmlns='http://www.w3.org/2005/Atom'>
<title>accel-ppp.git/accel-pppd/radius/packet.c, branch marekm72-patch-1-printf-h</title>
<subtitle>High performance PPTP/L2TP/SSTP/PPPoE/IPoE server for Linux (mirror of https://github.com/marekm72/accel-ppp.git)
</subtitle>
<id>https://git.amelek.net/marekm72/accel-ppp.git/atom?h=marekm72-patch-1-printf-h</id>
<link rel='self' href='https://git.amelek.net/marekm72/accel-ppp.git/atom?h=marekm72-patch-1-printf-h'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/'/>
<updated>2025-11-28T06:39:54+00:00</updated>
<entry>
<title>Merge pull request #267 from nuclearcat/fix-ssl-warnings</title>
<updated>2025-11-28T06:39:54+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>denys.f@collabora.com</email>
</author>
<published>2025-11-28T06:39:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=ac31c84a36c069c90e37ab28a9e980c0749b2b37'/>
<id>urn:sha1:ac31c84a36c069c90e37ab28a9e980c0749b2b37</id>
<content type='text'>
Suppress OpenSSL 3.0 deprecation warnings for legacy crypto APIs</content>
</entry>
<entry>
<title>fixup! Add RADIUS blast attack protection with Message-Authenticator</title>
<updated>2025-11-26T18:29:52+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>denys.f@collabora.com</email>
</author>
<published>2025-11-26T18:28:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=92110f9f3c9473de3d32bdc6202abb47315d41e7'/>
<id>urn:sha1:92110f9f3c9473de3d32bdc6202abb47315d41e7</id>
<content type='text'>
Not a bug, but to supress warnings.

Signed-off-by: Denys Fedoryshchenko &lt;denys.f@collabora.com&gt;
</content>
</entry>
<entry>
<title>Suppress OpenSSL 3.0 deprecation warnings for legacy crypto APIs</title>
<updated>2025-11-26T18:23:38+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>denys.f@collabora.com</email>
</author>
<published>2025-11-26T18:22:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=f03dc39ae891d20e56d7acd764a9b5764a8a2fef'/>
<id>urn:sha1:f03dc39ae891d20e56d7acd764a9b5764a8a2fef</id>
<content type='text'>
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 &lt;denys.f@collabora.com&gt;
</content>
</entry>
<entry>
<title>Add RADIUS blast attack protection with Message-Authenticator</title>
<updated>2025-07-01T11:32:13+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>denys.f@collabora.com</email>
</author>
<published>2025-06-25T19:31:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=1ce263f13ac0b3aed3b14b4a9bb6a51afe210684'/>
<id>urn:sha1:1ce263f13ac0b3aed3b14b4a9bb6a51afe210684</id>
<content type='text'>
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 &lt;denys.f@collabora.com&gt;
</content>
</entry>
<entry>
<title>build: fix compile errors on GCC 14</title>
<updated>2024-08-27T22:41:58+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2024-08-27T21:44:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=966c2bc8df039c67f4711ba9bb3f267fbd405c8d'/>
<id>urn:sha1:966c2bc8df039c67f4711ba9bb3f267fbd405c8d</id>
<content type='text'>
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-&gt;buf, REQ_LENGTH_MAX, 0, addr, &amp;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
</content>
</entry>
<entry>
<title>fix buffer overflow when receive radius packet</title>
<updated>2021-12-29T06:54:13+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2021-12-29T06:54:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=d4cb89721cc8e5b3dd3fbefaf173eb77ecb85615'/>
<id>urn:sha1:d4cb89721cc8e5b3dd3fbefaf173eb77ecb85615</id>
<content type='text'>
This patch fixes buffer overflow if radius packet contains invalid atribute length
and attrubute type from the following list: ipv4addr, ipv6addr, ipv6prefix or ifid

Reported-by: Chloe Ong
Reported-by: Eugene Lim &lt;spaceraccoon@users.noreply.github.com&gt;
Reported-by: Kar Wei Loh

Signed-off-by: Sergey V. Lobanov &lt;sergey@lobanov.in&gt;
</content>
</entry>
<entry>
<title>radius: sanity check for vendor attribute length</title>
<updated>2020-10-21T09:40:26+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2020-10-21T09:40:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=e9d369aa0054312b7633e964e9f7eb323f1f3d69'/>
<id>urn:sha1:e9d369aa0054312b7633e964e9f7eb323f1f3d69</id>
<content type='text'>
</content>
</entry>
<entry>
<title>radius: initialize rad_attr_t::raw field on newly inserted attributes</title>
<updated>2018-04-12T15:26:55+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2018-04-12T15:26:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=1eaf9b4fc806c233e66a86e80705e1e580029599'/>
<id>urn:sha1:1eaf9b4fc806c233e66a86e80705e1e580029599</id>
<content type='text'>
</content>
</entry>
<entry>
<title>radius: allow CoA/DM by single username attribute</title>
<updated>2018-04-06T18:04:36+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2018-04-06T18:04:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=b9c3e454c13baba224cab6644827fa2f11edddbe'/>
<id>urn:sha1:b9c3e454c13baba224cab6644827fa2f11edddbe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>radius: allocate memory for string attributes</title>
<updated>2017-12-21T12:37:52+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2017-12-21T12:37:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=2e06c8c9278ab283907f3bb9d1fa28c5edb5f1e4'/>
<id>urn:sha1:2e06c8c9278ab283907f3bb9d1fa28c5edb5f1e4</id>
<content type='text'>
</content>
</entry>
</feed>
