diff --git a/Set-up-http-proxy-server.md b/Set-up-http-proxy-server.md new file mode 100644 index 0000000..f3c1ecd --- /dev/null +++ b/Set-up-http-proxy-server.md @@ -0,0 +1,61 @@ +This is a tutorial to set up http proxy server on Ubuntu / Debian + +# Install http server first + +Here, we use `tinyproxy`. + +``` +sudo apt install tinyproxy +``` + +The service will be started after installation. Please confirm as below + +``` +sudo service tinyproxy status +``` + +To make tinyproxy start after reboot, please do this. + +``` +sudo systemctl enable tinyproxy +``` + +# Configure tinyproxy + +Please open the the config file `/etc/tinyproxy/tinyproxy.conf` with your prefered editor. Add below lines. + +``` +BasicAuth myuser mypassword +Listen 0.0.0.0 +Allow 0.0.0.0/0 +``` + +Please modify `myuser` / `mypassword` to your values. +By default tinyproxy listen to `127.0.0.1`, we modify it to `0.0.0.0` so that it can be accessed from outside. +By default tinyproxy only accepts requests from `127.0.0.0`, we modify it to `0.0.0.0/0` so that it accepts all requests from outside. + +By default tinyproxy listen to `8888` port, you can find `port 8888` in the config file, and modify it to your value. + +Please restart the server after your modification to config + +``` +sudo service tinyproxy restart +``` + +# Verify if it works + +``` +curl -x http://:8888 --proxy-user myuser:mypassword -L https://www.yahoo.com +``` + +# Configure it on RustDesk + +![image](https://github.com/user-attachments/assets/aa1c2f52-7a8c-456a-9246-6594027fce82) + +# Configure it in custom client + +https://rustdesk.com/docs/en/self-host/client-configuration/advanced-settings/#proxy-url + + + +