{"id":20318652,"url":"https://github.com/yyasha/raspberrypi_router","last_synced_at":"2025-04-11T18:07:47.085Z","repository":{"id":45163082,"uuid":"404820030","full_name":"yyasha/raspberrypi_router","owner":"yyasha","description":"Tor ready router","archived":false,"fork":false,"pushed_at":"2022-06-15T11:56:02.000Z","size":89,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-11T18:05:37.359Z","etag":null,"topics":["go","iptables","tor","tor-network"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yyasha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-09T17:56:16.000Z","updated_at":"2024-06-12T17:37:49.000Z","dependencies_parsed_at":"2022-08-28T14:12:46.845Z","dependency_job_id":null,"html_url":"https://github.com/yyasha/raspberrypi_router","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyasha%2Fraspberrypi_router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyasha%2Fraspberrypi_router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyasha%2Fraspberrypi_router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyasha%2Fraspberrypi_router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yyasha","download_url":"https://codeload.github.com/yyasha/raspberrypi_router/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456369,"owners_count":21106603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","iptables","tor","tor-network"],"created_at":"2024-11-14T18:40:34.212Z","updated_at":"2025-04-11T18:07:47.059Z","avatar_url":"https://github.com/yyasha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"DPI installing\n------------\ndon't forget to replace the username with your username:\n```\nmkdir build\ncd build\nwget https://openresty.org/download/openresty-1.19.9.1.tar.gz   # or latest release from https://openresty.org/en/download.html\ntar -xzvf openresty-1.19.9.1.tar.gz\nmv openresty-1.19.9.1 openresty\ngit clone https://github.com/fffonion/lua-resty-openssl\ngit clone https://github.com/fffonion/lua-resty-openssl-aux-module\ngit clone https://github.com/Evengard/lua-resty-getorigdest-module\ngit clone https://github.com/iryont/lua-struct\ngit clone https://github.com/Evengard/lua-resty-socks5\ncd openresty\n./configure --prefix=/home/username/nginxdpi --with-cc=gcc --add-module=/home/username/build/lua-resty-openssl-aux-module --add-module=/home/username/build/lua-resty-openssl-aux-module/stream --add-module=/home/username/build/lua-resty-getorigdest-module/src\nmake -j4 \u0026\u0026 make install\n\ncp -r /home/username/build/lua-resty-getorigdest-module/lualib/* /home/username/nginxdpi/lualib/ \ncp -r /home/username/build/lua-resty-openssl/lib/resty/* /home/username/nginxdpi/lualib/resty/\ncp -r /home/username/build/lua-resty-openssl-aux-module/lualib/* /home/username/nginxdpi/lualib/\ncp /home/username/build/lua-resty-socks5/socks5.lua /home/username/nginxdpi/lualib/resty/\ncp /home/username/build/lua-struct/src/struct.lua /home/username/nginxdpi/lualib/\n```\nedit scripts/startDpi.sh:  \n\u003e replace eth0 with your interface  \n\u003e Replace /opt/nginxdpi/bin/openresty and /opt/nginxdpi/cfg/nginx.conf to your path\n\nedit scripts/Masking.sh, scripts/startDefaultIptables.sh, scripts/startTor.sh, startUserTor.sh and scripts/startGlobalTor.sh:  \n\u003e replace 9040 with your TransPort  \n\u003e replace eth0 with your interface\n\nedit DPI/nginx.conf:  \n\u003e Replace 127.0.0.1 and 9050 with the host and port of your SOCKS5 server!  \n\u003e Also replace 192.168.1.1 with the IP address of the DNS server that you want to resolve the hosts to.    \n\u003e Move nginx.conf to /opt/nginxdpi/cfg/nginx.conf    \n\nTOR installing\n------------\n```\napt install tor\nsudo nano /etc/tor/torrc\n```\nPaste in file and replace 192.168.1.1 to your ip:\n```\nSocksPort 192.168.1.1:9050\nSocksPort 127.0.0.1:9050\nSocksPolicy accept 192.168.1.0/24\nRunAsDaemon 1\nDataDirectory /var/lib/tor\n\nVirtualAddrNetwork 10.0.0.0/10\nAutomapHostsOnResolve 1\nTransPort 9040\nDNSPort 192.168.1.1:9053\n```\n\nGo installing\n-----------\nOfficial guide: https://golang.org/doc/install\n\nRemaining actions\n------------\nOpen scripts/startDefaultDns.sh and replace 192.168.1.1:53 to your static dns, replace eth0 with your interface   \nOpen scripts/startTorDns.sh and replace 192.168.1.1:9053 to your Tor DNS ip and port, replace eth0 with your interface  \n\nStarting the router\n------------\n```\ngo run server.go\n```\nor\n```\ngo build server.go\n./server\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyyasha%2Fraspberrypi_router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyyasha%2Fraspberrypi_router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyyasha%2Fraspberrypi_router/lists"}