deathline94 / LazyTunnel

Instantly tunnel two VPS together with this one-click script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Shell 100.0%