[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BSD ports behind a unfriendly firewall



At 3:43 AM +0000 2001/10/04, hamish wrote:
>My OBSD box at works sits behind a firewall that I have no control over.
>They provide us with gateways for telnet and ftp.
>
>To grab a copy of the latest ISO I would have to do the following
>
>ftp gateway.myisp.com.au
>
>I would be prompted with a
>
>login:
>
>where I would type
>
>anonymous@ftp.aarnet.edu.au
>
>after this I can use all the normal ftp commands to get around the site and
>download anything I want.
>
>Because ftp,web and telnet are the only tcp ports allowed outgoing..  Is
>their anyway ..the I can get BSD's software ports to work ?
>
>My apologies if this has been sent to the wrong list.
>
>kind regards
>Hamish

if you have a web proxy of some sort (like squid) you can set the
environment variables

ftp_proxy=ftp://youproxy.domain:port/
http_proxy=http://yourproxy.domain:port/

and ftp will use these.

see man ftp

ftp://[user:password@]host[:port]/file  An ftp URL, retrieved using the
                                             ftp protocol if ftp_proxy isn't
                                             defined.  Otherwise, transfer us-
                                             ing http via the proxy defined in
                                             ftp_proxy. If user:password@ is
                                             given and ftp_proxy isn't de-
                                             fined, login as user with a pass-
                                             word of password.

http://host[:port]/file     An http URL, retrieved using the
                                             http protocol.  If http_proxy is
                                             defined, it is used as a URL to
                                             an HTTP proxy server.






_________________________________
Ian McWilliam.
Technical Officer,
School of Computing & IT
University of Western Sydney
Locked Bag 1797
Penrith South DC N.S.W,
Australia 1797.

mailto:ianm@cit.uws.edu.au
mailto:i.mcwilliam@uws.edu.au

Telephone: 61 247360 757
Fax:       61 247360 770
__________________________________