{"id":699,"date":"2023-01-19T01:54:24","date_gmt":"2023-01-18T22:54:24","guid":{"rendered":"https:\/\/melic.com\/wp1\/?p=699"},"modified":"2023-01-19T02:01:22","modified_gmt":"2023-01-18T23:01:22","slug":"postman-ve-socks-proxy","status":"publish","type":"post","link":"https:\/\/melic.com\/wp1\/postman-ve-socks-proxy\/","title":{"rendered":"Postman ve Socks Proxy"},"content":{"rendered":"\n<p>uzaktaki bir sunucuya en g\u00fcvenli \u015fekilde ba\u011flanabilmenizin bir metodu da &#8220;SSH Proxy&#8221; kullanmakt\u0131r. En ucuz ve basit olan\u0131 diyelim en az\u0131ndan.<\/p>\n\n\n\n<p>Bu yaz\u0131mda \u00f6ncelikle Postman uygulamas\u0131n\u0131n Socks proxy ayar\u0131 olmad\u0131\u011f\u0131n\u0131, bu y\u00fczden http ve ya https proxy kullanm\u0131yorsan\u0131z Postman \u00fczerinden bir proxy kullanarak ula\u015fmak istedi\u011finiz sunucuya eri\u015femeyece\u011finizi \u00fcz\u00fclerek bildirmek isterim. \u00c7\u00f6z\u00fcm var m\u0131 derseniz i\u015fte o bu yaz\u0131n\u0131n i\u00e7inde anlataca\u011f\u0131m konu bu.<\/p>\n\n\n\n<p>\u00d6ncelikle bir proxy kullanabildi\u011finizi var say\u0131yorum. Proxy kullanmak ile ilgili ba\u015fka bir yaz\u0131 yazmam gerekti\u011fini fark ettim yaz\u0131nca buraya linkini atar\u0131m. Ama dedi\u011fim gibi bir proxy kulland\u0131\u011f\u0131n\u0131z\u0131 varsay\u0131yorum.<\/p>\n\n\n\n<p>\u00d6ncelikle <a href=\"https:\/\/www.nodejs.org\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.nodejs.org<\/a> sitesine gidip bilgisayar\u0131n\u0131za Node.js i y\u00fcklemeniz. Sizi herhangi bir uygulama y\u00fcklemeye y\u00f6nlendirmektense Node.js gibi \u00f6zellikle yaz\u0131l\u0131m ile u\u011fra\u015f\u0131yorsan\u0131z zaten bilgisayar\u0131n\u0131zda y\u00fckl\u00fc olmas\u0131 gereken a\u00e7\u0131k kaynak kodlu \u00e7oklu(multi) platform javascript tabanl\u0131 uygulama ortam\u0131 arac\u0131na y\u00f6nlendirmeyi uygun buluyorum. Malumunuz son d\u00f6nemde hemen hemen bir \u00e7ok proje i\u00e7in \u00e7ok pop\u00fcler bir ara\u00e7.<\/p>\n\n\n\n<p>K\u0131saca de\u011finmek gerekirse Node.js JavaScript V8 motorunu  (evet bir spor araba gibi) \u00fczerinde \u00e7al\u0131\u015f\u0131r, Google Chrome&#8217;un \u00e7ekirdek yaz\u0131l\u0131m\u0131n\u0131 kullan\u0131r. Bu \u00f6zellikleri ile Node.js olduk\u00e7a performansl\u0131 olmas\u0131n\u0131 sa\u011flar.<\/p>\n\n\n\n<p>Peki Node.js indirip kurdunuz ve zaten hali haz\u0131rda ssh ile proxy&#8217;e ba\u011fl\u0131s\u0131n\u0131z.\u015eimdi ne yapaca\u011f\u0131z derseniz art\u0131k gerisi \u00e7ocuk oyunca\u011f\u0131 diyebilirim.<\/p>\n\n\n\n<p>PowerShell&#8217;i a\u00e7\u0131yorsunuz ve ilk \u00f6nce \u015fu komtu giriyorsunuz :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\Windows\\system32&gt; Get-ExecutionPolicy -List \n\nPS C:\\Windows\\system32&gt; Get-ExecutionPolicy -List\n\n        Scope ExecutionPolicy\n        ----- ---------------\nMachinePolicy       Undefined\n   UserPolicy       Undefined\n      Process       Undefined\n  CurrentUser       Undefined\n LocalMachine       Undefined\n<\/code><\/pre>\n\n\n\n<p>E\u011fer cevap yukar\u0131daki gibi CurrentUser undefined ise:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser\nExecution Policy Change\nThe execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help\ntopic at https:\/go.microsoft.com\/fwlink\/?LinkID=135170. Do you want to change the execution policy?\n&#91;Y] Yes  &#91;A] Yes to All  &#91;N] No  &#91;L] No to All  &#91;S] Suspend  &#91;?] Help (default is \"N\"): Y<\/code><\/pre>\n\n\n\n<p>Komutunu giriyorsunuz ve pe\u015finden Y harfine basarak yetkilendirmenizi tamaml\u0131yorsunuz, aksi halde i\u015fletim sisteminiz npm mod\u00fclleri kurman\u0131za ve proxy y\u00f6nlendirmenize m\u00fcsade etmeyecektir. L\u00fctfen yapt\u0131\u011f\u0131n\u0131z i\u015flemi a\u015fa\u011f\u0131daki komutu girerek tekrardan kontrol ediniz.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\Windows\\system32&gt; Get-ExecutionPolicy -List\n\n        Scope ExecutionPolicy\n        ----- ---------------\nMachinePolicy       Undefined\n   UserPolicy       Undefined\n      Process       Undefined\n  CurrentUser    RemoteSigned\n LocalMachine       Undefined\n<\/code><\/pre>\n\n\n\n<p>Evet art\u0131k \u00f6nce ihtiyac\u0131m\u0131z olan hpts mod\u00fcl\u00fcn\u00fc npm ile kural\u0131m.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\Windows\\system32&gt; npm install -g http-proxy-to-socks\n\nve sonra\n\nPS C:\\Windows\\system32&gt; hpts -s 127.0.0.1:8080 -p 8081\nSOCKS: 127.0.0.1:8080\nhttp-proxy listening: 127.0.0.1:8081<\/code><\/pre>\n\n\n\n<p>Fark ettiyseniz d\u0131\u015far\u0131ya 127.0.0.1:8080 porttan eri\u015fim sa\u011flarken i\u00e7eriden proxy&#8217;e 8081 no&#8217;lu porttan eri\u015fim sa\u011fl\u0131yoruz. E\u011fer hem proxy&#8217;niz d\u00fczg\u00fcn \u00e7al\u0131\u015f\u0131yorsa hem de hpts mod\u00fcl\u00fcm\u00fcz aktif hale geldiyse art\u0131k yapmam\u0131z gereken tek \u015fey Postman \u00fczerinde gerekli d\u00fczenlemeleri yapmak: <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/melic.com\/wp1\/wp-content\/uploads\/2023\/01\/postman_proxy-460x434.png\" alt=\"\" class=\"wp-image-700\" width=\"613\" height=\"578\" srcset=\"https:\/\/melic.com\/wp1\/wp-content\/uploads\/2023\/01\/postman_proxy-460x434.png 460w, https:\/\/melic.com\/wp1\/wp-content\/uploads\/2023\/01\/postman_proxy-200x189.png 200w, https:\/\/melic.com\/wp1\/wp-content\/uploads\/2023\/01\/postman_proxy.png 716w\" sizes=\"auto, (max-width: 613px) 100vw, 613px\" \/><figcaption>Postman Proxy Ayarlar\u0131<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Ayarlar men\u00fcs\u00fcnde proxy ad\u0131m\u0131nda alt\u0131n\u0131 k\u0131rm\u0131z\u0131 ile \u00e7izdi\u011fim g\u00f6rd\u00fc\u011f\u00fcn\u00fcz yerleri ayn\u0131 \u015fekilde ayarlarsan\u0131z bir s\u0131k\u0131nt\u0131 olmadan Postman ile istedi\u011finiz servislere rahatl\u0131kla ve g\u00fcvenli bir \u015fekilde eri\u015febilirsiniz.<\/p>\n\n\n\n<p>Bu arada kulland\u0131\u011f\u0131n\u0131z proxy&#8217;nin f\u00fczg\u00fcn \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131 kontrol etmek istiyorsan\u0131z size tavisyem <a rel=\"noreferrer noopener\" href=\"https:\/\/developer.mozilla.org\/en-US\/\" target=\"_blank\">MDN&#8217;nin <\/a> <a rel=\"noreferrer noopener\" href=\"https:\/\/www.mozilla.org\/en-US\/firefox\/new\/\" target=\"_blank\">Firefox taray\u0131c\u0131s\u0131n\u0131<\/a> kurup gerekli proxy ayarlar\u0131n\u0131 kurman\u0131z\u0131 \u00f6neririm. Maalesef Chrome sistemin proxy ayarlar\u0131n\u0131 kullan\u0131yor kendi default ayarlar\u0131n\u0131z\u0131 de\u011fi\u015ftirmeden Socks proxy kullanamazs\u0131n\u0131z. Buyrun Firefox&#8217;da yapaca\u011f\u0131n\u0131z ayarlar :<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/melic.com\/wp1\/wp-content\/uploads\/2023\/01\/firefox_proxy_settings-460x399.png\" alt=\"\" class=\"wp-image-702\" width=\"623\" height=\"540\" srcset=\"https:\/\/melic.com\/wp1\/wp-content\/uploads\/2023\/01\/firefox_proxy_settings-460x399.png 460w, https:\/\/melic.com\/wp1\/wp-content\/uploads\/2023\/01\/firefox_proxy_settings-200x174.png 200w, https:\/\/melic.com\/wp1\/wp-content\/uploads\/2023\/01\/firefox_proxy_settings-768x667.png 768w, https:\/\/melic.com\/wp1\/wp-content\/uploads\/2023\/01\/firefox_proxy_settings.png 1120w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><figcaption>Firefox Proxy Socks v5 Ayarlar\u0131<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Mutlu ve g\u00fcvenli kodlamalar ve \u00e7al\u0131\u015fmalar.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>uzaktaki bir sunucuya en g\u00fcvenli \u015fekilde ba\u011flanabilmenizin bir metodu da &#8220;SSH Proxy&#8221; kullanmakt\u0131r. En ucuz ve basit olan\u0131 diyelim en az\u0131ndan. Bu yaz\u0131mda \u00f6ncelikle Postman uygulamas\u0131n\u0131n Socks proxy ayar\u0131 olmad\u0131\u011f\u0131n\u0131, bu y\u00fczden http ve ya https proxy kullanm\u0131yorsan\u0131z Postman \u00fczerinden bir proxy kullanarak ula\u015fmak istedi\u011finiz sunucuya eri\u015femeyece\u011finizi \u00fcz\u00fclerek bildirmek isterim&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":706,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,54,4,229],"tags":[338,342,340,344,343,339,341,345,168,337,335,336,151],"class_list":["post-699","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-genel","category-programala-dilleri-ve-programlamaya-giris","category-sorun-cozumleri","category-sunucular","tag-338","tag-firefox","tag-hpts","tag-mdn","tag-mozilla-developer-network","tag-node-js","tag-port-forwarding","tag-postman","tag-powershell","tag-proxy","tag-socksv5","tag-socksv5-proxy","tag-windows"],"_links":{"self":[{"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/posts\/699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/comments?post=699"}],"version-history":[{"count":3,"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/posts\/699\/revisions"}],"predecessor-version":[{"id":705,"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/posts\/699\/revisions\/705"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/media\/706"}],"wp:attachment":[{"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/media?parent=699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/categories?post=699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/melic.com\/wp1\/wp-json\/wp\/v2\/tags?post=699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}