Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adding proxy server
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
JamesD
n00b
n00b


Joined: 09 Mar 2003
Posts: 7

PostPosted: Sun Mar 09, 2003 9:33 pm    Post subject: Adding proxy server Reply with quote

My home network is running DHCP and that's how I initially configured gentoo. I'd like to be able to use proxy's on occasion but I'm having trouble...

First I tried:

export http_proxy "someproxy"
/etc/init.d/net.eth0 restart

The proxy setting didn't take effect.

Then I figure maybe DHCP's just overriding the proxy variable, so I:

/etc/init.d/net.etho stop
ifconfig eth0 192.168.1.12 broadcast 192.168.1.255 netmask 255.255.255.0
/sbin/route add -net default gw 192.168.1.5 netmask 0.0.0.0 metric 1
ping google.com
(net is working)

But the proxy settings didn't take effect. Anyone know why?

Thanks a bunch!
Back to top
View user's profile Send private message
weltraumfahrer
Apprentice
Apprentice


Joined: 17 Dec 2002
Posts: 195
Location: Karlsruhe, Germany

PostPosted: Mon Mar 10, 2003 10:32 am    Post subject: Reply with quote

Hi,
> But the proxy settings didn't take effect. Anyone know why?
How do you test this?
Frank
Back to top
View user's profile Send private message
JamesD
n00b
n00b


Joined: 09 Mar 2003
Posts: 7

PostPosted: Mon Mar 10, 2003 12:37 pm    Post subject: Reply with quote

An easy way is to go to some page like this that reports your ip: http://www.lawrencegoetz.com/programs/ipinfo/.
Back to top
View user's profile Send private message
meteo
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2003
Posts: 136
Location: Warsaw, Poland

PostPosted: Mon Mar 10, 2003 3:09 pm    Post subject: Reply with quote

> An easy way is to go to some page [...]

well, it depends what browser do you use...

if it's lynx then maybe it wasn't the same terminal: i.e. in ttyp0 you'd typed "export http_proxy='SOME_PROXY'" and in ttyp3 "lynx". i guess it wouldn't do...

but if it's some graphical browser (mozilla/netscape/konqueror/galeon/???) or even links you ought to check your browser's settings (Edit->Preferences->Advenced->Proxies->Manual in Mozilla)

regards, m
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Mon Mar 10, 2003 5:03 pm    Post subject: Reply with quote

Normally, you define http_proxy and ftp_proxy in /etc/profile:
Code:

export http_proxy="proxy.server.tld:port"
export ftp_proxy="$http_proxy"


This will define the variables for all shells since they all source /etc/profile. However, there are, as mentioned, some browsers that do not look at those settings. One of those is links, which needs to be configured manually. Just press Escape->Setup->Network Options.

Fill in the proxy and don't forget to save the settings (also in "Setup"), otherwise they will disappear whenever you close the browser.
Back to top
View user's profile Send private message
JamesD
n00b
n00b


Joined: 09 Mar 2003
Posts: 7

PostPosted: Mon Mar 10, 2003 6:03 pm    Post subject: Reply with quote

Thanks for the input; I wasn't aware some browsers might ignore those settings; I was using Mozilla. I seem to remember ping times being longer after trying to set up the proxy so I bet it did work; I'll test tonight!
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Mon Mar 10, 2003 11:48 pm    Post subject: Reply with quote

What program are you trying to set the proxy for?
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
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