GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yyasha/raspberrypi_router: Tor ready router

BranchesTags
Open more actions menu

Latest commit

 

History

94 Commits
94 Commits

Folders and files

NameName
Last commit message
Last commit date
DPI
DPI
 
 
images
images
 
 
scripts
scripts
 
 
static
static
 
 
templates
templates
 
 
README.md
README.md
 
 
domains.list
domains.list
 
 
server.go
server.go
 
 
setup.sh
setup.sh
 
 
subnets.list
subnets.list
 
 

Repository files navigation

DPI installing

don't forget to replace the username with your username:

mkdir build
cd build
wget https://openresty.org/download/openresty-1.19.9.1.tar.gz   # or latest release from https://openresty.org/en/download.html
tar -xzvf openresty-1.19.9.1.tar.gz
mv openresty-1.19.9.1 openresty
git clone https://github.com/fffonion/lua-resty-openssl
git clone https://github.com/fffonion/lua-resty-openssl-aux-module
git clone https://github.com/Evengard/lua-resty-getorigdest-module
git clone https://github.com/iryont/lua-struct
git clone https://github.com/Evengard/lua-resty-socks5
cd openresty
./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
make -j4 && make install

cp -r /home/username/build/lua-resty-getorigdest-module/lualib/* /home/username/nginxdpi/lualib/ 
cp -r /home/username/build/lua-resty-openssl/lib/resty/* /home/username/nginxdpi/lualib/resty/
cp -r /home/username/build/lua-resty-openssl-aux-module/lualib/* /home/username/nginxdpi/lualib/
cp /home/username/build/lua-resty-socks5/socks5.lua /home/username/nginxdpi/lualib/resty/
cp /home/username/build/lua-struct/src/struct.lua /home/username/nginxdpi/lualib/

edit scripts/startDpi.sh:

replace eth0 with your interface
Replace /opt/nginxdpi/bin/openresty and /opt/nginxdpi/cfg/nginx.conf to your path

edit scripts/Masking.sh, scripts/startDefaultIptables.sh, scripts/startTor.sh, startUserTor.sh and scripts/startGlobalTor.sh:

replace 9040 with your TransPort
replace eth0 with your interface

edit DPI/nginx.conf:

Replace 127.0.0.1 and 9050 with the host and port of your SOCKS5 server!
Also replace 192.168.1.1 with the IP address of the DNS server that you want to resolve the hosts to.
Move nginx.conf to /opt/nginxdpi/cfg/nginx.conf

TOR installing

apt install tor
sudo nano /etc/tor/torrc

Paste in file and replace 192.168.1.1 to your ip:

SocksPort 192.168.1.1:9050
SocksPort 127.0.0.1:9050
SocksPolicy accept 192.168.1.0/24
RunAsDaemon 1
DataDirectory /var/lib/tor

VirtualAddrNetwork 10.0.0.0/10
AutomapHostsOnResolve 1
TransPort 9040
DNSPort 192.168.1.1:9053

Go installing

Official guide: https://golang.org/doc/install

Remaining actions

Open scripts/startDefaultDns.sh and replace 192.168.1.1:53 to your static dns, replace eth0 with your interface
Open scripts/startTorDns.sh and replace 192.168.1.1:9053 to your Tor DNS ip and port, replace eth0 with your interface

Starting the router

go run server.go

or

go build server.go
./server

About

Tor ready router

Topics

goiptablestortor-network

Resources

Readme
Activity

Stars

16 stars

Watchers

3 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.