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

    KEA DHCP Option 66 3CX

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 162 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 Offline
      OpIT GmbH
      last edited by OpIT GmbH

      Hello,

      someone using KEA DHCP with 3CX PBX? Iam using ISC DHCP at the Moment with this config

      Image

      1 Reply Last reply Reply Quote 0
      • B Offline
        bschapendonk
        last edited by bschapendonk

        See https://docs.netgate.com/pfsense/en/latest/services/dhcp/ipv4.html#tftp-server

        TFTP Server
        click the Display Advanced button next to TFTP to display the TFTP server option. The value in the TFTP Server box, if desired, must be an IP address or hostname of a TFTP server. This is most often used for VoIP phones, and may also be referred to as “option 66” in other documentation for VoIP and DHCP.

        4e4a2364-932f-41ce-8f22-d3806f26ca37-image.png

        Disregard everthing, belowe here I assumed that option 66 wan't supported in the GUI but is is!

        In KEA, you can configure any option that is not in the GUI using JSON. This is documented (could be better, but it's a advanced feature) here https://docs.netgate.com/pfsense/en/latest/services/dhcp/kea-settings.html#kea-custom-config

        Basically it exposes the raw configuration of KEA itself (offical KEA docs).

        And for a list of all options standard in KEA see https://github.com/isc-projects/kea/blob/master/doc/examples/kea4/all-options.json

        for example

              /*
               Code  Len   TFTP server
              +-----+-----+-----+-----+-----+---
              | 66  |  n  |  c1 |  c2 |  c3 | ...
              +-----+-----+-----+-----+-----+---
              */
              // Type: string
              {
                "code": 66,
                "data": "tftp.example.org",
                "name": "tftp-server-name"
              },
        

        Now I have no experiance with option 66 of 3CX, but I am using option 121

        from https://github.com/isc-projects/kea/blob/f89b3898b3f6eab670e08067582d3256a99cad79/doc/examples/kea4/all-options.json#L1323

              // Type: internal
              {
                "code": 121,
                // please mind the convenience notation used:
                // subnet1 - router1 IP addr, subnet2 - router2 IP addr, ..., subnetN - routerN IP addr
                "data": "10.229.0.128/25 - 10.229.0.1, 10.198.122.47/32 - 10.198.122.1",
                "name": "classless-static-route"
              },
        

        I have added this to a specific static dhcp mapping for one client (work laptop, so it doesn't route my iot vlan thru the company vpn) like this.

        1eaf10a3-3615-415a-ba74-af5e68ca812b-image.png

        {
            "option-data": [
                {
                    "name": "classless-static-route",
                    "data": "10.185.4.0/22 - 10.185.0.1"
                }
            ]
        }
        

        Important!

        • The JSON is merged into the overall configuration, if the JSON has any errors or mistakes the kea service won't start! This is not that apparent since the save might succeed, but the service won't start and will be stopped. So after changes, validate that KEA has started sucessfully and that it works as expected.
        • The overal config can be found in /usr/local/etc/kea/kea-dhcp4.conf

        I hope this helps and doesn't add more confusion.

        1 Reply Last reply Reply Quote 0
        • O Offline
          OpIT GmbH
          last edited by

          Hi,
          after some testing, it seams that is now working with the "TFTP Server" Option under "Other DHCP Options". But just with the new Release 25.07 with Release 24.11 its not working.

          You just need the enter the 3CX Provisionen URL in the Field, without any special Character like ' or ''

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.