|Problems? Is your data what you think it is?|
Need help with HTTP::Proxyby scorpio17 (Canon)
|on Dec 30, 2021 at 21:58 UTC||Need Help??|
scorpio17 has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to create simple proxy using HTTP::Proxy as follows:
If I run this on SERVER_A, I can do the following (also on SERVER_A) and it works as expected:
But if I'm on another host (SERVER_B, for example) and I do this:
Then I get "Failed to connect : Connection refused"
I've disabled all firewalls, for testing, but that doesn't fix it.
If I use the actual IP address (instead of hostname SERVER_A) it makes no difference.
If I run the script as root (or with sudo) it makes no difference.
What am I missing here?
For what it's worth, the reason I'm trying to do this: host SERVER_B needs to access api.test.example.com, but isn't able to reach it directly. It can, however, reach SERVER_A, and SERVER_A can reach api.test.example.com, so I'd like to use SERVER_A to bridge the two.