Skip to content

Commit

Permalink
dhcp-server: implement captive portal option (RFC8910)
Browse files Browse the repository at this point in the history
Clients observing the URI value "urn:ietf:params:capport:unrestricted"
may forego time-consuming forms of captive portal detection.

https://datatracker.ietf.org/doc/html/rfc8910
  • Loading branch information
herbetom committed Dec 11, 2024
1 parent 9a9d749 commit 48fe9ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dhcp-server/dhcpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ option space ubnt;
option space omada;
option ubnt.unifi-address code 1 = ip-address;
option omada-controller-address code 138 = ip-address;
option captive-portal-url code 114 = text;

class "ubnt" {
match if substring (option vendor-class-identifier, 0, 4) = "ubnt";
Expand Down Expand Up @@ -44,6 +45,7 @@ shared-network "{{ name }}" {
option omada-controller-address 5.1.66.255;
}
option interface-mtu 1280;
option captive-portal-url "urn:ietf:params:capport:unrestricted";
{%- endif %}
{%- endfor %}
}
Expand Down

0 comments on commit 48fe9ca

Please sign in to comment.