Skip to content

CloudFlare Port forwarding stuff for cross platform terminal

Notifications You must be signed in to change notification settings

mashunterbd/Tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Platform Platform Distribution Distribution Last Updated Supported Architectures Creator

Tunnel Installation Script

This script automates the installation of the tunnel binary from Cloudflare, ensuring compatibility across different system architectures and environments, including Termux. It detects your system architecture, downloads the appropriate binary, and installs it with the necessary permissions.

Features

  • Automatically detects system architecture (x86-64, x86, ARM, ARM64)
  • Checks if wget is installed, and installs it if necessary
  • Supports Termux environment
  • Provides a progress bar and download details during binary download
  • Installs the binary as tunnel and makes it executable from anywhere in the terminal

Installation

Install Tunnel

To install the tunnel binary using this script, follow these steps:

  1. Download the script directly from GitHub:

    wget https://raw.githubusercontent.com/mashunterbd/tunnel/main/tunnel.sh
  2. Make the script executable:

chmod +x tunnel.sh
  1. Run the script:
./tunnel.sh

Direct Install from Terminal

Termux Kali NetHunter Kali Linux

wget https://raw.githubusercontent.com/mashunterbd/tunnel/main/tunnel.sh ; chmod +x tunnel.sh; ./tunnel.sh

For Windows

Windows

  • open windows PowerShell as a normal user:
  • paste this command : for Install
    winget install --id Cloudflare.cloudflared
    
    • locate where is this executable file
Get-ChildItem -Path C:\ -Filter "cloudflared.exe" -Recurse -ErrorAction SilentlyContinue
  • if the file exist on this location > directory : C:\Program Files (x86)\cloudflared
    cd "C:\Program Files (x86)\cloudflared" ; ls
    
  • Execute this command for port forwarding :
.\cloudflared-windows-amd64.exe tunnel --url (Link Past)

Visit for your own port forwarding

https://medium.com/@mashunter/free-port-forwarding-fca46640d574