mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-23 13:11:05 +03:00
Created Set up http proxy server (markdown)
61
Set-up-http-proxy-server.md
Normal file
61
Set-up-http-proxy-server.md
Normal file
@@ -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
|
||||
|
||||

|
||||
|
||||
# Configure it in custom client
|
||||
|
||||
https://rustdesk.com/docs/en/self-host/client-configuration/advanced-settings/#proxy-url
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user