• Resolved jonharris

    (@jonharris)


    Hi,

    I have wordfence installed however I cannot see any details of specifying a proxy server?

    Currently the server is in a DMZ and does not have access directly to the internet. I need some way of updating the rules.

    Thanks
    Jon

    • This topic was modified 5 years, 6 months ago by jonharris.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @jonharris,

    Wordfence by default has whitelisted internal IPs. So if your website is not connected to the internet, and is only accessed by computers within the same local area network, they will never be blocked by Wordfence.

    Unless you mean your server is behind a proxy, then you can add trusted proxies like so:

    1. Go to Wordfence -> All Options -> How does Wordfence get IPs
    2. Choose Use the X-Forwarded-For HTTP header
    3. Click on + Edit trusted proxies
    4. Add the IP address of your proxy
    5. Click Save Changes in the top right corner

    Dave

    Thread Starter jonharris

    (@jonharris)

    Basically I’m referring to the rules, I’m seeing an error saying “Rule Update Failed”

    No rules were updated. Please verify your website can reach the Wordfence servers.

    Thanks
    Jon

    • This reply was modified 5 years, 6 months ago by jonharris.

    Hi again,

    Wordfence uses the WordPress functions to connect and download rules.

    Thus, you can set a custom proxy for your server to use by editing wp-config.php:

    /* Configure HTTP Proxy Server */
    define('WP_PROXY_HOST', '- your proxy host -');
    define('WP_PROXY_PORT', '- proxy port - ');
    define('WP_PROXY_USERNAME', '- username, or blank if none needed -');
    define('WP_PROXY_PASSWORD', '- password, or blank if none needed -');
    define('WP_PROXY_BYPASS_HOSTS', 'localhost');

    From there, Wordfence should be able to connect to its central servers and download new rules.

    Dave

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wordfence updates with a proxy server’ is closed to new replies.