Created
December 14, 2025 08:12
-
-
Save em230418/f8322ec8864a2404795195529a3d699b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| iptables -t nat -N REDSOCKS | |
| iptables -t nat -A REDSOCKS -i end0 -j RETURN | |
| iptables -t nat -A REDSOCKS -i enxec9a0c1111c9 -p tcp -m tcp -j REDIRECT --to-ports 12345 | |
| #iptables -t nat -A PREROUTING -i enxec9a0c1111c9 -p tcp -d 34.160.111.145 -j REDSOCKS # myip.ru | |
| iptables -t nat -A PREROUTING -i enxec9a0c1111c9 -p tcp -d 142.250.0.0/15 -j REDSOCKS # www.youtube.com | |
| iptables -t nat -A PREROUTING -i enxec9a0c1111c9 -p tcp -d 64.233.160.0/19 -j REDSOCKS # wide-youtube.l.google.com | |
| iptables -t nat -A PREROUTING -i enxec9a0c1111c9 -p tcp -d 74.125.0.0/16 -j REDSOCKS # *.googlevideo.com | |
| iptables -t nat -A PREROUTING -i enxec9a0c1111c9 -p tcp -d 209.85.128.0/17 -j REDSOCKS # wide-youtube.l.google.com | |
| iptables -t nat -A PREROUTING -i enxec9a0c1111c9 -p tcp -d 172.217.0.0/16 -j REDSOCKS # google technical | |
| iptables -t nat -A PREROUTING -i enxec9a0c1111c9 -p tcp -d 108.177.0.0/17 -j REDSOCKS # google technical | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment