Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help me emerge through my squid proxy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
johnson_steve
n00b
n00b


Joined: 30 Apr 2005
Posts: 62

PostPosted: Tue Sep 09, 2008 12:50 am    Post subject: Help me emerge through my squid proxy Reply with quote

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
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Tue Sep 09, 2008 5:51 am    Post subject: Reply with quote

Is portage using wget? wget can go through proxies: edit /etc/wgetrc
Back to top
View user's profile Send private message
champ
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2006
Posts: 97
Location: Thailand

PostPosted: Tue Sep 09, 2008 9:48 am    Post subject: Reply with quote

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
Code:

emerge-webrsync
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
View user's profile Send private message
johnson_steve
n00b
n00b


Joined: 30 Apr 2005
Posts: 62

PostPosted: Wed Sep 10, 2008 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
champ
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2006
Posts: 97
Location: Thailand

PostPosted: Thu Sep 11, 2008 8:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum