{"id":3114,"date":"2014-06-06T15:12:45","date_gmt":"2014-06-06T07:12:45","guid":{"rendered":"http:\/\/rmohan.com\/?p=3114"},"modified":"2014-06-06T15:12:45","modified_gmt":"2014-06-06T07:12:45","slug":"add-proxy-server-on-linux-and-unix-server","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3114","title":{"rendered":"Add Proxy Server on Linux and Unix Server"},"content":{"rendered":"<p>When you need to have proxy connection available to whole system, so dont bother with settings for firefox, yum proxy and similar, its simple as just plain file \ud83d\ude09<\/p>\n<p>just copy &#038; paste following code to terminal window. if you need other shell , like csh , just add another file with csh extension.<br \/>\nThis should work for every user on system.<\/p>\n<p>\/bin\/cat <<EOF > \/etc\/profile.d\/proxy.sh<br \/>\nexport http_proxy=http:\/\/host.name:port\/<br \/>\nexport ftp_proxy=http:\/\/host.name:port\/<br \/>\nexport HTTP_PROXY=http:\/\/host.name:port\/<br \/>\nexport FTP_PROXY=http:\/\/host.name:port\/<br \/>\nexport no_proxy=.localdomain.com<br \/>\nEOF<br \/>\nIn case , that you want enable proxy access to only specific user, just add lines to his bash-profile file<br \/>\necho &#8220;export http_proxy=http:\/\/hostname.or.ip:port&#8221;  >> \/user_home\/.bash_profile<br \/>\njust change hostname\/ip to your hostname\/ip of proxy server eg. myproxy.company.sk:8080<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you need to have proxy connection available to whole system, so dont bother with settings for firefox, yum proxy and similar, its simple as just plain file \ud83d\ude09<\/p>\n<p>just copy &#038; paste following code to terminal window. if you need other shell , like csh , just add another file with csh extension. This [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3114"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3114"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3114\/revisions"}],"predecessor-version":[{"id":3115,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3114\/revisions\/3115"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}