{"id":2442,"date":"2017-10-11T19:25:05","date_gmt":"2017-10-11T23:25:05","guid":{"rendered":"https:\/\/infotechguy.net\/?p=2442"},"modified":"2025-02-22T11:26:18","modified_gmt":"2025-02-22T16:26:18","slug":"apt-get-http-proxy-one-liner","status":"publish","type":"post","link":"https:\/\/infotechguy.net\/?p=2442","title":{"rendered":"Apt-Get HTTP Proxy &#8212;  One-Liner"},"content":{"rendered":"<p>I have a few Debian servers that are behind a firewall and they don&#8217;t have direct access to the internet. &#8220;Protected Servers&#8221;.\u00a0 I occasionally have to update their packages via a web proxy in the DMZ. I know there a countless ways to do this, but I wanted a one-liner that i can use without having to modify the apt-get application or my hosts default proxy settings.<\/p>\n<p>Hope this helps someone else, cheers!<\/p>\n<pre class=\"EnlighterJSRAW\">http_proxy=\"http:\/\/172.16.0.5:3128\" apt-get update<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a few Debian servers that are behind a firewall and they don&#8217;t have direct access to the internet. &#8220;Protected Servers&#8221;.\u00a0 I occasionally have to update their packages via a web proxy in the&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":4240,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[111],"class_list":["post-2442","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-scripting"],"_links":{"self":[{"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/posts\/2442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2442"}],"version-history":[{"count":1,"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/posts\/2442\/revisions"}],"predecessor-version":[{"id":4163,"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/posts\/2442\/revisions\/4163"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/media\/4240"}],"wp:attachment":[{"href":"https:\/\/infotechguy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}