Hi all, I'm getting some strange errors when smartphones connect to my registration network in order to register themselves as a guest. They see an error saying that their device was not found in the packetfence database.
Interestingly the IP address displayed on the user's screen was 192.168.225.28, but if I look in the nodes page of the GUI I see the same mac address has 192.168.225.29. The MAC address displayed on the device was 0 After scanning the mailing list I found that OMAPI was suggested to be setup to rectify this, which has been done, but I'm still getting the error. Some packetfence.log snippet from the time the device was connecting is below: Aug 22 14:23:59 httpd.portal(4566) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:23:59 httpd.portal(4566) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] Updating node user_agent with useragent: 'Mozilla/5.0 (Linux; Android 6.0; LG-H815 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36' (captiveportal::PacketFence::DynamicRouting::Application::process_user_agent) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] database query failed with: Duplicate entry '0' for key 'PRIMARY' (errno: 1062) (pf::db::db_query_execute) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] violation not added, MAC 0 is invalid! trigger useragent::105 (pf::violation::violation_trigger) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] violation not added, MAC 0 is invalid! trigger useragent::4 (pf::violation::violation_trigger) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] violation not added, MAC 0 is invalid! trigger useragent::404 (pf::violation::violation_trigger) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] violation not added, MAC 0 is invalid! trigger useragent::300 (pf::violation::violation_trigger) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] violation not added, MAC 0 is invalid! trigger useragent::403 (pf::violation::violation_trigger) Aug 22 14:23:59 httpd.portal(4566) INFO: [mac:0] violation not added, MAC 0 is invalid! trigger useragent::100 (pf::violation::violation_trigger) Aug 22 14:24:01 httpd.portal(4396) INFO: [mac:5c:70:a3:45:f1:a1] Dealing with a endpoint / browser with captive-portal detection capabilities while having captive-portal detection mechanism bypass enabled. Proxying (pf::web::dispatcher::handler) Aug 22 14:24:49 httpd.portal(4396) INFO: [mac:5c:70:a3:45:f1:a1] Dealing with a endpoint / browser with captive-portal detection capabilities while having captive-portal detection mechanism bypass enabled. Proxying (pf::web::dispatcher::handler) Aug 22 14:26:17 httpd.portal(4566) INFO: [mac:0] Dealing with a endpoint / browser with captive-portal detection capabilities while having captive-portal detection mechanism bypass enabled. Proxying (pf::web::dispatcher::handler) Aug 22 14:26:20 httpd.portal(5040) INFO: [mac:5c:70:a3:45:f1:a1] Dealing with a endpoint / browser with captive-portal detection capabilities while having captive-portal detection mechanism bypass enabled. Proxying (pf::web::dispatcher::handler) Aug 22 14:26:51 httpd.portal(5036) INFO: [mac:unknown] Memory configuration is not valid anymore for key resource::stats_levels in local cached_hash (pfconfig::cached::is_valid) Aug 22 14:26:51 httpd.portal(5036) WARN: [mac:unknown] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:26:51 httpd.portal(5036) INFO: [mac:unknown] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:26:51 httpd.portal(5036) WARN: [mac:unknown] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:26:51 httpd.portal(5036) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:26:51 httpd.portal(5036) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:26:51 httpd.portal(5036) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:26:51 httpd.portal(5036) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:26:51 httpd.portal(5036) WARN: [mac:unknown] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:26:51 httpd.portal(5036) INFO: [mac:unknown] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:26:51 httpd.portal(5036) WARN: [mac:unknown] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:26:51 httpd.portal(5036) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:26:51 httpd.portal(5036) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:26:51 httpd.portal(5036) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:26:51 httpd.portal(5036) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:26:55 httpd.portal(5043) INFO: [mac:5c:70:a3:45:f1:a1] Instantiate a new iptables modification method. pf::ipset (pf::inline::get_technique) Aug 22 14:26:55 httpd.portal(4423) INFO: [mac:a4:34:d9:8a:e4:31] Instantiate a new iptables modification method. pf::ipset (pf::inline::get_technique) Aug 22 14:26:55 httpd.portal(5036) INFO: [mac:0] Instantiate a new iptables modification method. pf::ipset (pf::inline::get_technique) Aug 22 14:27:20 httpd.portal(5042) INFO: [mac:[undef]] Instantiate a new iptables modification method. pf::ipset (pf::inline::get_technique) Aug 22 14:27:20 httpd.portal(4566) WARN: [mac:unknown] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:27:20 httpd.portal(4566) INFO: [mac:unknown] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:27:20 httpd.portal(4566) WARN: [mac:unknown] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:27:20 httpd.portal(4566) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:27:20 httpd.portal(4566) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:27:20 httpd.portal(4566) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:27:20 httpd.portal(4566) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:27:20 httpd.portal(4566) WARN: [mac:unknown] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:27:20 httpd.portal(4566) INFO: [mac:unknown] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:27:20 httpd.portal(4566) WARN: [mac:unknown] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:27:20 httpd.portal(4566) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:27:20 httpd.portal(4566) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Aug 22 14:27:20 httpd.portal(4566) WARN: [mac:0] Unable to match MAC address to IP '192.168.225.28' (pf::iplog::ip2mac) Aug 22 14:27:20 httpd.portal(4566) INFO: [mac:0] Instantiate profile default (pf::Portal::ProfileFactory::_from_profile) Cheers, Andi ________________________________ [Cardiff Metropolitan University - Queens Anniversary Prizes 2015]<http://www.cardiffmet.ac.uk/news/Pages/Cardiff-Met-research-recognised-in-Queens-Anniversary-Prizes-for-Higher-and-Further-Education.aspx>
------------------------------------------------------------------------------
_______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
