{"id":2598,"date":"2015-02-26T22:38:45","date_gmt":"2015-02-26T21:38:45","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=2598"},"modified":"2015-02-27T12:53:46","modified_gmt":"2015-02-27T11:53:46","slug":"debian-linux-define-a-system-wide-http-proxy","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/debian-linux-define-a-system-wide-http-proxy\/","title":{"rendered":"Debian Linux: Define a system wide HTTP proxy"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_2598 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_2598')){$('.twoclick_social_bookmarks_post_2598').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Debian%20Linux%3A%20Define%20a%20system%20wide%20HTTP%20proxy\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ato%20define%20a%20system%20wide%20HTTP%20proxy%20edit%20%2Fetc%2Fenvironment%20with%20your%20favourite%20text%20editor%20and%20insert%20the%20following%20lines%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/debian-linux-define-a-system-wide-http-proxy\\\/\",\"post_id\":2598,\"post_title_referrer_track\":\"Debian+Linux%3A+Define+a+system+wide+HTTP+proxy\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>to define a system wide HTTP proxy edit <strong>\/etc\/environment<\/strong> with your favourite text editor and insert the following lines<br \/>\n<!--more--><\/p>\n<pre><code>\r\n# HTTP Proxy\r\nhttp_proxy=http:\/\/proxynameORipaddress:TCPPort\r\n# If the HTTP Proxy requieres authentification\r\nhttp_proxy=http:\/\/&lt;yourProxyUserName&gt;:&lt;password&gt;@&lt;proxynameORipaddress&gt;:&lt;TCPPort&gt;\r\n\r\n# same procedure for HTTPS\r\nhttps_proxy=http:\/\/proxynameORipaddress:TCPPort\r\n# If the HTTPS Proxy requieres authentification\r\nhttps_proxy=http:\/\/&lt;yourProxyUserName&gt;:&lt;password&gt;@&lt;proxynameORipaddress&gt;:&lt;TCPPort&gt;\r\n\r\n# and for FTP\r\nftp_proxy=http:\/\/proxynameORipaddress:TCPPort\r\n# If the HTTPS Proxy requieres authentification\r\nftp_proxy=http:\/\/&lt;yourProxyUserName&gt;:&lt;password&gt;@&lt;proxynameORipaddress&gt;:&lt;TCPPort&gt;\r\n\r\n# For SOAP requests\r\nsoap_use_proxy=on\r\n\r\n# Do not use a proxy for \r\nno_proxy=localhost,yourinternaldomain.com;\r\n<\/code><\/pre>\n<p>apt commands also uses the proxy defined in the environment.<\/p>\n<p>When you want to configure a proxy especially for apt, create a new file <strong>99proxy<\/strong> in <strong>\/etc\/apt\/apt.conf.d\/<\/strong> and add <\/p>\n<pre><code>Acquire::http::proxy \"http:\/\/yourProxyUserName:password@proxynameORipaddress:TCPPort\";\r\nAcquire::https::proxy \"http:\/\/yourProxyUserName:password@proxynameORipaddress:TCPPort\";<\/code><\/pre>\n<p>Have fun \ud83d\ude42<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, to define a system wide HTTP proxy edit \/etc\/environment with your favourite text editor and insert the following lines<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[335,629,627,628,224,141,626],"class_list":["post-2598","post","type-post","status-publish","format-standard","hentry","category-linux","tag-debian","tag-ftp","tag-http","tag-https","tag-linux-2","tag-proxy","tag-system-wide"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/2598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=2598"}],"version-history":[{"count":13,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/2598\/revisions"}],"predecessor-version":[{"id":2612,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/2598\/revisions\/2612"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=2598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=2598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=2598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}