OPNsense Forum

English Forums => General Discussion => Topic started by: CHW1979 on August 04, 2020, 09:42:05 AM

Title: Haproxy and RDS 2019
Post by: CHW1979 on August 04, 2020, 09:42:05 AM
Anyone already figured out how to control Remote Desktop Gateway with Haproxy ?

I want all traffic to pass 443 towards 3389

Already created wan rules TDP & UDP 3389 but Haproxy won't let traffic pass

Haproxy for 443 webservers is working.

Many thanks
Title: Re: Haproxy and RDS 2019
Post by: bartjsmit on August 04, 2020, 09:45:16 AM
Have you looked at this option?

https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-admin

Bart...
Title: Re: Haproxy and RDS 2019
Post by: mimugmail on August 04, 2020, 09:56:27 AM
You need a condition with path contains string "remoteDesktopGateway" and a rule to match this condition and execute function "http-request deny".

Then it will work ...
Title: Re: Haproxy and RDS 2019
Post by: CHW1979 on August 10, 2020, 01:29:41 PM
Quote from: bartjsmit on August 04, 2020, 09:45:16 AM
Have you looked at this option?

https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-admin

Bart...

Implemented this one - working ;)
Title: Re: Haproxy and RDS 2019
Post by: browne on September 21, 2020, 03:23:19 PM
Quote from: mimugmail on August 04, 2020, 09:56:27 AM
You need a condition with path contains string "remoteDesktopGateway" and a rule to match this condition and execute function "http-request deny".

Then it will work ...

This was the solution for my problem. Thank you!
https://forum.opnsense.org/index.php?topic=19169