Updated Set up http proxy server (markdown)

RustDesk
2024-09-13 08:27:39 +08:00
parent b3a8cffd33
commit c3391a2904

@@ -104,6 +104,7 @@ One RustDesk user shared his method for creating an HTTPS proxy with Apache2. I
> sudo apt install apache2 > sudo apt install apache2
> >
> Enable the necessary modules > Enable the necessary modules
>
> a2enmod ssl > a2enmod ssl
> a2enmod proxy > a2enmod proxy
> a2enmod proxy_connect > a2enmod proxy_connect
@@ -113,7 +114,7 @@ One RustDesk user shared his method for creating an HTTPS proxy with Apache2. I
> >
> sudo htpasswd -b -c /etc/apache2/.htpasswd proxy-user your-password > sudo htpasswd -b -c /etc/apache2/.htpasswd proxy-user your-password
> >
> Create a file /etc/apache2/sites-available/rustdesk.conf and add below lines: > Create a file `/etc/apache2/sites-available/rustdesk.conf` and add below lines:
> >
> <VirtualHost *:443> > <VirtualHost *:443>
> SSLEngine on > SSLEngine on
@@ -137,7 +138,7 @@ One RustDesk user shared his method for creating an HTTPS proxy with Apache2. I
> sudo a2ensite rustdesk.conf > sudo a2ensite rustdesk.conf
> sudo service apache2 restart > sudo service apache2 restart
> >
> If you want to use ssl for the web console you can add another virtualhost to /etc/apache2/sites-available/rustdesk.conf. As port 443 is already used for the forwarding proxy, you can use for example port 4443. > If you want to use ssl for the web console you can add another virtualhost to `/etc/apache2/sites-available/rustdesk.conf`. As port `443` is already used for the forwarding proxy, you can use for example port `4443`.
> >
> <VirtualHost *:4443> > <VirtualHost *:4443>
> SSLEngine on > SSLEngine on
@@ -149,14 +150,18 @@ One RustDesk user shared his method for creating an HTTPS proxy with Apache2. I
> </VirtualHost> > </VirtualHost>
> >
> Change the line > Change the line
>
> AllowCONNECT 21114-21119 > AllowCONNECT 21114-21119
> into > into
>
> AllowCONNECT 4443 21114-21119 > AllowCONNECT 4443 21114-21119
> >
> Restart apache2 > Restart `apache2`
>
> sudo service apache2 restart > sudo service apache2 restart
> >
> As all ports of hhhbs and hbbr are connected via proxy, you can disable these ports in ufw. You only need to open port 443 and 4443: > As all ports of `hbbs` and `hbbr` are connected via proxy, you can disable these ports in ufw. You only need to open port `443` and `4443`:
>
> ufw allow 443/tcp > ufw allow 443/tcp
> ufw allow 4443/tcp > ufw allow 4443/tcp
> >