• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Openvpn and cisco-avpair - attributes check

Scheduled Pinned Locked Moved OpenVPN
bugphp error
1 Posts 1 Posters 121 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O
    Olivier_Thibault
    last edited by Olivier_Thibault Feb 7, 2025, 6:03 PM Jan 29, 2025, 8:41 PM

    Hello,

    I am using freeradius to authenticate my users on openvpn.
    I use cisco-avpair to push routes and ACL.
    If the radius reply is more than 4096 bytes, it is truncated (standard behaviour, not a problem).
    It seems there is a problem when the reply is truncated just after the vendor id.
    (last attribute in hexa is : 1a 06 00 00 00 09)
    In this case, pfsense doesn't load any attributes.
    When the reply ends with ip:route = => no problem, the attributes are processed.
    Idem if the reply ends with ip:route = 10.20.30.40 (without mask).
    The openvpn client complains (Options error: route parameter netmask 'vpn_gateway' must be an IP address), but all attributes are processed.

    Not sure if the problem is in the parse_cisco_acl function in /etc/inc/util.inc.

    Has anybody already encountered this problem ?

    Thank you

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received