Files
ansible-openwrt-hirkn/templates/openwrt-30-rknroute.j2
2024-01-12 13:33:19 +03:00

9 lines
220 B
Django/Jinja

#!/bin/sh
{% if tunnel == "wg" %}
ip route add table vpn default dev wg0
{% elif (tunnel == "openvpn") or (tunnel == "singbox") or (tunnel == "tun2socks") %}
sleep 10
ip route add table vpn default dev tun0
{% endif %}