Skip to content

Instantly share code, notes, and snippets.

@HernandoR
Created June 21, 2026 06:01
Show Gist options
  • Select an option

  • Save HernandoR/3261e15eaba30f17d051508dfe42b9d7 to your computer and use it in GitHub Desktop.

Select an option

Save HernandoR/3261e15eaba30f17d051508dfe42b9d7 to your computer and use it in GitHub Desktop.
stash_rules
dns:
nameserver-policy:
'+.mewtant.co': "1.0.0.1"
fake-ip-filter:
- '+.mewtant.co'
- '+.cache.amazonaws.com'
- '+.rds.amazonaws.com'
script:
shortcuts:
database: network == 'tcp' and dst_port == 5432
proxy:
- name: trophvpn
type: direct
interface-name: utun9
rules:
- SCRIPT,database,DIRECT
# 以下 IP-CIDR 规则可能不为最新,需要自己看 OpenVPN 的下发路由
- IP-CIDR,10.55.0.0/16,trophvpn
- IP-CIDR,10.54.0.0/16,trophvpn
- IP-CIDR,10.53.0.0/16,trophvpn
- IP-CIDR,10.52.0.0/16,trophvpn
- IP-CIDR,10.51.0.0/16,trophvpn
- IP-CIDR,10.50.0.0/16,trophvpn
- IP-CIDR,10.43.0.0/16,trophvpn
- IP-CIDR,10.42.0.1/32,trophvpn
- IP-CIDR,10.41.0.0/24,trophvpn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment