# Proxy

**URL:** https://discourse.chef.io/t/proxy/6452
**Category:** Chef Infra (archive)
**Created:** [March 25, 2015, 11:58pm UTC](https://discourse.chef.io/t/proxy/6452 "2015-03-25T23:58:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Dodwell](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/michael_dodwell/32/139_2.png) [@Michael\_Dodwell](https://discourse.chef.io/u/Michael_Dodwell)
#### Post date: [March 25, 2015, 11:58pm UTC](https://discourse.chef.io/t/proxy/6452/1 "2015-03-25T23:58:40Z")

</div>

Hi,

So I’m administrating a private chef server behind a proxy/firewall.

I have environment variables: http\_proxy, https\_proxy, HTTP\_PROXY,  
HTTPS\_PROXY setup to allow things like gem and curl/wget to access internet  
sites.

However when trying to do ‘knife cookbook list’ I get a 404 as the proxy  
isn’t allowed to connect back into the network.

I added a no\_proxy to the knife.rb with a list of all the hosts internally  
to the network but it still appears that ‘knife cookbook’ still tries to go  
via the proxy settings in those environment variables.

This is double annoying because if you -VV the (knife cookbook list)  
command it doesn’t mention that it’s doing this (connecting to proxy) so it  
was confusing when first discovered.

Is this a bug? Or am i missing the point of no\_proxy in my knife.rb?
