View previous topic :: View next topic |
Author |
Message |
johnson_steve n00b
Joined: 30 Apr 2005 Posts: 62
|
Posted: Tue Sep 09, 2008 12:50 am Post subject: Help me emerge through my squid proxy |
|
|
My internet connection goes like this:
Neighbor's DSL Modem (192.168.0.1) --> lynksys router (192.168.1.1) --> WiFI to Ethernet adapter --> 24 port hub --> Gentoo Box running squid (10.0.0.2) --> another lynksys router (10.0.0.1) --> laptop (10.0.0.5) and ipod (10.0.0.3)
I can surf the web with Firefox by setting it to use my squid proxy (10.0.0.2:3128) same deal with the ipod I set the proxy settings in safari and it surfs just fine. but neither have an internet connection outside the browser. I've tried to set the http_proxy and other environment variables as per the installation guide but I still can't ping any web sites or run emerge. could have something to do with the dns server as my network is spread over 2 subnets but then how does firefox work? The only way I can emerge anything is to plug right into the 24 port hub and get an ip address from (My) linksys in my neighbors house.
I would like to be able to use my wiFi for everything so I could emerge/bittorrent/frostwire/etc from the couch or bedroom not the table next to my sink (possible disaster.) I figure there has to be something I can change on my laptop or the squid server (both gentoo) to make this work. Please help me. |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Tue Sep 09, 2008 5:51 am Post subject: |
|
|
Is portage using wget? wget can go through proxies: edit /etc/wgetrc |
|
Back to top |
|
|
champ Tux's lil' helper
Joined: 25 Oct 2006 Posts: 97 Location: Thailand
|
Posted: Tue Sep 09, 2008 9:48 am Post subject: |
|
|
In addition to the change in make.conf to connect through a proxy with emerge you need to edit the file /etc/wgetrc and change the following lines:
Code: |
http_proxy = <IP address>
ftp_proxy = <IP address>
use_proxy = on
|
That works fine for me. However, emerge -- sync will not work. You need to run
instead _________________ "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." - Benjamin Franklin
blog: johnsearth.blogspot.com |
|
Back to top |
|
|
johnson_steve n00b
Joined: 30 Apr 2005 Posts: 62
|
Posted: Wed Sep 10, 2008 3:22 pm Post subject: |
|
|
Thank you!
I can now emerge through my proxy.
Is use_proxy = on an environment variable I should have been using all along? I didn't see it in the installation guide; this could explain why I wasn't able to get it to work. |
|
Back to top |
|
|
champ Tux's lil' helper
Joined: 25 Oct 2006 Posts: 97 Location: Thailand
|
Posted: Thu Sep 11, 2008 8:03 am Post subject: |
|
|
No, the use_proxy is not an environment variable. What emerge does is use wget as its backend when fetching. So wget has to be told that there is a proxy. The guide is not very clear on that.
Well, glad its working.
Cheers. _________________ "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." - Benjamin Franklin
blog: johnsearth.blogspot.com |
|
Back to top |
|
|
|