Cloudflare masks request ip?


#1

Hi,
I’m using tpay.com as payment method in my woocommerce shop with plugin provided by tpay.

At night I suddenly started receiving e-mails about “Incorrect server response”.

Tpay plugin defines list of secure IPs:
‘195.149.229.109’,
‘148.251.96.163’,
‘178.32.201.77’,
‘46.248.167.59’,
‘46.29.19.106’

After debugging I see that before the problem occurred I was getting request from IPs only from this list.
About 4-5 am. (Polish time) the situation has changed and requests come from
141.101.97.52
162.158.202.150
141.101.97.15
141.101.96.124
172.69.226.13
162.158.92.228
141.101.97.52
162.158.202.42
162.158.202.30
none of those matches “secure list” and all of them are marked as cloudflare servers on sites like this

Any idea why does this happened?


#2

With cloudflare, the IP address of the requests come from CF’s IPs since the service is a reverse proxy service. You might need to restore the visitor IP address on your web server -

https://support.cloudflare.com/hc/en-us/sections/200805497-Restoring-Visitor-IPs


#3

@Judge that works.
Thank you very much.

But still I don’t have an answer for the question why does this happened?
Everything was fine up to some moment.
I was not changing server setting for few months.


#4

In that case we can only assume you were rewriting IP address earlier and something changed in your server configuration at that point which disabled that rewrite and hence the actual IP addresses showed up.

You’d need to check that on your end.


closed #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.