DHCP Server and supplementery options (43 & 120)



  • Hi, I'm trying to add the option 43 and 120 to my pool in order for my clients to receives these options. However this is not working when I use the Pfsense GUI and add option 43 and 120
    My option values are :
    43 : http://172.30.14.100:7547/
    120: 172.30.12.100

    I tried adding them as string (hex values), as text or as IP address it is not working…
    The options are sent but my client is not accepting them...
    I want to the options like it is done in bold but each time I save the config file and restart the service or the system it is removed...

    subnet 172.30.11.0 netmask 255.255.255.0 {
    pool {
    option domain-name-servers 8.8.8.8;
    range 172.30.11.20 172.30.11.90;
    }

    option routers 172.30.11.1;
    option domain-name-servers 8.8.8.8;
    default-lease-time 3600;
    option ntp-servers 145.238.203.14,145.238.203.10;
    option vendorSpecInfo.acs-url "http://172.30.14.100:7547/";
    option sip-servers 1 172.30.12.100;

    }



  • After modifying the /etc/inc/service.inc - I got the following in my dhcpd.conf (based on this https://forum.pfsense.org/index.php?topic=56719.msg319538#msg319538)

    #option 121
    option rfc3442-classless-static-rotues code 121 = array of unsigned integer 8;
    #option 120
    option sip-servers code 120 = ip-address;
    option domain-name "localdomain";
    option ldap-server code 95 = text;
    option domain-search-list code 119 = text;
    option arch code 93 = unsigned integer 16; # RFC4578
    option custom-opt1-0 code 120 = ip-address;
    option custom-opt2-0 code 120 = ip-address;
    option custom-opt2-1 code 43 = text;
    option custom-opt4-0 code 43 = text;
    option domain-name "localdomain";
    option ldap-server code 95 = text;
    option domain-search-list code 119 = text;
    option arch code 93 = unsigned integer 16; # RFC4578
    option custom-opt1-0 code 120 = ip-address;
    option custom-opt2-0 code 120 = ip-address;
    option custom-opt2-1 code 43 = text;
    option custom-opt4-0 code 43 = text;

    subnet 172.30.11.0 netmask 255.255.255.0 {
    pool {
    option domain-name-servers 8.8.8.8;
    range 172.30.11.20 172.30.11.90;
    }

    option routers 172.30.11.1;
    option domain-name-servers 8.8.8.8;
    default-lease-time 3600;
    option ntp-servers 145.238.203.14,145.238.203.10;

    option custom-opt1-0 172.30.12.100;
    }

    The encoding seems to be wrong, on wireshark I get an unkown encoding error message.



  • My /etc/inc/services looks like this : #option 121
    option rfc3442-classless-static-rotues code 121 = array of unsigned integer 8;

    #option 120
    option sip-servers code 120 = ip-address;

    #option 43
            option space vendorSpecInfo;
            option vendorSpecInfo.acs-url code 1 = text;


Log in to reply