Skip to content

Instantly tunnel two VPS together with this one-click script

Notifications You must be signed in to change notification settings

deathline94/LazyTunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

VPS Tunneling Script 🚀

This simple yet powerful script allows you to instantly tunnel two VPS together using iptables with just one click. It automates the process of IP forwarding and NAT configuration, making it easy for anyone to set up a secure connection between two virtual servers.

📖 Usage

🚀 Establishing the Tunnel

You can set up the tunnel between two servers with this single line of command:

bash <(curl -fsSL https://raw.githubusercontent.com/deathline94/LazyTunnel/main/LazyTunnel.sh)

During execution, the script will automatically detect your server's IP address (Mainland/Iran/China/Russia IP) and ask you for the IP address of the remote server (Foreign IP) you want to tunnel with.

🧹 Uninstallation

If you wish to remove the tunneling configurations, you can do it easily using the uninstall argument in the following way:

bash /root/LazyTunnel.sh uninstall

After that, Just reboot the VPS.

⚠️ Important Notes

Remember:

You have to be the root user to run the script

Tested fully on arvancloud infrastructures and it works fine . Should work everywhere.

Please note that this script modifies your IPTables rules and sets up IP forwarding, which could impact the security posture of your server. Understand the implications before usage and use it responsibly.

If you encounter any issues or have suggestions, feel free to open an issue in this repository. Or contact me on Twitter at @namelesghoul.

About

Instantly tunnel two VPS together with this one-click script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages