Jump to content

Cannot connect in the console using a proxy


Arvin Juan
 Share

Recommended Posts

You have to set two variables:

 

export http_proxy=192.168.1.1:3128
export ftp_proxy=192.168.1.1:3128

 

this is an example, replace your IP address, and the port I used is for squid proxy, so change this for the port that you need to use. You would need to add this to /etc/bashrc I think for it to be enabled each time you restart the computer.

Link to comment
Share on other sites

  • 4 weeks later...

If you want these to be active each time you login to your system, add them to /etc/bashrc file, I usually put them somewhere at the top. I know already mentioned it, but just in case you didn't add them, it's worth doing to save you retyping them.

 

If I don't set permanently, you can use:

 

history | grep -i proxy

 

and it will filter all commands used for proxy, and then you can copy and paste them again in the terminal window to use them without having to retype.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...