• Resolved johnandally

    (@johnandally)


    Hi there.
    Wordfence is always detecting a visitors IP as the local gateway of my Apache Servers network (10.0.2.2)

    On the All Options>>General Wordfence Options>>How does wordfence get IPs>>
    I have tried all the options and saved settings between each. It still shows the detected IPs as 10.0.2.2 rather than the external IP

    My web server is running on a VirtualBox Virtual machine as follows:
    External Http traffic arriving on port 80 is first port forwarded to a physical machine on my private network ip address (192.168.1.5:8888). (This is forwarded to port 8888 as the physical machine 192.168.1.5 also has a separate web server application running on it, using port 80).

    Virtual box provides a NAT virtual network in the range 10.0.2.x and acts as a gateway to this network using the gateway IP 10.0.2.2. It has supplied my Apache server with IP 10.0.2.6

    Virtual box also provides port forwarding functionality forward http traffic arriving at the physical machine (192.168.1.5:8888) to the Apache server on 10.0.2.6:80

    So my question is can I get wordfence to recognise the traffic as external so it doesn’t whitelist the traffic thinking its a private address?

    Any help much appreciated.

    Kind Regards
    John

    I then have a

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @johnandally,

    This seems to be an issue with VirtualBox rewriting the source IP address when forwarding through NAT.

    Can I have you try editing your VirtualBox settings so that it is using transparent mode?

    VBoxManage modifyvm YOUR_VM_NAME --nataliasmode1 proxyonly

    (Remember to replace YOUR_VM_NAME with the name of your virtual machine)

    Dave

    Thread Starter johnandally

    (@johnandally)

    Dave
    Many thanks for your quick reply.

    I have amended the Virtual Box VM setting as suggested, turning on transparent mode.

    Unfortunately it still seems to show only the internal Detected ip 10.0.2.2 in
    Wordfence’s options
    >>All Options>>General Wordfence Options>>How does wordfence get IPs>>

    Any other ideas?

    Once again many thanks. Your help is much appreciated.

    John

    I have something else you can try too:

    1. Go into the settings for your VM
    2. Go to Network
    3. Set Attached to Bridged Adapter
    4. Set the Name to the same network your parent machine is on
    5. OK

    Example: https://i.stack.imgur.com/PVwwL.png

    Hi again!

    We haven’t heard back from you in a while, so I’ve gone ahead and marked this thread as resolved.

    This isn’t a Wordfence issue, so maybe you can find better help with virtual machine networking on another support site!

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘External IPs are recognised as Internal Private IPs’ is closed to new replies.