{"id":392,"date":"2023-12-14T16:22:11","date_gmt":"2023-12-15T00:22:11","guid":{"rendered":"https:\/\/junsun.net\/wordpress\/?p=392"},"modified":"2023-12-14T16:22:11","modified_gmt":"2023-12-15T00:22:11","slug":"setup-naiveproxy-server","status":"publish","type":"post","link":"https:\/\/junsun.net\/wordpress\/2023\/12\/setup-naiveproxy-server\/","title":{"rendered":"Setup NaiveProxy Server"},"content":{"rendered":"\n<p><a href=\"https:\/\/github.com\/klzgrad\/naiveproxy\">NaiveProxy <\/a>is an unique tool that can potentially escape the most strict censorship firewall.  I thought I would give it a try.<\/p>\n\n\n\n<h2>Setup the server<\/h2>\n\n\n\n<p>This is actually the simple part.  <\/p>\n\n\n\n<ul><li>Follows <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/klzgrad\/naiveproxy\" target=\"_blank\">this page<\/a> to create a Caddyfile (See &#8220;Server setup&#8221;)<\/li><li>Go to <a href=\"https:\/\/github.com\/klzgrad\/forwardproxy\/releases\/latest\" target=\"_blank\" rel=\"noreferrer noopener\">this page<\/a> to download the binaries you need<\/li><li>Follows <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/klzgrad\/naiveproxy\/wiki\/Run-Caddy-as-a-daemon\" target=\"_blank\">this page<\/a> to set up a systemctl service.<\/li><\/ul>\n\n\n\n<h2>Set up client on Ubuntu<\/h2>\n\n\n\n<p>Client side is a little bit tricky and cumbersome to use.<\/p>\n\n\n\n<ul><li>Go to <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/klzgrad\/naiveproxy\/releases\/latest\" target=\"_blank\">this download page<\/a> to download the right naive client<ul><li>For x64 based PC, it should be something like <a href=\"https:\/\/github.com\/klzgrad\/naiveproxy\/releases\/download\/v120.0.6099.43-1\/naiveproxy-v120.0.6099.43-1-linux-x64.tar.xz\">naiveproxy-v120.0.6099.43-1-linux-x64.tar.xz<\/a><\/li><li>Extract &#8220;naive&#8221; binary<\/li><\/ul><\/li><li>Follow <a href=\"https:\/\/github.com\/klzgrad\/naiveproxy?tab=readme-ov-file\">the readme page <\/a>and create config.json file in the same directory<\/li><li>Open Ubuntu Settings\/Network\/Network Proxy<\/li><li>Choose &#8220;Manual&#8221;, and fill in &#8220;127.0.0.1:1080&#8221; for &#8220;Socks Host&#8221;, while leaving others empty (IMPORTANT!)  See picture below.<\/li><li>After that, download and start to use &#8220;start-naive&#8221; and &#8220;stop-naive&#8221; scripts to switch between using and not using proxy.  <ul><li>Note only browsers work with this scheme<\/li><li>And it seems only Chrome is working while Firefox is not working (bug?)<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"828\" src=\"https:\/\/junsun.net\/wordpress\/wp-content\/uploads\/2023\/12\/ubuntu-proxy-socks5-settings-1024x828.png\" alt=\"\" data-id=\"393\" data-full-url=\"https:\/\/junsun.net\/wordpress\/wp-content\/uploads\/2023\/12\/ubuntu-proxy-socks5-settings.png\" data-link=\"https:\/\/junsun.net\/wordpress\/?attachment_id=393\" class=\"wp-image-393\" srcset=\"https:\/\/junsun.net\/wordpress\/wp-content\/uploads\/2023\/12\/ubuntu-proxy-socks5-settings-1024x828.png 1024w, https:\/\/junsun.net\/wordpress\/wp-content\/uploads\/2023\/12\/ubuntu-proxy-socks5-settings-300x243.png 300w, https:\/\/junsun.net\/wordpress\/wp-content\/uploads\/2023\/12\/ubuntu-proxy-socks5-settings-768x621.png 768w, https:\/\/junsun.net\/wordpress\/wp-content\/uploads\/2023\/12\/ubuntu-proxy-socks5-settings.png 1051w\" sizes=\"(max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure><\/li><\/ul><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>NaiveProxy is an unique tool that can potentially escape the most strict censorship firewall. I thought I would give it a try. Setup the server This is actually the simple part. Follows this page to create a Caddyfile (See &#8220;Server setup&#8221;) Go to this page to download the binaries you need Follows this page to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/junsun.net\/wordpress\/2023\/12\/setup-naiveproxy-server\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setup NaiveProxy Server&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[90,88,89,83],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/392"}],"collection":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/comments?post=392"}],"version-history":[{"count":1,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":394,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/392\/revisions\/394"}],"wp:attachment":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/media?parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/categories?post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/tags?post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}