View previous topic :: View next topic |
Author |
Message |
scharkalvin Guru


Joined: 31 Jan 2004 Posts: 331 Location: south florida
|
Posted: Thu Mar 24, 2005 4:51 pm Post subject: Network Access behind corporate firewall proxy |
|
|
I'd like to install Gentoo on a computer at my office.. However all
internet access is behind a firewall proxy. I can set up FireFox to
work this way, in the proxy settings I need to give the local lan
address and port number. ALL protocols are sent via port 8080.
Whenever I start Firefox it pops up a message box asking for
my user id and password before the proxy will let me get to the
net. This works well under a Redhat Enterprise Linux clone (white box).
However as far as I can tell there is no way to get command line
FTP to work through the proxy.
IS there a way to setup a Gentoo box so it will install through such
a firewall proxy? I suppose I could get the basic system installed
via a stage 3 tarball and GRP cd. But after that, how can I setup
portage to work behind such a firewall proxy?
(maybe I'd have to manually download all required files via firefox
before running portage to build the package, but SOMEHOW I'd have
to get portage to spitout the URLs and filenames for me to download) |
|
Back to top |
|
 |
adaptr Watchman


Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Mar 24, 2005 8:15 pm Post subject: |
|
|
Quite simple, really: you can use web-rsync to sync via HTTP, and source package targets have HTTP mirrors as well.
Just pick only HTTP mirrors and you should be good.
Portage does not connect to the net to get URLs; they are synced, which you can do over HTTP as well.
If you emerge --pretend you will get a list which you can then download from wherever. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
 |
dieterv n00b

Joined: 05 May 2004 Posts: 59 Location: Wervik, Belgium
|
Posted: Thu Mar 24, 2005 9:27 pm Post subject: |
|
|
no need to manually download anything
to sync your portage tree, use emerge-webrsync as suggested by adaptr.
to emerge packages, do:
as a user that's in the portage group, otherwise as root:
Code: | export http_proxy="http://username:password@proxy:port"
export ftp_proxy="http://username:password@proxy:port" (yup, thats http in there)
emerge --fetchonly target
unset http_proxy
unset ftp_proxy
echo > ~/.bash_history (if you don't want your proxy username/password recorded in plaintext in some file)
|
then as root:
|
|
Back to top |
|
 |
|