Skip to content

MHSEA/Rayhunter-Tailscale-Telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

TP-Link M7350 V9 – Rayhunter + Tailscale + Telegram

📡 This setup guide applies specifically to the TP-Link M7350 V9 running BusyBox-based firmware with Tailscale and Rayhunter installed.


📌 Device Specs

  • Device: TP-Link M7350 V9
  • Firmware Version: 9.0.3 Build 241219 Rel.1089n
  • Rayhunter Version: 0.7.0
  • CPU: ARMv7l (Qualcomm MDM9607)
  • OS: BusyBox/Linux-based embedded firmware
  • Tailscale: arm: tailscale_1.88.3_arm.tgz

📥 Rayhunter Installation

Follow the official instructions to install Rayhunter:

🔗 Rayhunter GitHub Repository
📖 Installation Guide


🛠️ Installing Tailscale on SD Card + Auto-Startup on Qualcomm MDM9607 Device

📁 SD Card Layout

Create the following structure on your SD card (e.g., mounted under /media/sdcard/):

image

⚙️ Step 1: Download Tailscale Binaries

Download the Tailscale static binaries: arm: tailscale_1.88.3_arm.tgz

Extract and copy them to /media/sdcard/Tail/.

image

Make sure they are executable:

chmod +x /media/sdcard/Tail/tailscaled /media/sdcard/Tail/tailscale


⚙️ Step 2: Create the Boot Script

Save this script as /media/sdcard/scripts/tailscale-boot.sh and make it executable:

chmod +x /media/sdcard/scripts/tailscale-boot.sh

  • ✅ The script handles:

    • Logging to /media/sdcard/scripts/tailscale-boot.log
    • Waiting for mobile data connection (4G) before launching
    • Starting tailscaled with a fixed state directory
    • Enabling NAT routing
    • Sending boot status to Telegram with HTML formatting

🔐 Configuration Notes

  • Before using the script, make sure to:

    • Replace BOT_TOKEN with your Telegram Bot Token
    • Replace CHAT_ID with your Telegram user or group ID
    • Replace --authkey with your Tailscale Auth Key (Required for authenticating the device without an interactive login.)
  • Useful guides:

    • 📖 Create Telegram Bot
    • 🔎 Find Telegram Chat ID (Your User ID) > start a conversation with this bot, from menu select Account or type /acc and copy your Telegram User ID from the top. 🛡️ [ Account ] - [ xxxxxxxxxx ] 🛡️
    • 🔑 Create Tailscale Auth Key

⚙️ Step 3: Enable Auto-Start via /etc/init.d/usb

On this device, the /etc/init.d/usb script is invoked towards the end of the boot process.

To ensure Tailscale starts cleanly only during boot, you should add the following block sh /media/sdcard/scripts/tailscale-boot.sh & inside the start) case of /etc/init.d/usb:

image
  • ✅ This ensures:

    • Your Tailscale boot script only runs when the system is booting.
    • It does not run during manual stop/restart of USB services or during shutdown.

✅ Step 4: Reboot & Confirm

After rebooting, you should see:

  • A log file at /media/sdcard/scripts/tailscale-boot.log
  • Your Tailscale daemon running in background
  • Telegram alerts if configured (including boot status, IP, uptime, etc.)
image

About

[TP-Link M7350 V9] - Rayhunter + Tailscale + Telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages