{"id":7286,"date":"2022-11-20T03:15:42","date_gmt":"2022-11-20T03:15:42","guid":{"rendered":"https:\/\/netpipe.ca\/?p=7286"},"modified":"2022-11-21T03:36:16","modified_gmt":"2022-11-21T03:36:16","slug":"openwrt-tor-server-notes","status":"publish","type":"post","link":"https:\/\/netpipe.ca\/?p=7286","title":{"rendered":"openwrt tor server notes"},"content":{"rendered":"<p>configuring a tor openwrt setup with uhttpd was very easy and hastle free. here are some notes to help you with yours.<\/p>\n<p>opkg update;opkg install tor openssh-sftp-server php8 php8-cli<br \/>\nmkdir \/www\/tor or \/root\/tor<\/p>\n<p>vi \/etc\/config\/uhttpd    &#8212;  add these lines<\/p>\n<p>config uhttpd &#8216;secondary&#8217;<br \/>\n        option home &#8216;\/root\/tor&#8217;<br \/>\n        option redirect_https &#8216;0&#8217;<br \/>\n        option rfc1918_filter &#8216;1&#8217;<br \/>\n        option max_requests &#8216;3&#8217;<br \/>\n        option max_connections &#8216;100&#8217;<br \/>\n        option cert &#8216;\/etc\/uhttpd.crt&#8217;<br \/>\n        option key &#8216;\/etc\/uhttpd.key&#8217;<br \/>\n        list index_page &#8216;index.php&#8217;<br \/>\n        option tcp_keepalive &#8216;1&#8217;<br \/>\n        list interpreter &#8216;.php=\/usr\/bin\/php8-cgi&#8217;<br \/>\n        list listen_http &#8216;0.0.0.0:81&#8217;<\/p>\n<p>vi \/etc\/tor\/torrc     &#8212; add these lines<br \/>\nHiddenServiceDir \/var\/lib\/tor\/hidden_service\/<br \/>\nHiddenServicePort 80 127.0.0.1:81    <\/p>\n<p>service restart tor<\/p>\n<p>cat \/var\/lib\/tor\/hidden_service\/hostname  << this will have your website address in it\n<\/p>\n<p>sftp is a good combination with this then upload site with filezilla<\/p>\n<p>apache2 is also another good easy to use option <\/p>\n<p>DocumentRoot &#8220;\/usr\/share\/apache2\/htdocs&#8221;   <br \/>\nDocumentRoot &#8220;\/root\/tor&#8221;       <br \/> <br \/>\n<Directory \"\/root\/tor\"><\/p>\n<p>https:\/\/www.youtube.com\/watch?v=PLmeHkmkbOE adding php support just change to php8-cli<\/p>\n<p>ext root is a good option for extra space too, easy to do with luci but takes rebooting after installing blockmount and fsutils<\/p>\n","protected":false},"excerpt":{"rendered":"<p>configuring a tor openwrt setup with uhttpd was very easy and hastle free. here are some notes to help you with yours. opkg update;opkg install tor openssh-sftp-server php8 php8-cli mkdir \/www\/tor or \/root\/tor vi \/etc\/config\/uhttpd &#8212; add these lines config uhttpd &#8216;secondary&#8217; option home &#8216;\/root\/tor&#8217; option redirect_https &#8216;0&#8217; option rfc1918_filter &#8216;1&#8217; option max_requests &#8216;3&#8217; option [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7286","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/netpipe.ca\/index.php?rest_route=\/wp\/v2\/posts\/7286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netpipe.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netpipe.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netpipe.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netpipe.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7286"}],"version-history":[{"count":7,"href":"https:\/\/netpipe.ca\/index.php?rest_route=\/wp\/v2\/posts\/7286\/revisions"}],"predecessor-version":[{"id":7293,"href":"https:\/\/netpipe.ca\/index.php?rest_route=\/wp\/v2\/posts\/7286\/revisions\/7293"}],"wp:attachment":[{"href":"https:\/\/netpipe.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netpipe.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netpipe.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}