mihomo-kit/templates/rules/20-openvpn.yaml
2026-10-15 11:10:49 +03:00

9 lines
510 B
YAML

# OpenVPN server itself 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
# networks pushed by the server (before the private-range DIRECT rules);
# a rule-provider so that bmstu-otp.sh off can drop them without a restart
- RULE-SET,${OVPN_PROVIDER}-routes,${OVPN_GROUP},no-resolve