View previous topic :: View next topic |
Author |
Message |
JamesD n00b
Joined: 09 Mar 2003 Posts: 7
|
Posted: Sun Mar 09, 2003 9:33 pm Post subject: Adding proxy server |
|
|
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 |
|
|
weltraumfahrer Apprentice
Joined: 17 Dec 2002 Posts: 195 Location: Karlsruhe, Germany
|
Posted: Mon Mar 10, 2003 10:32 am Post subject: |
|
|
Hi,
> But the proxy settings didn't take effect. Anyone know why?
How do you test this?
Frank |
|
Back to top |
|
|
JamesD n00b
Joined: 09 Mar 2003 Posts: 7
|
|
Back to top |
|
|
meteo Tux's lil' helper
Joined: 10 Feb 2003 Posts: 136 Location: Warsaw, Poland
|
Posted: Mon Mar 10, 2003 3:09 pm Post subject: |
|
|
> 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 |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Mon Mar 10, 2003 5:03 pm Post subject: |
|
|
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 |
|
|
JamesD n00b
Joined: 09 Mar 2003 Posts: 7
|
Posted: Mon Mar 10, 2003 6:03 pm Post subject: |
|
|
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 |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Mon Mar 10, 2003 11:48 pm Post subject: |
|
|
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 |
|
|
|