Jump to content

Gentoo Network Proxy Config [solved]


Recommended Posts

The following command enables http proxy:

 

export http_proxy="info here:port"

 

I want to be able to get this automatically added at bootup. I know gentoo uses the ethernet config in /etc/conf.d/net and wondered if I add it here, or, in another file somewhere? Environment variables?

Link to comment
Share on other sites

I found another way you can do it. You can create a file called /etc/env.d/99local and put the entries you want in there without messing with /etc/profile. Then after:

 

env-update
source /etc/profile

 

the "echo $http_proxy" should show it configured correctly after that. Not sure why you would do it this way over than just using /etc/profile. But, it works :P

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...