Files
ansible-openwrt-hirkn/templates/openwrt-30-vpnroute.j2
itdoginfo d0fad434cc (・x・)
2024-03-09 12:29:54 +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 %}