From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 02:14:53 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75CB016A4BF for ; Wed, 3 Sep 2003 02:14:53 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2623944003 for ; Wed, 3 Sep 2003 02:14:51 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h839E0Qr022076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Sep 2003 10:14:46 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h839E0oj022075; Wed, 3 Sep 2003 10:14:00 +0100 (BST) (envelope-from matthew) Date: Wed, 3 Sep 2003 10:14:00 +0100 From: Matthew Seaman To: a@jenisch.at Message-ID: <20030903091400.GA21134@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , a@jenisch.at, freebsd-questions@freebsd.org References: <20030903074549.GA3382@athena.oekb.co.at> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <20030903074549.GA3382@athena.oekb.co.at> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.5 required=5.0 tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org Subject: Re: pkg_add -r through Proxy/Firewall? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 09:14:53 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 03, 2003 at 09:45:49AM +0200, a@jenisch.at wrote: > Sitting behind a firewall that doesn't allow direkt ftp (neither > active nor passive) I'm looking for a way to fetch packages > (i.e. "pkg_add -r") from the Internet. What's possible though is doing > http or ftp through a proxy server. >=20 > So, how do I instruct pkg_add to download packages either via ftp or > http through a proxy? Set FTP_PROXY in your environment to the URL giving the scheme, hostname and port number of your proxy. eg: % setenv FTP_PROXY ftp://ftp-proxy.example.com:3128/ Depending on your precise setup, you might need to use FTP_LOGIN, FTP_PASSWORD and FTP_PASSIVE_MODE as well. See the fetch(3) man page for details. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/VbDYdtESqEQa7a0RAiTjAJ9jdNvvGHX8K7W2jlVVUQG9UJZhlQCghv7a tuN1fymu/KSU/LbPBB/x60M= =GhHn -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--