{"id":9090,"date":"2022-11-22T22:08:09","date_gmt":"2022-11-22T21:08:09","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=9090"},"modified":"2024-07-23T23:04:49","modified_gmt":"2024-07-23T21:04:49","slug":"vsphere-vcsa-cannot-add-http-https-proxy","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/vsphere-vcsa-cannot-add-http-https-proxy\/","title":{"rendered":"vSphere VCSA: Cannot add a (http) https proxy"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_9090 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_9090')){$('.twoclick_social_bookmarks_post_9090').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"vSphere%20VCSA%3A%20Cannot%20add%20a%20%28http%29%20https%20proxy\",\"the_excerpt\":\"%0D%0AHi%2C%0D%0A%0D%0Awith%20the%20VCSA%20Gui%20it%20is%20not%20possible%20to%20to%20enter%20a%20http%20proxy%20for%20https%20target%20URLs.%20An%20error%3A%20HTTPS%20Cannot%20connect%20to%20proxy%20server%20occurs.%0D%0A%0D%0AThe%20most%20linux%20tools%20accept%20http%20URLs%20in%20the%20HTTPS_PROXY%20variable%20and%20this%20also%20works%20with%20the%20VCSA.%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\\\/vsphere-vcsa-cannot-add-http-https-proxy\\\/\",\"post_id\":9090,\"post_title_referrer_track\":\"vSphere+VCSA%3A+Cannot+add+a+%28http%29+https+proxy\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p><!-- https:\/\/definethedatacentre.com\/2021\/07\/30\/http-https-proxy-server-unreachable\/ --><br \/>\nHi,<\/p>\n<p>with the VCSA Gui it is not possible to to enter a http proxy for https target URLs. An error:<strong> HTTPS Cannot connect to proxy server<\/strong> occurs.<\/p>\n<p>The most linux tools accept http URLs in the <strong>HTTPS_PROXY<\/strong> variable and this also works with the VCSA.<br \/>\n<!--more--><\/p>\n<p>It&#8217;s possible to bypass this check. Open a ssh connection and edit the file <strong>\/etc\/sysconfig\/proxy<\/strong> and set HTTP_PROXY und HTTPS_PROXY.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# Enable a generation of the proxy settings to the profile.\r\n# This setting allows to turn the proxy on and off while\r\n# preserving the particular proxy setup.\r\n#\r\nPROXY_ENABLED=&quot;yes&quot;\r\n\r\n# Some programs (e.g. wget) support proxies if set in\r\n# the environment.\r\n# Example: HTTP_PROXY=&quot;http:\/\/proxy.provider.de:3128\/&quot;\r\nHTTP_PROXY=&quot;http:\/\/myProxy.myDomain.org:8081&quot;\r\n\r\n# Example: HTTPS_PROXY=&quot;https:\/\/proxy.provider.de:3128\/&quot;\r\nHTTPS_PROXY=&quot;http:\/\/myProxy.myDomain.org:8081&quot;\r\n\r\n# Example: FTP_PROXY=&quot;http:\/\/proxy.provider.de:3128\/&quot;\r\nFTP_PROXY=&quot;&quot;\r\n\r\n# Example: GOPHER_PROXY=&quot;http:\/\/proxy.provider.de:3128\/&quot;\r\nGOPHER_PROXY=&quot;&quot;\r\n\r\n# Example: SOCKS_PROXY=&quot;socks:\/\/proxy.example.com:8080&quot;\r\nSOCKS_PROXY=&quot;&quot;\r\n\r\n# Example: SOCKS5_SERVER=&quot;office-proxy.example.com:8881&quot;\r\nSOCKS5_SERVER=&quot;&quot;\r\n\r\n# Example: NO_PROXY=&quot;www.me.de, do.main, localhost&quot;\r\nNO_PROXY=&quot;localhost, 127.0.0.1,.*myDomain.org,10.200.10.0\/24&quot;\r\n\r\n<\/pre>\n<p>save the file and reboot the VCSA appliance.<\/p>\n<p><strong>IMPORTEND<\/strong>: When setting https_proxy I highly recommend to also set the <a href=\"https:\/\/kb.vmware.com\/s\/article\/81565\" rel=\"noopener\" target=\"_blank\">NO_PROXY<\/a> variable because vCenter will try to reach some services of the ESXi host via proxy. This will usually fail. At your domains in the RegEx (.*.myDomain.org) syntax and also add your local subnets. See example config above. Otherwise you get some unexspected behaviours. For example the import of an OVF tempate fails with error: <strong>ThrowableProxy.cause A general system error occurred: Transfer failed: Invalid response code: 502, note that HTTP\/s proxy is configured for the transfer<\/strong>.<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, with the VCSA Gui it is not possible to to enter a http proxy for https target URLs. An error: HTTPS Cannot connect to proxy server occurs. The most linux tools accept http URLs in the HTTPS_PROXY variable and this also works with the VCSA.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[1952,141,1932,1953,86,1524,14],"class_list":["post-9090","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-http_proxy","tag-proxy","tag-set-proxy-error","tag-throwableproxy","tag-vcenter","tag-vcsa","tag-vmware-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9090","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=9090"}],"version-history":[{"count":8,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9090\/revisions"}],"predecessor-version":[{"id":9821,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9090\/revisions\/9821"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=9090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=9090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=9090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}