Welcome to Tunnel-R, a robust and efficient bash script developed by RK from RK Studio! This tool helps you create secure tunnels for local servers using popular tunneling services like Ngrok, Cloudflared, Tunnelmole, and SSH tunneling. Whether you’re a developer needing remote access or a tester running services, Tunnel-R makes tunneling seamless and straightforward. 💻✨
- Automated Prerequisites Setup: Installs missing dependencies like
wget
,tar
, andnodejs
. - Support for Multiple Tunneling Services:
- Ngrok: HTTP/HTTPS tunneling with custom hostname support.
- Cloudflared: Easy tunnel setup for Cloudflare.
- Tunnelmole: Simple and lightweight tunneling solution.
- SSH Tunneling: Options for Serveo, Localhost.run, or custom SSH tunneling.
- User-Friendly Menu: Intuitive and colorful menu-driven interface.
- Reinstallation Option: Reinstall Ngrok or Cloudflared if necessary.
- Secure Custom Hostname: Set up personalized URLs for your tunnels.
- Operating System: Termux (Linux-based environment)
- Dependencies:
wget
,tar
,nodejs
- Ngrok Account: For an authtoken to configure Ngrok tunnels.
- Clone the repository:
git clone https://github.com/rkstudio585/Tunnel-R.git cd Tunnel-R
- Make the script executable:
chmod +x tunnelr.sh
- Run the script:
Or
./tunnelr.sh
bash tunnelr.sh
When you run the script, you'll be greeted with a colorful menu:
================== MENU ==================
1) Set up Ngrok
2) Start Ngrok Tunnel
3) Set up Cloudflared
4) Start Cloudflared Tunnel
5) Set up Tunnelmole
6) Start Tunnelmole Tunnel
7) Start SSH Tunneling
8) Exit
==========================================
1️⃣ Set up Ngrok
- Installs or reinstalls Ngrok.
- Prompts for your Ngrok authtoken to configure the tunnel.
2️⃣ Start Ngrok Tunnel
- Forward a local port using Ngrok.
- Optionally set up a custom hostname.
3️⃣ Set up Cloudflared
- Installs or reinstalls Cloudflared.
4️⃣ Start Cloudflared Tunnel
- Forward a local port using Cloudflared.
5️⃣ Set up Tunnelmole
- Installs Tunnelmole globally using
npm
.
6️⃣ Start Tunnelmole Tunnel
- Forward a local port using Tunnelmole.
7️⃣ Start SSH Tunneling
- Options to use Serveo, Localhost.run, or custom SSH tunneling.
8️⃣ Exit
- Gracefully exits the script.
- Select 1) Set up Ngrok to install Ngrok.
- Enter your Ngrok authtoken when prompted.
- Select 2) Start Ngrok Tunnel.
- Enter the local port to forward (e.g.,
8080
). - Optionally, provide a custom hostname (or press Enter to skip).
- Select 7) Start SSH Tunneling.
- Choose a tunneling service:
- Serveo:
ssh -R 80:localhost:<PORT> serveo.net
- Localhost.run:
ssh -R 80:localhost:<PORT> nokey@localhost.run
- Custom SSH: Use your preferred remote server.
- Serveo:
- Enter the local port and follow the prompts.
- Yellow: Informational messages (e.g., progress updates).
- Green: Success messages.
- Red: Error messages or missing prerequisites.
- Blue: SSH tunneling options and banners.
- Cyan: Stylish banner.
Contributions are welcome! Please open an issue or submit a pull request to help improve Tunnel-R.
This project is licensed under the MIT License. See the LICENSE
file for details.
Made with ❤️ by RK from RK Studio. Happy Tunneling! 🌟