spacewander commented on issue #3159:
URL: https://github.com/apache/apisix/issues/3159#issuecomment-752854736
```
2020/12/31 02:19:41 [info] 37#37: *93695 [lua] balancer.lua:160:
pick_server(): route:
{"value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["106.38.39.210","1609378200000","1609407000000"]]}},"uris":["\/test\/*"],"id":"00000000000000000014","desc":"test","upstream":{"hash_on":"vars","nodes":[{"host":"www.baidu.com","port":443,"weight":1}],"type":"roundrobin"}},"has_domain":true,"_cache_ver":"14#1609379263.776","clean_handlers":{},"dir":false,"createdIndex":14,"modifiedIndex_org":14,"modifiedIndex":"14#1609379263.776","key":"\/apisix\/routes\/00000000000000000014","dns_value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["106.38.39.210","1609378200000","1609407000000"]]}},"uris":["\/test\/*"],"id":"00000000000000000014","desc":"test","upstream":{"nodes":[{"host":"103.235.46.39","port":443,"weight":1}],"hash_on":"vars","type":"roundrobin"}}}
while connecting to upstream, client: 124.205.245.114
, server: , request: "GET /test/1 HTTP/2.0", host: "8.210.172.30:9443"
2020/12/31 02:19:41 [info] 37#37: *93695 [lua] balancer.lua:161:
pick_server(): ctx:
{"conf_id":"00000000000000000014","var":{"host":"8.210.172.30","request_method":"GET","request_uri":"\/test\/1","upstream_uri":"\/test\/1","remote_addr":"124.205.245.114","uri":"\/test\/1","is_args":"","upstream_scheme":"https","_request":"cdata<void
*>:
0x5610ebf6a4b0"},"upstream_version":"14#1609379263.776","upstream_key":"roundrobin#route_00000000000000000014","upstream_healthcheck_parent":"table:
0x7f7aea6493c0","conf_type":"route","conf_version":"14#1609379263.776","upstream_conf":"table:
0x7f7aea63b888","matched_route":{"value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["106.38.39.210","1609378200000","1609407000000"]]}},"uris":["\/test\/*"],"id":"00000000000000000014","desc":"test","upstream":{"hash_on":"vars","nodes":[{"host":"www.baidu.com","port":443,"weight":1}],"type":"roundrobin"}},"has_domain":true,"_cache_ver":"14#1609379263.776","clean
_handlers":{},"dir":false,"createdIndex":14,"modifiedIndex_org":14,"modifiedIndex":"14#1609379263.776","key":"\/apisix\/routes\/00000000000000000014","dns_value":{"priority":0,"plugins":{"proxy-rewrite":{"scheme":"https"},"ip-blacklist":{"blacklist":[["106.38.39.210","1609378200000","1609407000000"]]}},"uris":["\/test\/*"],"id":"00000000000000000014","desc":"test","upstream":{"nodes":[{"host":"103.235.46.39","port":443,"weight":1}],"hash_on":"vars","type":"roundrobin"}}},"plugins":[{"priority":5000,"access":"function:
0x7f7aea733498","name":"ip-blacklist","check_schema":"function:
0x7f7aea733260","schema":{"type":"object","properties":{"blacklist":{"items":{"type":"array"},"minItems":1,"type":"array"}},"oneOf":[{"required":["blacklist"]}],"id":"root:\/"},"version":0.1},"table:
0x7f7aea6495d0",{"priority":1008,"version":0.1,"schema":{"additionalProperties":false,"id":"root:\/","properties":{"regex_uri":{"maxItems":2,"description":"new
uri that substitute from client uri for upstream,
lower priority than uri property","items":{"description":"regex
uri","type":"string"},"minItems":2,"type":"array"},"uri":{"maxLength":4096,"pattern":"^\\\/.*","minLength":1,"description":"new
uri for
upstream","type":"string"},"scheme":{"type":"string","enum":["http","https"],"description":"new
scheme for
upstream"},"host":{"type":"string","pattern":"^[0-9a-zA-Z-.]+$","description":"new
host for
upstream"},"headers":{"type":"object","minProperties":1,"description":"new
headers for
request"}},"minProperties":1,"type":"object"},"check_schema":"function:
0x7f7aea7d2788","name":"proxy-rewrite","rewrite":"function:
0x7f7aea7d2a80"},"table: 0x7f7aea649518"]} while connecting to upstream,
client: 124.205.245.114, server: , request: "GET /test/1 HTTP/2.0", host:
"8.210.172.30:9443"
2020/12/31 02:19:41 [info] 37#37: *93695 [lua] balancer.lua:264:
load_balancer(): proxy request to 103.235.46.39:443 while connecting to
upstream, client: 124.205.245.114, server: , request: "GET /test/1 HTTP/2.0",
host: "8.210.172.30:9443"
```
Look like the request is successfully proxy to 103.235.46.39:443? You may
need to do network capture and see what does 103.235.46.39 return.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]