How can I set up Reverse port forwarding with remote desktop over UDP(Not TCP)?

0

The scenarios is as following:

I have two computers, let's say one is work computer and one is home computer. The work computer is behind a firewall and I want to have access to port 3389 so I can have remote access to it. What I'm doing now is reverse port forwarding to my home computer. This works alright-ish. I also tried the VPN route, where I've set a VPN on my home router but there were some issues and I keep getting a broken link error (didn't bother too much with it, too many variables). Anyway, reverse port forwarding through SSH is ok, but I would like to be able to have RDPv8 to switch to UDP packets instead of TCP. I know there's a workaround with OpenSSH but I need to install cygwin and it's way to much work for very little benefit I think. So... finally, my question: Do you know any way do this reverse port-forwarding through UDP, encryption isn't important in this case (and please don't preach me about it) the only thing I care for is speed. Also, I've tested RDC from home to work through SSH and it feels slightly slower then when I RDC from work to home (without ssh in this case, and UDP connection is used).

Any ideas, suggestions, workarounds are welcomed.

Thank you

Bogdan

Posted 2013-10-14T09:14:00.757

Reputation: 101

you write "to be able to have RDPv8 to switch to UDP packets instead of TCP...I know there's a workaround with OpenSSH " out of interest, can you link to that? – barlop – 2013-10-14T10:42:02.630

Here it is. http://www.qcnetwork.com/vince/doc/divers/udp_over_ssh_tunnel.html Though you should note that it's considered unsafe because it's kinda UDP over TCP and TCP can break UDP packets.

– Bogdan – 2013-10-14T11:13:28.107

Your title should mention UDP and SSH/RDP as that's crucial for the question.. I don't know which of these titles is more accurate to what you want to do, but a title like "Can I do SSH with UDP?" or "Can I do SSH and RDP, with UDP?" or "Can I do SSH or RDP, with UDP? – barlop – 2013-10-14T11:37:11.887

The thing is I don't want to do it with SSH. I'm currently doing it with SSH but it's not necessary. – Bogdan – 2013-10-14T14:09:00.270

oh, ok reverse port forwarding with UDP not TCP, and encryption is not necessary. I understand exactly what you mean now, though I don't know – barlop – 2013-10-14T14:55:54.477

oh, ok reverse port forwarding with UDP not TCP, and encryption is not necessary. I understand exactly what you mean now, though I don't know. I once looked for a TCP port mapper mapper without enryption, though you want that but for UDP and with reverse, and with or without encryption.. very understandable, a great question. I suggest asking this question in bits and to linux gurus and miss out about RDP as RDP is only windows. If I find anything i'll let you know. That said, just to be clear.. You seemed to say you want RDP over UDP,but you also seemed to say RDP over UDP is a workaround.. – barlop – 2013-10-14T15:02:59.023

Why do you want RDP over UDP? And if you already set RDP to be over UDP, what method did you use to do it? – barlop – 2013-10-14T15:05:18.080

Hey, sorry to answer so late. No, you can't set RDP to use TCP or UDP. RDPv8 switches to UDP when... I don't really know when, when Microsoft decided to. I want RDP over UDP because it feels more responsive even when the connection is worse. (3 lines signal on UDP vs 4 lines signal on TCP - UDP wins in my opinion). And the only way I managed to get RDP to go through UDP was to connect directly but this was from WORK->HOME, I can't connect directly from HOME->WORK. I said it's a workaround because there's a way to tunnel UDP through ssh but according to what I've read it's kinda unsafe. – Bogdan – 2013-10-15T06:54:08.623

Right now I'm trying to setup OpenVPN as it's able to tunnel UDP traffic as well. I'll see how that works. – Bogdan – 2013-10-15T06:54:54.483

let us continue this discussion in chat

– barlop – 2013-10-15T07:42:07.523

haven't tried that but yeah VPN i've heard encrypts the entire connection so indeed would include UDP. (btw if you have never tried cygwin, you should try it, it has openssh and probably openvpn. though where native is available many tend to choose native rather than cygwin and no doubt native is available here). – barlop – 2013-10-15T07:44:39.127

So in the end, the best thing so far I've managed to setup OpenVPN to do static tunnel (guide here http://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html). When pinging my home computer from work directly I get 3-5ms response time and when pinging it through OpenVPN I get 4-6ms. It's completely unnoticeable. For even more speed you can disable encryption with "cypher none" in your config gile.

– Bogdan – 2013-10-15T13:54:22.467

No answers