Why and how does log show private IP ?

Re: Why and how does log show private IP ?

by Conor Byrne -
Number of replies: 0

Hi Anil,

I'm afraid I'm not au fait with the php behind the logging utility, but I can tell you that traffic from that private IP range will not communicate across the internet unless it is first NATed to a public address. I can also tell you that Apache and IIS logs will only show a private IP address if the network is local.

If there are NAT devices (firewalls/routers) between your Moodle server and the internet, it is possible (but unual) that the source is being NATed to appear as 172.31.152.x by these devices, in which case the 172.31.152.x network would be somewhere on your LAN. I would speak to your network admins and be sure that this is not a local LAN.

If you have non-NATed VPNs to other sites or remote users, they could also appear as private IP addresses and could be considered on the local LAN.

Hope this helps.