mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-26 00:00:42 +08:00
Completely removed all TUN30 route
This commit is contained in:
parent
144cbddf84
commit
41d43ad1e2
35 changed files with 7 additions and 144 deletions
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="TINC"
|
||||
UPSTREAM="caasih"
|
||||
DOWNSTREAM="ucbvax"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="septs"
|
||||
DOWNSTREAM="JerryXiao"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="septs"
|
||||
DOWNSTREAM="megumiLHS"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="septs"
|
||||
DOWNSTREAM="LanTian"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="L2TP"
|
||||
UPSTREAM="septs"
|
||||
DOWNSTREAM="ucbvax"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="ucbvax"
|
||||
DOWNSTREAM="santost12"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Tinc"
|
||||
UPSTREAM="ucbvax"
|
||||
DOWNSTREAM="NeoPDP-11"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="MagicNeko-JP03"
|
||||
DOWNSTREAM="chenx97"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="septs"
|
||||
DOWNSTREAM="MagicNeko-RU01"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="MagicNeko-JP03"
|
||||
DOWNSTREAM="megumiLHS"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="MagicNeko-JP03"
|
||||
DOWNSTREAM="frank-hsinchu"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="IPsec/GRE"
|
||||
UPSTREAM="septs"
|
||||
DOWNSTREAM="James58899"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="pan"
|
||||
DOWNSTREAM="MagicNeko-JP03"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Tinc"
|
||||
UPSTREAM="caasih"
|
||||
DOWNSTREAM="NeoPDP-11"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Direct"
|
||||
UPSTREAM="NeoSystem"
|
||||
DOWNSTREAM="NeoVAX"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="staph"
|
||||
DOWNSTREAM="MagicNeko-RU01"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Tinc"
|
||||
UPSTREAM="ucbvax"
|
||||
DOWNSTREAM="megumiLHS"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Tinc"
|
||||
UPSTREAM="pan"
|
||||
DOWNSTREAM="NeoPDP-11"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Tinc"
|
||||
UPSTREAM="pan"
|
||||
DOWNSTREAM="NeoSystem"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="cklvax"
|
||||
DOWNSTREAM="NeoSystem"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="pan"
|
||||
DOWNSTREAM="NeoSystem"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Tinc"
|
||||
UPSTREAM="ucbvax"
|
||||
DOWNSTREAM="MagicNeko-HK01"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="ucbvax"
|
||||
DOWNSTREAM="pan"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="MagicNeko-HK01"
|
||||
DOWNSTREAM="Icecat-GroupAccessNetwork"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Tinc"
|
||||
UPSTREAM="caasih"
|
||||
DOWNSTREAM="staph"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="ucbvax"
|
||||
DOWNSTREAM="chenx97"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="ucbvax"
|
||||
DOWNSTREAM="NeoSystem"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="JerryXiao"
|
||||
DOWNSTREAM="ucbvax"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="MagicNeko-JP03"
|
||||
DOWNSTREAM="JerryXiao"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="septs"
|
||||
DOWNSTREAM="MagicNeko-JP03"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="septs"
|
||||
DOWNSTREAM="frank-hsinchu"
|
|
@ -1,4 +0,0 @@
|
|||
TYPE="TUN30"
|
||||
PROTO="Gre"
|
||||
UPSTREAM="staph"
|
||||
DOWNSTREAM="septs"
|
|
@ -3,7 +3,6 @@ set -e
|
|||
|
||||
FILE="dns/db.10.127"
|
||||
TUN30_TEMP="$(mktemp)"
|
||||
PP_TEMP="$(mktemp)"
|
||||
LO_TEMP="$(mktemp)"
|
||||
|
||||
if [[ "$(uname)" = *BSD ]]; then
|
||||
|
@ -45,15 +44,6 @@ for i in *; do
|
|||
print_record "$upstream_ip" "$DOWNSTREAM.$UPSTREAM.tun30.neo."
|
||||
print_record "$downstream_ip" "$UPSTREAM.$DOWNSTREAM.tun30.neo."
|
||||
) >> "$TUN30_TEMP"
|
||||
elif [ "$TYPE" = "PTP" ]; then
|
||||
i="${i/PTP,/}"
|
||||
upstream_ip="${i%~*}"
|
||||
downstream_ip="${i#*~}"
|
||||
|
||||
(
|
||||
print_record "$(ipcalc "$upstream_ip" 0)" "$UPSTREAM.ptp.neo."
|
||||
print_record "$(ipcalc "$downstream_ip" 0)" "$DOWNSTREAM.ptp.neo."
|
||||
) >> "$PP_TEMP"
|
||||
elif [ "$TYPE" = "LO" ]; then
|
||||
ip="${i/,32/}"
|
||||
|
||||
|
@ -65,10 +55,8 @@ done
|
|||
{
|
||||
echo -e "\n; Tunnel /30 Addresses"
|
||||
sort -n < "$TUN30_TEMP"
|
||||
echo -e "\n; Point to Point Addresses"
|
||||
sort -n < "$PP_TEMP"
|
||||
echo -e "\n; Loopback Addresses"
|
||||
sort -n < "$LO_TEMP"
|
||||
} >> "$FILE"
|
||||
|
||||
rm -f "$TUN30_TEMP" "$PP_TEMP" "$LO_TEMP"
|
||||
rm -f "$TUN30_TEMP" "$LO_TEMP"
|
||||
|
|
|
@ -106,13 +106,16 @@ arg="$2" # Optional argument
|
|||
|
||||
case "$1" in
|
||||
asn)
|
||||
for i in asn/*; do
|
||||
(
|
||||
cd asn
|
||||
for i in *; do
|
||||
msg "${i#asn/}\n"
|
||||
source "$i"
|
||||
|
||||
printf "${BRIGHT}${FMAGENTA}%-16s${RESET}| ${BRIGHT}${FYELLOW}%s\n\t>> %s\n" \
|
||||
"$OWNER" "$NAME" "$DESC"
|
||||
done
|
||||
)
|
||||
;;
|
||||
route)
|
||||
for i in route*/*; do
|
||||
|
@ -122,7 +125,6 @@ route)
|
|||
case "$TYPE" in
|
||||
TUN30) print_tun30 "$subnet" "$PROTO" "$UPSTREAM" "$DOWNSTREAM";;
|
||||
SUBNET) print_subnet "$subnet" "$NAME" "$DESC";;
|
||||
PTP) print_ptp "$subnet" "$PROTO" "$UPSTREAM" "$DOWNSTREAM";;
|
||||
LO) print_lo "$subnet" "$NAME" "$DESC";;
|
||||
*) errmsg "Invalid \$TYPE in $i\n";;
|
||||
esac
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[Interface]
|
||||
Address = 10.127.0.xx/30
|
||||
Address = 10.127.x.x/32, fd80::/32
|
||||
PostUp = /path/to/wg-postup.sh 10.127.x.x/32 <Peer IPv6> <IPv6 src> fd80::/32 <Peer IPv6>
|
||||
# Custom DNS
|
||||
#DNS = 127.0.0.1
|
||||
# Set MTU to 1412 if using PPP
|
||||
|
|
Loading…
Reference in a new issue