B
B
Bermut2021-08-05 08:12:51
Nginx
Bermut, 2021-08-05 08:12:51

Proxying rdp through nginx?

The network is built like this.
1.VPS on which wireguard is installed, and port forwarding, the internal ip of the server is 10.0.0.1
2.ubunt is connected to it, nginx and the site are installed on it, internal ip is 10.0.0.2, ports that are forwarded to it: 80 , 443, 3389.
3. Ubuntu is installed on a virtual machine, also located in the home local network, with ip - 192.168.1.100, the machine on which rdp is installed has ip - 192.168.1.101

If I write this in the nginx config:

server {
    listen 3389;
    server_name rdp.mydomain.com;

location / {
    proxy_pass http://192.168.1.101:3389;
    }
}

then the built-in application in Windows, for rdp connections, writes that rdp is not configured on the machine, and if we just go through 192.168.1.101, then everything is ok.

Now the question is how to set up rdp proxying through nginx, I don’t need a web interface, I just need to enter rdp.mydomain.com, login and password, and fly.
And yes, ubunta has access to 192.168.1.101

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Dmitriev, 2021-08-05
@Bermut

Why did you decide that http\https proxying will help you get through to RDP?
Configure via stream
https://docs.nginx.com/nginx/admin-guide/load-bala...

D
Dmitry, 2021-08-05
@q2digger

haproxy does an excellent job with the role of rdp gateway by the way. there are a couple of articles on the hub.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question