Faced with situation that nginx+php-fpm has stopped retrieving content from external resources (like, Amazon API), even file_get_content/curl (PHP) are failing with timeout errors.
# wget --debug "URL"
DEBUG output created by Wget 1.13.4 on linux-gnu.
URI encoding = `UTF-8'
--2018-01-31 11:24:54-- URL
Resolving URL (URL)... , ...
Caching URL => ...
Connecting to URL (URL)|...|:80... Closed fd 3
failed: Connection timed out.
Connecting to URL (URL)|...|:80... Closed fd 3
failed: Connection timed out.
Connecting to URL (URL)|...|:80... connected.
Created socket 3.
Releasing 0x0000000001bd97c0 (new refcount 1).
Does anyone have ideas about issue itself and possible steps to resolve it, or at least to debug it for clarification?