IF YOU'RE TIRED OF NETWORK ADMINISTRATORS BLOCKING YOUR SERVER'S ACCESS TO THE INTERNET, THIS SCRIPT IS YOUR SECRET WEAPON! SAY GOODBYE TO INTERNET RESTRICTIONS AND HELLO TO FREEDOM!
Note: Right now, the script is only compatible with Ubuntu-based systems. and only apt package manager is supported.
This script was created by [DaTi_Co]
The DaTi Proxy script sets up a proxy server on a remote server using SSH and Docker. It allows the user to configure their browser to use the proxy server for internet access. The script performs the following steps:
- Asks the user for the remote server IP address, username, and port (optional).
- Checks if the proxy configuration file already exists on the remote server.
- If the proxy configuration file does not exist, adds the proxy configuration to the remote server's APT configuration.
- Connects to the remote server using SSH and creates a remote port forwarding.
- Checks if a Docker container with a Squid proxy server is already running.
- If the Docker container is not running, starts a Docker container with a Squid proxy server.
- Outputs the proxy server details (http://localhost:3128) for the user to configure their browser.
- Defines a cleanup function to stop the Docker container, remove the proxy config file from APT, and close the SSH connection.
- Calls the cleanup function if the user presses Ctrl+C or the script is terminated.
- Waits for the user to press Ctrl+C to stop the script.
The script requires the following dependencies to be installed on the local machine:
- sshpass
- Docker
To use the script, follow these steps:
- Download the
connect.sh
file. - Open a terminal and navigate to the directory where the
connect.sh
file is located. - Run the command
chmod +x connect.sh
to make the script executable.
To use the script, run it with the command ./connect.sh
in the terminal
IF YOU ARE USING THIS SCRIPT, YOU ARE RESPONSIBLE FOR ANY DAMAGE CAUSED BY IT. USE IT AT YOUR OWN RISK.