Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 838 Bytes

File metadata and controls

26 lines (21 loc) · 838 Bytes

Redirection Scripts

My simple scripts used for transparent proxy in many devices. I usually use them in conjunction with redsocks2.

It contains iptables setup for the following functionalities:

  • TCP transparent proxy
  • UDP transparent proxy (requires TPROXY kernel module)
  • Define IP ranges having no transparent proxy applied
  • Define IP ranges having Ad filter applied
  • Additional rules required by bypass gateway
  • White list of IP address ranges
  • Black list of IP address ranges

Usage

Run command below to update IP lists first.

./update_lists.sh

Modify scripts in this reop and copy them to your device and invoke the script redirect.sh properly. For example, you can invoke it in /etc/ppp/ip-up script or you can invoke it in rc.local.