f



update freebsd through proxy

Hi,
       I've install base system of freebsd. I want to update it
through Internet.

Here is the problem:
       My corp use only http proxy 192.168.1.100:8080.
When I use wget,  e.g.
$ ftp_proxy=192.168.1.100:8080 wget ftp://ftp.xxx.com/
it does not work.
$ http_proxy=192.168.1.100:8080 wget http://www.xxx.com/
it works.
$ firefox ftp://ftp.xxx.com/
   ..... set all proxies to 192.168.1.100:8080...
it works.

I was confused. I want ftp site accessable in order to update freebsd
package. Is that possible?
give some clue.
0
ssszer
6/6/2008 6:48:22 AM
comp.unix.bsd.freebsd.misc 13187 articles. 1 followers. Post Follow

6 Replies
64609 Views

Similar Articles

[PageSpeed] 43

ssszer@gmail.com <ssszer@gmail.com> wrote:

> I've install base system of freebsd. I want to update it
> through Internet.
> 
> Here is the problem:
> My corp use only http proxy 192.168.1.100:8080.
> When I use wget,  e.g.
> $ ftp_proxy=192.168.1.100:8080 wget ftp://ftp.xxx.com/
> it does not work.

What does "does not work" mean? And which proxy are you using?

Helmut

-- 
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn 
0
Helmut
6/9/2008 6:12:16 PM
> > Here is the problem:
> > My corp use only http proxy 192.168.1.100:8080.
> > When I use wget,  e.g.
> > $ ftp_proxy=192.168.1.100:8080 wgetftp://ftp.xxx.com/
> > it does not work.
>
> What does "does not work" mean? And which proxy are you using?

Actually only http_proxy is efficient. ftp_proxy does not exist.
Here is my naive thoughts.

$ http_proxy=192.168.1.100:8080 ftp_proxy=192.168.1.100:8080 wget
ftp://ftp1.freebsd.org/pub/FreeBSD/distfiles

--09:44:32-- ftp://ftp1.freebsd.org/pub/FreeBSD/distfiles
               => `distfiles'
Connecting to 192.168.1.100:8080... connected.
Proxy request sent, awaiting response...
09:46:01 ERROR -1: Malformed status line.

$ http_proxy=192.168.1.100:8080  wget ftp://ftp1.freebsd.org/pub/FreeBSD/distfiles

--09:48:32-- ftp://ftp1.freebsd.org/pub/FreeBSD/distfiles
               => `distfiles'
Connecting to 192.168.1.100:8080... connected.
Proxy request sent, awaiting response...
09:51:01 ERROR -1: Malformed status line.

$ ftp_proxy=192.168.1.100:8080 wget ftp://ftp1.freebsd.org/pub/FreeBSD/distfiles

--09:54:32-- ftp://ftp1.freebsd.org/pub/FreeBSD/distfiles
               => `distfiles'
Connecting to 192.168.1.100:8080... connected.
Proxy request sent, awaiting response...
09:57:01 ERROR -1: Malformed status line.
0
ssszer
6/10/2008 2:13:57 AM
ssszer@gmail.com wrote:

> [...]
> Proxy request sent, awaiting response...
> 09:46:01 ERROR -1: Malformed status line.

It's quite obvious what's wrong, isn't it? Your company uses some
broken Proxy Software.
You may want to try fetch or curl instead of wget. They tend to
bitch less about broken software than wget does.


	Martin

-- 
"For the Snark's a peculiar creature, that won't
 Be caught in a commonplace way.
 Do all that you know, and try all that you don't;
 Not a chance must be wasted to-day!"
0
Martin
6/10/2008 4:36:06 AM
> > Proxy request sent, awaiting response...
> > 09:46:01 ERROR -1: Malformed status line.
>
> It's quite obvious what's wrong, isn't it? Your company uses some
> broken Proxy Software.
> You may want to try fetch or curl instead of wget. They tend to
> bitch less about broken software than wget does.

$ curl  ftp://ftp1.freebsd.org/pub/FreeBSD/distfiles
curl:  (52) Empty relply from server

Is there any software or tools?
If downloading the file through firefox, the file received is broken,
because the very low speed.
some software through which wget (or fetch, else) get the job done.
0
ssszer
6/10/2008 10:10:26 AM
ssszer@gmail.com <ssszer@gmail.com> wrote:
>>> Proxy request sent, awaiting response...
>>> 09:46:01 ERROR -1: Malformed status line.
>>
>> It's quite obvious what's wrong, isn't it? Your company uses some
>> broken Proxy Software.
>> You may want to try fetch or curl instead of wget. They tend to
>> bitch less about broken software than wget does.
>
> $ curl  ftp://ftp1.freebsd.org/pub/FreeBSD/distfiles
> curl:  (52) Empty relply from server
>
> Is there any software or tools?
> If downloading the file through firefox, the file received is broken,
> because the very low speed.
> some software through which wget (or fetch, else) get the job done.

Would you share with us which proxy you are using? Or is that C1?! Anyway, 
the proxy seems broken.

-- 
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn 

0
Helmut
6/10/2008 10:14:40 AM
ssszer@gmail.com wrote:
>> > Proxy request sent, awaiting response...
>> > 09:46:01 ERROR -1: Malformed status line.
>>
>> It's quite obvious what's wrong, isn't it? Your company uses some
>> broken Proxy Software.
>> You may want to try fetch or curl instead of wget. They tend to
>> bitch less about broken software than wget does.
> 
> $ curl  ftp://ftp1.freebsd.org/pub/FreeBSD/distfiles
> curl:  (52) Empty relply from server

First of all, you should really use a mirror which is closer to
your physical location. If I'm not mistaken that would be
ftp.cn.freebsd.org in your case.

> Is there any software or tools?

Sorry, I don't understand your question.

> If downloading the file through firefox, the file received is broken,
> because the very low speed.

Another reason to use a nearby mirror. It usually really speeds up
things a lot, especially if your country's connection to the outside
world isn't the most reliable one.

> some software through which wget (or fetch, else) get the job done.

Any terminal-based browser, e.g. lynx, w3m etc. should do the trick.
Then again, chances are they will also choke on your broken proxy.
In that case, replacing the proxy software by a properly working one
(e.g. squid, if we're talking FreeBSD on the proxy side) would be the
solution.



	Martin

-- 
"For the Snark's a peculiar creature, that won't
 Be caught in a commonplace way.
 Do all that you know, and try all that you don't;
 Not a chance must be wasted to-day!"
0
Martin
6/10/2008 5:01:36 PM
Reply: