IP Whitelisting

Any suggestion Please?

Hi,

Could you post the output of the following please

curl -v http://ec2-18-142-155-240.ap-southeast-1.compute.amazonaws.com:8080/httpbin/get

The aim here is to see the headers with IP address information.

Cheers,
Pete

Please find below output:

curl -v http://ec2-18-142-155-240.ap-southeast-1.compute.amazonaws.com:8080/httpbin/get

GET /httpbin/get HTTP/1.1
User-Agent: curl/7.29.0
Host: ec2-18-142-155-240.ap-southeast-1.compute.amazonaws.com:8080
Accept: /

< HTTP/1.1 200 OK
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: *
< Content-Length: 434
< Content-Type: application/json
< Date: Wed, 03 Nov 2021 09:24:03 GMT
< Server: gunicorn/19.9.0
< X-Ratelimit-Limit: 0
< X-Ratelimit-Remaining: 0
< X-Ratelimit-Reset: 0
<
{
“args”: {},
“headers”: {
“Accept”: “/”,
“Accept-Encoding”: “gzip”,
“Host”: “httpbin.org”,
“User-Agent”: “curl/7.29.0”,
“X-Amzn-Trace-Id”: “Root=1-61825533-0cb88a7e61f3895b0ea032d2”,
“X-Tyk-Forwarded-For”: “”,
“X-Tyk-Real-Ip”: “10.10.31.56”,
“X-Tyk-Request-Id”: “0114d294-d012-4470-aea7-19e196db8323”
},
“origin”: “10.10.31.56, 18.142.155.240”,
“url”: “http://httpbin.org/get
}

Nothing looks out of place and whitelisting should work. Could you share the debug log of the API with the issue. The whitelist middleware should drop some information in debug mode at the time of the API request.

What do you mean by debug log?

Is it curl with -v or console log?

It’s the Tyk Log Data. You would need to set the log level to debug either in the environment variables or the tyk configuration file.

Then share the output when you make a curl request.

I didnt make any change but somehow it started working.