To troubleshoot the iRule added to the F5 BIG-IP, SSH into the BIG-IP machine, enter the bash shell, and check the LTM logs:
For detailed troubleshooting, you can enable debug mode which provides additional logging information about the enforcer’s decision-making process.
Debug mode generates significant log output and can impact performance. Only enable it temporarily for troubleshooting, and remember to disable it in production environments.
When the enforcer is in Monitor Mode (module_mode = 1), you can still test the blocking flow without affecting real traffic. This is useful for validating that blocking works correctly before switching to full blocking mode.
Set the bypass monitor header in the pxconfig data group:
Once configured, you can test blocking by including the header in your request:
x-px-block: 1 on your requestPhantomJS/1.0)Conditions for bypass:
bypass_monitor_header must be configured1If any condition is missing, the enforcer will stay in Monitor Mode.
To explicitly stay in Monitor Mode even when the header is present, set the header value to 0:
x-px-block: 0 - Stay in Monitor ModeThis feature is per-request. It does not change the global module mode setting.
If you’re not seeing activity data in the HUMAN Console:
px_syslog_pool is healthy and can reach px-fst-syslog.perimeterx.netCLIENT_ACCEPTED rule is uncommented in the px iRuleIf you’re seeing high s2s_timeout rates:
px_backend_pool is healthypx_backend_<APP_ID>_vip is configured correctlyrisk_timeout if network latency is high:If the enforcer doesn’t seem to be processing requests:
enable_module is set to 1enable_module_header_name is configured and if so, ensure the header is presentexcluded_extensions pattern isn’t matching your requestsIf you see this error when uploading the px iRule:
The px.tcl file exceeds F5’s 65,520 byte limit for iRules.
Solution: Minify the iRule before uploading:
This command removes comment lines and collapses blank lines. The minified iRule is functionally identical to the original.
Use px-minified.tcl instead of px.tcl when creating the iRule.