LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-22-2007, 11:10 AM   #1
intri^catic
LQ Newbie
 
Registered: Nov 2006
Posts: 4

Rep: Reputation: 0
Proxy Question


This is probably a silly question, but it's also really straightforward and simple.

Okay, so I have a base gentoo install on my system, but I can't get online at work due to our local proxy server. How do you set up a box to work with a proxy configuration from a terminal prompt? I'd think it should automatically detect that based on the info in resolv.conf (and resolv.conf-eth1.sv) that dhcpcd enters, but it appears not to give it correct info. I'm having the same problem at home after installing a new DSL modem, but I fixed that by commenting out the modem as a nameserver and manually entering the info for bellsouth's nameservers. I can't seem to resolve the issue at work, though. Any suggestions? One bit of advice I've yet to try is to set up the proxy as the default gateway instead of using the info from dhcpcd, but I'm not sure if that would do anything at all.

The reason I'm asking about setting up a proxy is that I can get online if I boot from a livecd and setup gnome to use the proxy configuration I pulled off a windows box, but I can't seem to figure out how to get the same effect from a terminal prompt as from gnome's network proxy gui.

Last edited by intri^catic; 01-22-2007 at 11:13 AM.
 
Old 01-22-2007, 01:19 PM   #2
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 567

Rep: Reputation: 30
I think you should set the variable
Code:
http_proxy=http://proxy.ip:proxyport
you can do this for example in your home dir in the .bashrc file
Code:
export http_proxy=http://ip:port
and than restart the shell /bin/bash if you have bash ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
proxy question. yanik Linux - Networking 3 03-29-2006 06:27 AM
proxy question fpalamariu Linux - Networking 3 03-16-2005 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration