Skip to content

Instantly share code, notes, and snippets.

@davidliyutong
Last active July 27, 2024 11:08
Show Gist options
  • Save davidliyutong/5f36e8ffcad02309241faf54a0f3bd16 to your computer and use it in GitHub Desktop.
Save davidliyutong/5f36e8ffcad02309241faf54a0f3bd16 to your computer and use it in GitHub Desktop.
surge_personal_module.txt
#!name=davidliyutong personal module
#!desc=This is a custom module for Surge5 that sets direct routes for specific IP CIDRs.
[MITM]
hostname = %APPEND% 100.100.100.0/24, 100.99.0.0/16, 192.168.0.0/16, 10.0.0.0/8
[Rule]
IP-CIDR,100.100.100.0/24,DIRECT
IP-CIDR,100.99.0.0/16,DIRECT
IP-CIDR,192.168.0.0/16,DIRECT
IP-CIDR,10.0.0.0/8,DIRECT
PROCESS-NAME,/usr/bin/ssh,DIRECT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment