This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17574|Reply: 6

Practical use of Nginx reverse proxy for Windows Remote Desktop

[Copy link]
Posted on 2021-11-20 19:26:21 | | | |
Requirements: Use nginx reverse proxy to send access to a server on the intranet through the external network remote desktop, the server where nginx is located has public network permissions (port mapping has been done), and a Windows server on the internal network cannot be accessed through the external network, use nginx reverse proxy to the remote port of the internal Windows server (3389).

  • CentOS server (with nginx installed and public network permissions): 192.168.50.41
  • Windows Server: 192.168.50.91


First, install the nginx command using the source code as follows:



When building, you need to add the --with-stream parameter, otherwise you will get an error when configuring the configuration file. If the server already has the nginx service installed, use nginx -V to check if there is a --with-stream parameter, if not, please refer to the following to add the module:

[Actual combat] Nginx 1.4.4 upgraded to 1.14.0
https://www.itsvse.com/thread-4714-1-1.html

nginx adds third-party modules, as well as enabling modules that are natively supported by nginx
https://www.itsvse.com/thread-4713-1-1.html


Configure the nginx.conf file as follows:

The configuration willPort 192.168.50.41:12346 is forwarded to port 192.168.50.91:3389to restart nginx. Configuration for TCP and UDP load balancing:The hyperlink login is visible.

Connect via remote desktop192.168.50.41:12346Address, as shown below:



The principle is that Nginx can not only reverse proxy HTTP protocol traffic, but also directly reverse proxy TCP and UDP traffic.

(End)




Previous:C# 10 New Syntax Global Using Global Citation
Next:DevTools Failed to Load Source Mapping: Failed to load
 Landlord| Posted on 2021-11-20 19:27:11 |
Linux View Listening Ports:

Posted on 2021-11-21 19:29:18 |
Learn to learn, good things
Posted on 2021-11-21 23:09:56 |
Learn to learn...
Posted on 2022-3-7 22:10:47 |
Xiao Zhazha Posted on 2021-11-20 19:27
Linux View Listening Ports:

Looking at this aspect first
Posted on 2023-3-17 10:38:24 |
is learning
Posted on 2023-3-22 09:06:20 |
is learning
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com