Bug report about “inet_pton(): Unrecognized address”
-
Hi, I was adding cloudflares IP ranges to my wordfence IP whitelist. They all work really good except the last CIDR range for IPv6.
2400:cb00::/32
2405:8100::/32
2405:b500::/32
2606:4700::/32
2803:f800::/32
2c0f:f248::/32These all work fine, when converted to the standard wordfence format which is:
2400:CB00:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]
2405:8100:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]
2405:B500:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]
2606:4700:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]
2803:F800:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]
2C0F:F248:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]However the very last Cloudflare IP:
2a06:98c0::/29
2A06:[98C0-98C7]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]
Is a different CIDR (/29) and requires a range in the 2nd set of numbers/letters. This range is range is correct and even lets me save, but upon examining my error logs I am seeing an error being thrown for this address.
inet_pton(): Unrecognized address 2A06:[98C0-98C0]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]
Error message
E_WARNING: inet_pton(): Unrecognized address 2A06:[98C0-98C0]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]Stack trace
…inet_pton called at /var/www/html/wp-content/plugins/wordfence/lib/wfUtils.php (256)
…::inet_pton called at /var/www/html/wp-content/plugins/wordfence/lib/wfLog.php (1323)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (295)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (221)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (181)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (433)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (65)
in wfActivityReport::outputDashboardWidget called at ? (?)
in call_user_func called at /var/www/html/wp-admin/includes/template.php (1045)
in do_meta_boxes called at /var/www/html/wp-admin/includes/dashboard.php (227)
in wp_dashboard called at /var/www/html/wp-admin/index.php (136)I even attempted to change the 2nd set of numbers to the full range of IPs, allowing more than just cloudflare (dangerous I know), and that didn’t even fix the error. It still kept throwing the error at me. Log here:
Error message
E_WARNING: inet_pton(): Unrecognized address 2A06:98C0:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]:[0000-FFFF]Stack trace
…inet_pton called at /var/www/html/wp-content/plugins/wordfence/lib/
wfUtils.php (256)
…::inet_pton called at /var/www/html/wp-content/plugins/wordfence/lib/
wfLog.php (1323)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (295)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (221)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (181)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (433)
… called at /var/www/html/wp-content/plugins/wordfence/lib/
wfActivityReport.php (65)
in wfActivityReport::outputDashboardWidget called at ? (?)
in call_user_func called at /var/www/html/wp-admin/includes/template.php (1045)
in do_meta_boxes called at /var/www/html/wp-admin/includes/dashboard.php (227)
in wp_dashboard called at /var/www/html/wp-admin/index.php (136)So long story short. Can you guys figure out what is going on with this IP? I know the range is correct, any response would be nice 🙂
- The topic ‘Bug report about “inet_pton(): Unrecognized address”’ is closed to new replies.