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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...