From 02eaedfbef08dc9ef63b4aaa699e10e6e4731f62 Mon Sep 17 00:00:00 2001 From: sky Date: Sat, 7 Dec 2024 08:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20RMxxx=5Frgmii=5Ftoolkit.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add tailscale exit-node menu. --- RMxxx_rgmii_toolkit.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/RMxxx_rgmii_toolkit.sh b/RMxxx_rgmii_toolkit.sh index d8a65fa..4baff60 100644 --- a/RMxxx_rgmii_toolkit.sh +++ b/RMxxx_rgmii_toolkit.sh @@ -493,9 +493,11 @@ configure_tailscale() { echo -e "\e[38;5;27m3) Connect to Tailnet\e[0m" # Brown echo -e "\e[38;5;87m4) Connect to Tailnet with SSH ON\e[0m" # Light cyan echo -e "\e[38;5;105m5) Reconnect to Tailnet with SSH OFF\e[0m" # Light magenta - echo -e "\e[38;5;172m6) Disconnect from Tailnet (reconnects at reboot)\e[0m" # Light yellow - echo -e "\e[1;31m7) Logout from tailscale account\e[0m" - echo -e "\e[38;5;27m8) Return to Tailscale Menu\e[0m" + echo -e "\e[38;5;172m6) Connect to Tailnet with Exit Node and Subnet\e[0m" # Light yellow (New option) + echo -e "\e[38;5;172m7) Reconnect to Tailnet without Exit Node and Subnet\e[0m" # New option to reconnect without exit node and subnet + echo -e "\e[38;5;172m8) Disconnect from Tailnet (reconnects at reboot)\e[0m" # Disconnect + echo -e "\e[1;31m9) Logout from tailscale account\e[0m" + echo -e "\e[38;5;27m10) Return to Tailscale Menu\e[0m" read -p "Enter your choice: " config_choice case $config_choice in @@ -524,12 +526,14 @@ configure_tailscale() { echo "Tailscale Web UI Stopped and Disabled" remount_ro ;; - 3) $TAILSCALE_DIR/tailscale up --accept-dns=false --reset --advertise-exit-node --advertise-routes=192.168.225.0/24;; + 3) $TAILSCALE_DIR/tailscale up --accept-dns=false --reset;; 4) $TAILSCALE_DIR/tailscale up --ssh --accept-dns=false --reset;; 5) $TAILSCALE_DIR/tailscale up --accept-dns=false --reset;; - 6) $TAILSCALE_DIR/tailscale down;; - 7) $TAILSCALE_DIR/tailscale logout;; - 8) break;; + 6) $TAILSCALE_DIR/tailscale up --accept-dns=false --reset --advertise-exit-node --advertise-routes=192.168.225.0/24;; + 7) $TAILSCALE_DIR/tailscale up --accept-dns=false --reset;; + 8) $TAILSCALE_DIR/tailscale down;; + 9) $TAILSCALE_DIR/tailscale logout;; + 10) break;; *) echo "Invalid option";; esac done