Files
ansible-openwrt-hirkn/templates/openwrt-30-rknroute.j2

9 lines
219 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 5
ip route add table vpn default dev tun0
{% endif %}