Open chri2 opened 8 months ago
im seeing the same issue on pf 13.1 with rocky linux 8.9. My resolution, for the time being, has been this: https://github.com/inverse-inc/packetfence/issues/5765#issuecomment-681194433
add a pf-specfific hosts file (under /usr/local/pf/conf/pf.hosts with the entry 66.70.255.147 portal.fqdn
(of course, replace portal.fqdn with the proper name) and then edit the pfdns.conf as shown in that comment.
I was going crazy.. took me like a week to get it working.
Describe the bug After installing packetfence on debian 11.9 the configuration portals didn't work.
/etc/hosts contains the following two lines:
pfdns.conf contains:
When a client on the registration vlan is redirected to
http://<hostname>.<domain>/captive-portal
and requests the IP for<hostname>.<domain>
it gets the answer127.0.0.1
.To Reproduce Steps to reproduce the behavior:
Portal FQDN
emptyExpected behavior The portal should work, the client trying to register should get an IP as a DNS answer to the portals default fqdn that works.
More generally: I can't think of a case where it would make sense for packetfence to answer a dns request on the registration vlan with 127.0.0.1.
Desktop (please complete the following information):
Additional context: I just installed a new Debian based Packetfence 13.1 and stumbled over this. I remeber that I stumbled after a version 12.x install over the same default configuration and solved it that time by commenting out the line in
/etc/hosts
containing<hostname>.<domain>
.