LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 01-30-2007, 05:25 AM   #1
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 192

Rep: Reputation: 31
configure debian (apt) to use proxy


hello
I'd like to configure my debian machine to connect to the internet using a proxy
the proxy is http://proxy/3128
i can't make apt-get's because the proxy isn't well set up.
thank you...
 
Old 01-30-2007, 05:47 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Acquire::http::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";
Acquire::ftp::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";

In /etc/apt/apt.conf
 
Old 01-30-2007, 06:06 AM   #3
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 192

Original Poster
Rep: Reputation: 31
there's no password required. or username.

but when I add export http_proxy=http://proxy:3128 it does not work, it says connection refused it also things the address is 127.0.0.1 I do not know what's the address Ip of the proxy. in windows or firefox i do http://proxy:3128 and it works.
thank you
 
Old 01-30-2007, 06:11 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
If theres no username password, just remove it and the @

apt do not use http_proxy, it uses its own configuration.
 
Old 01-30-2007, 06:18 AM   #5
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 192

Original Poster
Rep: Reputation: 31
i must give the IP address of the proxy?
because with http_proxy not even lynx or wget connect to the web.
of must I give something like http://proxy.domain.com:3128 instead of http://proxy:3128? because http proxy seems somehow to point towards localhost (127.0.0.1)
 
Old 01-30-2007, 06:31 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
You give either the ip or the name. I give the ip so that it doesn't need to ask the dns server but that doesn't change anythign really.

Then proxy.domain.com or proxy should make no difference if your domain name is domain.com

If you are not in domain.com then either you put the fully qualified name : proxy.domain.com or in /etc/resolv.conf you put a line:
search domain.com

Then if you for example do "ping proxy", your dns library will try to get the ip of proxy. then proxy.yourdomain and then proxy.domain.com. Note that this will impact all names so it will slow down things.

For now you have to use the program "host" (maybe install it) and try to figure out the name you have to put
host proxy => no answer
host proxy.domain.com
host xx.yy.zz.tt if you know its ip adress should give you its name (inverse DNS)
 
Old 01-30-2007, 09:52 AM   #7
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 192

Original Poster
Rep: Reputation: 31
hello,
thank you it did work i had to reinstall because when I installed it prompted me for a domain name, and I put in the domain where the proxy was so when i typed proxy.domain.com it thought that debian was the only machine in that domain so it and on top of it it was called also proxy... for future reference, how do you change the domain and hostname after install?
thank you
 
Old 01-30-2007, 01:26 PM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Question

I think you have to change the /etc/hostname file but I would like others to confirm because I'm not 100% sure for the domainname
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to set up proxy in Apt-Get's apt.conf? rykel Fedora 9 10-09-2013 03:24 AM
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
How to configure apt at the mometn of the debian-testing istallation? othar Debian 3 06-26-2006 04:40 PM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration