Curl with Proxy Isn't Working

Curl with Proxy Isn't Working

I have Squid proxy installed on Ubuntu 20.4 LTS. The squid is listening on port 8118.

When I'm testing it with curl -x localhost:8118 It's getting stuck.

When I'm using the Proxy IP it's working outside of the Linux machine.

curl -x PROXY_IP:8118  

What can be the cause of this issue?

3

1 Answer

Adding rule:

sudo iptables -P INPUT ACCEPT

Solved my issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.