mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-20 05:54:27 +05:00
(・x・)
This commit is contained in:
@@ -9,13 +9,13 @@ check_repo() {
|
||||
|
||||
route_vpn () {
|
||||
if [ "$TUNNEL" == wg ]; then
|
||||
cat << EOF > /etc/hotplug.d/iface/30-rknroute
|
||||
cat << EOF > /etc/hotplug.d/iface/30-vpnroute
|
||||
#!/bin/sh
|
||||
|
||||
ip route add table vpn default dev wg0
|
||||
EOF
|
||||
elif [ "$TUNNEL" == singbox ] || [ "$TUNNEL" == ovpn ] || [ "$TUNNEL" == tun2socks ]; then
|
||||
cat << EOF > /etc/hotplug.d/iface/30-rknroute
|
||||
cat << EOF > /etc/hotplug.d/iface/30-vpnroute
|
||||
#!/bin/sh
|
||||
|
||||
sleep 10
|
||||
@@ -563,8 +563,8 @@ VERSION_ID=$(grep VERSION_ID /etc/os-release | awk -F '"' '{print $2}' | awk -F.
|
||||
if [ "$VERSION_ID" -ne 23 ]; then
|
||||
printf "\033[31;1mScript only support OpenWrt 23.05\033[0m\n"
|
||||
echo "For OpenWrt 21.02 and 22.03 you can:"
|
||||
echo "1) Use ansible https://github.com/itdoginfo/ansible-openwrt-hirkn"
|
||||
echo "2) Configure manually. Old manual: https://itdog.info/tochechnyj-obhod-blokirovok-rkn-na-routere-s-openwrt-s-pomoshhyu-wireguard-i-dnscrypt/"
|
||||
echo "1) Use ansible https://github.com/itdoginfo/domain-routing-openwrt"
|
||||
echo "2) Configure manually. Old manual: https://itdog.info/tochechnaya-marshrutizaciya-na-routere-s-openwrt-wireguard-i-dnscrypt/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user