Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to use a proxy that needs authentication?
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
ThorstenHirsch
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2003
Posts: 111

PostPosted: Wed Jul 28, 2004 4:07 pm    Post subject: how to use a proxy that needs authentication? Reply with quote

Hi.

I'm installing Gentoo within a company's network, that uses a proxy with user authentication for internet access. Therefore I've put a line with my proxy settings into /etc/profiles, but it doesn't work.
I've tried all of these lines:
Code:

export http_proxy="proxy.comany.net:8080"
export http_proxy="user:password@proxy.company.net:8080"
export http_proxy="user:password@proxy.company.net"

and every line again with HTTP_PROXY instead of http_proxy, but I had no luck. The network works fine for the company's network, I'm absolutely sure that the problem is the proxy and/or the authentication at the proxy. DNS also works.

Any ideas?

Btw, there's no ftp proxy, so I'm forced to use http and therefore I've chosen a http-mirror to use in my GENTOO_MIRRORS in /etc/make.conf.

Regards,
Thorsten
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Wed Jul 28, 2004 4:19 pm    Post subject: Reply with quote

is the proxy port 8080 or 80?.........in either case u have to specify it.......also if u type this in shell it'll work only for that session, so u might wanna add it to
Code:
/etc/env.d/99local


luck!
Saurabh
Back to top
View user's profile Send private message
ThorstenHirsch
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2003
Posts: 111

PostPosted: Wed Jul 28, 2004 4:30 pm    Post subject: Reply with quote

As I mentioned, I've put it in /etc/profile, as the gentoo handbook suggests.
Okay, meanwhile I've customized* the FETCHCOMMAND in /etc/make.conf for wget and now I'm able to download packages, so emerge is working well as long as I've a recent portage tree...and that's my next problem: only wget can use my proxy so far. An emerge-webrsync doesn't work either, it doesn't report any errors, but it's running only a few seconds and nothing happens.

*="... --proxy-user=username --proxy-passwd=password ...", and in /etc/profile the line export http_proxy="proxy.company.net:8080" is the right one; it looks like that the syntax with the username and password in /etc/profile isn't supported.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Wed Jul 28, 2004 5:09 pm    Post subject: Reply with quote

set username/password for your proxy in /etc/wget/wgetrc

HTH
T.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
imacomputa
n00b
n00b


Joined: 05 May 2004
Posts: 18

PostPosted: Wed Jul 28, 2004 8:14 pm    Post subject: Reply with quote

Hi.

I do the same thing, and this is what I do:

export http_proxy="http://username:password@proxy.domain.suffix"

note that I prepend http:// to the proxy url.
_________________
Hey kid! I'm a computa'. Stop all the downloadin'. Help computa'.
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Thu Jul 29, 2004 9:23 am    Post subject: Reply with quote

That's how I solved my problem at work too.



imacomputa wrote:
Hi.

I do the same thing, and this is what I do:

export http_proxy="http://username:password@proxy.domain.suffix"

note that I prepend http:// to the proxy url.

_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
ThorstenHirsch
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2003
Posts: 111

PostPosted: Thu Jul 29, 2004 10:09 am    Post subject: Reply with quote

Thx guys and especially to Think4UrS11. With the settings in wgetrc emerge-webrsync is now also working.
Back to top
View user's profile Send private message
aerotux
n00b
n00b


Joined: 22 Jan 2004
Posts: 20
Location: Argentina

PostPosted: Fri Jul 30, 2004 8:12 pm    Post subject: Reply with quote

if the mirrors are all ftp://... then it would also help to define ftp_proxy with the same string that http_proxy.

Bye!
_________________
--
Tux rules!
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Thu Sep 23, 2004 5:36 pm    Post subject: Reply with quote

This worked for me too, thanks much!

imacomputa wrote:
Hi.

I do the same thing, and this is what I do:

export http_proxy="http://username:password@proxy.domain.suffix"

note that I prepend http:// to the proxy url.

_________________
Some day there will only be free software.
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