mihomo-kit/templates/rules/20-openvpn.yaml
2026-11-07 23:16:46 +08:00

9 lines
559 B
YAML

# the OpenVPN server itself (remote lines of the .ovpn) must not go into its own tunnel
- IP-CIDR,${@OVPN_SERVER_IPS}/32,DIRECT,no-resolve #@!ovpn_exit
- IP-CIDR,${@OVPN_SERVER_IPS}/32,OVPN-EXIT,no-resolve #@ovpn_exit
- DOMAIN,${@OVPN_SERVER_HOST},DIRECT #@!ovpn_exit
- DOMAIN,${@OVPN_SERVER_HOST},OVPN-EXIT #@ovpn_exit
# the networks that go through the VPN (OVPN_ROUTES; before the private-range DIRECT
# rules); a rule-provider so that ovpn.sh off can drop them without a restart
- RULE-SET,${OVPN_PROVIDER}-routes,${OVPN_GROUP},no-resolve