Set http_proxy or https_proxy environment variables. e.g.:
http_proxy=http://proxy.mycorp.com/ <http://proxy.mycorp.com/> imgadm avail
Or
export http_proxy=http://proxy.mycorp.com/ <http://proxy.mycorp.com/>
imgadm avail
--
Brian Bennett
Systems Engineer, Cloud Operations
Joyent, Inc. | www.joyent.com <http://www.joyent.com/>
> On Sep 18, 2015, at 10:47 AM, Tim Boudreau <[email protected]> wrote:
>
> I'm attempting to get a SmartOS box working behind a corporate firewall, but
> with no joy which seems to be traceable to proxy support.
>
> I found this, which seemed to be fixed some months ago:
> https://github.com/joyent/smartos-live/issues/120
> <https://github.com/joyent/smartos-live/issues/120>
>
> Running SmartOS Live Image v0.147+ build: 20150903T073920Z, downloaded
> yesterday. Environment variables http_proxy and https_proxy are set in
> /root/.bashrc (do they need to be set elsewhere), and work fine for running
> wget, and curl works with --proxy -p
>
> root@ml ~ $ imgadm avail
> imgadm avail: error (InternalError): tunneling socket could not be
> established, cause=connect ECONNREFUSED
>
> whereas images.joyent.com <http://images.joyent.com/> is definitely reachable:
>
> root@ml ~ $ curl --insecure -i -p --proxy proxy.mycorp.com:80
> <http://proxy.mycorp.com/> https://images.joyent.com
> <https://images.joyent.com/>
> HTTP/1.0 200 Connection established
>
> HTTP/1.1 301 Moved Permanently
> ...
>
> Is there some other place to tell imgadm about the proxy?
>
> Meanwhile I've downloaded a base64 image to work with and installed it
> manually, but I'm guessing I can expect similar problems in zones with other
> tools, so it would be nice to clear this up.
>
> Thanks,
>
> Tim
>
> --
> http://timboudreau.com <http://timboudreau.com/>
> smartos-discuss | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/26986985-d0246faa> |
> Modify <https://www.listbox.com/member/?&> Your Subscription
> <http://www.listbox.com/>
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
