mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-23 07:33:37 +05:00
(・x・)
This commit is contained in:
8
templates/openwrt-30-vpnroute.j2
Normal file
8
templates/openwrt-30-vpnroute.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/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 %}
|
||||
Reference in New Issue
Block a user