mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-25 08:33:36 +05:00
Compare commits
3 Commits
592e590656
...
8591f4fe4e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8591f4fe4e | ||
|
|
ec3655a8e9 | ||
|
|
3f069118ca |
@@ -94,11 +94,6 @@ if curl -6 -s https://ifconfig.io | egrep -q "(::)?[0-9a-fA-F]{1,4}(::?[0-9a-fA-
|
||||
checkpoint_false "IPv6 detected. This script does not currently work with IPv6"
|
||||
fi
|
||||
|
||||
# PPPoE
|
||||
if uci show network.wan.proto | grep -q "pppoe"; then
|
||||
checkpoint_false "PPPoE is used. That could be a problem"
|
||||
fi
|
||||
|
||||
# Tunnels
|
||||
WIREGUARD=$(opkg list-installed | grep -c wireguard-tools )
|
||||
if [ $WIREGUARD -eq 1 ]; then
|
||||
|
||||
@@ -331,8 +331,6 @@ EOF
|
||||
echo "This IP is not valid. Please repeat"
|
||||
fi
|
||||
done
|
||||
|
||||
read -r -p "Enter DNS servers separated by comma (DNS from [Interface]):"$'\n' AWG_DNS
|
||||
|
||||
read -r -p "Enter Jc value (from [Interface]):"$'\n' AWG_JC
|
||||
read -r -p "Enter Jmin value (from [Interface]):"$'\n' AWG_JMIN
|
||||
@@ -360,10 +358,6 @@ EOF
|
||||
uci set network.awg0.listen_port='51820'
|
||||
uci set network.awg0.addresses=$AWG_IP
|
||||
|
||||
for DNS in $(echo $AWG_DNS | tr ',' ' '); do
|
||||
uci add_list network.awg0.dns=$DNS
|
||||
done
|
||||
|
||||
uci set network.awg0.awg_jc=$AWG_JC
|
||||
uci set network.awg0.awg_jmin=$AWG_JMIN
|
||||
uci set network.awg0.awg_jmax=$AWG_JMAX
|
||||
|
||||
Reference in New Issue
Block a user