Skip to content

PhoenixHe-NV/highwayRedir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

How to use it

Replace <local_network> and <redirect_port>

git clone https://github.com/htc550605125/highwayRedir.git
cd highwayRedir/redir
go build
sudo cp redir /sbin
cd ..
sudo cp redir@.service /etc/systemd/system
sudo systemctl start redir@<redirect_port>

sudo ip route add local 0.0.0.0/0 dev lo table 100
sudo ip rule add fwmark 0x1 lookup 100
sudo iptables -t mangle -A PREROUTING -p tcp -s <local_network> ! -d <local_network> -j TPROXY --on-port <redirect_port> --tproxy-mark 0x1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages