Git Product home page Git Product logo

dati-proxy's Introduction

DaTi Proxy

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.

Author

This script was created by [DaTi_Co]

Table of Contents

Description

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:

  1. Asks the user for the remote server IP address, username, and port (optional).
  2. Checks if the proxy configuration file already exists on the remote server.
  3. If the proxy configuration file does not exist, adds the proxy configuration to the remote server's APT configuration.
  4. Connects to the remote server using SSH and creates a remote port forwarding.
  5. Checks if a Docker container with a Squid proxy server is already running.
  6. If the Docker container is not running, starts a Docker container with a Squid proxy server.
  7. Outputs the proxy server details (http://localhost:3128) for the user to configure their browser.
  8. Defines a cleanup function to stop the Docker container, remove the proxy config file from APT, and close the SSH connection.
  9. Calls the cleanup function if the user presses Ctrl+C or the script is terminated.
  10. Waits for the user to press Ctrl+C to stop the script.

Requirements

The script requires the following dependencies to be installed on the local machine:

  • sshpass
  • Docker

Installation

To use the script, follow these steps:

  1. Download the connect.sh file.
  2. Open a terminal and navigate to the directory where the connect.sh file is located.
  3. Run the command chmod +x connect.sh to make the script executable.

Usage

To use the script, run it with the command ./connect.sh in the terminal

Disclaimer

IF YOU ARE USING THIS SCRIPT, YOU ARE RESPONSIBLE FOR ANY DAMAGE CAUSED BY IT. USE IT AT YOUR OWN RISK.

dati-proxy's People

Contributors

datic0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.