更新 RMxxx_rgmii_toolkit.sh
add tailscale exit-node menu.
This commit is contained in:
parent
254390fb88
commit
02eaedfbef
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user