Created Set up http proxy server (markdown)

RustDesk
2024-09-06 00:26:47 +08:00
parent 4870aa6632
commit d4b3718eaf

@@ -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://<proxy-server-ip>: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