Microsoft remote desktop connection drops

Started by szurubooru, September 06, 2020, 11:23:34 PM

Previous topic - Next topic
September 06, 2020, 11:23:34 PM Last Edit: September 07, 2020, 03:38:01 AM by szurubooru
Hello i have installed Opnsense on my dedicated proxmox server as a VM with only LAN

let say my static LAN ip is 192.130.246.8

and then i have setup DHCP, it works amazing and i love it

dhcp from 192.130.246.9 to 192.130.246.15

i also have a Windows 10 vm in my proxmox got my ip 192.130.246.9 from opnsense dhcp and the gateway is 192.130.246.8

now the problem is i could not setup the firewall rules for RDP i kept getting error "Default deny rule"
so i disabled the firewall for testing

now i can connect to rdp but sometimes the rdp desktop freezes and then after some time it gets back to normal
and then sometimes it freezes then i get connection closed

for linux server vm i have no problem accessing http/https

if i dont use opnsense dhcp and set my network in rdp manullay everying works smootly

this has to do with opnsene and i dont know why

does anyone has any clue ?

edit: okey finnaly fixed it after 24h or so

if anyone else faces the same issue using hetzner proxmox
let me know

Well, your LAN IP range is using public IP adresses, which is a baaaad idea, unless you own those addresses, which I doubt.

Are you sure youre using a correct subnet mask? I would recommend to compare the mask from your DHCP server with your manual IP setup.

Disabling WAN firewall... Are you serious?
I can only hope that on your WAN comes another LAN. In that case, you probably are blocking private IP adresses on the WAN interface and should disable that setting found under Interfaces / WAN.

Quote from: jassonmc on September 07, 2020, 12:41:31 AM
Well, your LAN IP range is using public IP adresses, which is a baaaad idea, unless you own those addresses, which I doubt.

Are you sure youre using a correct subnet mask? I would recommend to compare the mask from your DHCP server with your manual IP setup.

Disabling WAN firewall... Are you serious?
I can only hope that on your WAN comes another LAN. In that case, you probably are blocking private IP adresses on the WAN interface and should disable that setting found under Interfaces / WAN.

i have a main ip for my proxmox
and then i have a subnet/29
first ip is using for opnsense static lan

i use the correct subnet theres nothing wrong with the subnet
like i said i dont use wan and there is no wan settings under interfaces as i dont have a wan

like i said again i disabled firewall because i had trouble setting it up so i disabled it for testing purpose

i use opnsense just for dhcp nothing else

Hi szurubooru

Lol, you're right, you said its LAN only. I shouldn't try to answer blog posts late in the night ;)

Why would you define in DHCP your OPNsense-DHCP-only as a gateway for clients? It is no gateway, so better use your real internet gateway.

Did you set any additional DHCP options or just vanilla?

In case the OPNsense interferes during your RDP session, try to disconnect the OPNsense interface, once your client got its DHCP address.
This way you can eventually see if your clients DHCP config is the issue or the OPNsense itself.

You are still using public IPs in your LAN. What's the reason behind that?


Quote from: szurubooru on September 06, 2020, 11:23:34 PM

edit: okey finnaly fixed it after 24h or so

if anyone else faces the same issue using hetzner proxmox
let me know
Could you please elaborate in the thread how you resolved the issue, so others can benefit.  I am experiencing a similar issue, which is driving me nuts.  The connection is allowed, but drops out every few seconds.  I have log messages showing denies, despite having rules to specifically allow between the hosts listed.

I had similar issues with Win 10 RDP in the past.

In my case it was the following problem:
Quote
In Windows 10 there is a issue where once you establish RDP connection to the machine the screen will freeze after some time randomly and you have to disconnect and re-connect the RDP session. To fix RDP connection freezes in Windows 10 you need to disable UDP protocol from RDP client using local Group Policy.

https://www.mustbegeek.com/rdp-connection-freezes-in-windows-10/