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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like