Tunneling UDP

"Please leave a message at the beep, we will get back to you when your support contract expires."

Moderators: phlip, Larson, Moderators General, Prelates

Tunneling UDP

Postby BlackSails » Fri Feb 11, 2011 12:14 am UTC

Ive looked online, and I can only find guides for a linux client and linux server. I have a windows client with an ssh tunnel to a linux server. I want to tunnel the connection from a program called teamspeak3 (a voice chat client) through the ssh link.

The problem is that the teamspeak program uses port 9988, and my firewall blocks that. The firewall that the linux computer is behind does not block it. How can I do this?
User avatar
BlackSails
 
Posts: 5128
Joined: Thu Dec 20, 2007 5:48 am UTC

Re: Tunneling UDP

Postby Meteorswarm » Fri Feb 11, 2011 9:04 pm UTC

I'm not sure how you'd set it up, but in principle you should be able to get this working through your firewall unless teamspeak expects to be able to connect to YOUR computer at 9988. SSH tunneling shoves all the communication over its connection.

Is your firewall a software one on your computer, or something external? It's possible that whatever tool you wind up using to ssh proxy could do it on a lower level than a local firewall, which could then still block ports.
The same as the old Meteorswarm, now with fewer posts!
User avatar
Meteorswarm
 
Posts: 980
Joined: Sun Dec 27, 2009 12:28 am UTC
Location: Ithaca, NY

Re: Tunneling UDP

Postby archeleus » Sat Feb 12, 2011 4:32 am UTC

You can try wrapping the program in another program such as proxychains which will take _all_ of its connections and send them through the SSH tunnel. I don't know if proxychains is available for windows though, you can google it.
I write a blog rant here.
archeleus
 
Posts: 243
Joined: Wed Sep 29, 2010 1:49 pm UTC
Location: Valenvaryon

Re: Tunneling UDP

Postby hotaru » Sat Feb 12, 2011 4:51 am UTC

Code: Select all
#include <stdio.h>

int main()
{
 struct { unsigned a:3, b:3, c:2; } n = {0};
  do do printf("%hhu\n", *&n);
  while(!(n.a-- && !++n.b));
  while(++n.c);
  return 0; } 
User avatar
hotaru
 
Posts: 931
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Tunneling UDP

Postby keeperofdakeys » Sun Feb 13, 2011 9:43 am UTC

archeleus wrote:You can try wrapping the program in another program such as proxychains which will take _all_ of its connections and send them through the SSH tunnel. I don't know if proxychains is available for windows though, you can google it.

The windows equivalent would be proxifier. I've never used it, but I think I've heard some chatter about it. PuTTY can setup the proxy for your, then proxifier will force all internet traffic to go through this proxy to the remote computer. The equivalent ssh command is "ssh -D 1080", which sets up a socks5 proxy on localhost port 1080.
GENERATION 2+i: The first time you see this, copy it into your sig on any forum. Divide by zero, and then add i to the generation.
Image
User avatar
keeperofdakeys
 
Posts: 658
Joined: Wed Oct 01, 2008 6:04 am UTC
Location: Adelaide Hills, Australia

Re: Tunneling UDP

Postby BlackSails » Mon Feb 14, 2011 2:01 pm UTC

Ive tried all that. SSH doesnt natively support UDP, and neither does proxifier.
User avatar
BlackSails
 
Posts: 5128
Joined: Thu Dec 20, 2007 5:48 am UTC

Re: Tunneling UDP

Postby hotaru » Tue Feb 15, 2011 2:55 am UTC

BlackSails wrote:Ive tried all that. SSH doesnt natively support UDP, and neither does proxifier.

try what i suggested. i just did, and it works.
Code: Select all
#include <stdio.h>

int main()
{
 struct { unsigned a:3, b:3, c:2; } n = {0};
  do do printf("%hhu\n", *&n);
  while(!(n.a-- && !++n.b));
  while(++n.c);
  return 0; } 
User avatar
hotaru
 
Posts: 931
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Tunneling UDP

Postby Carnildo » Tue Feb 15, 2011 11:20 am UTC

hotaru wrote:
BlackSails wrote:Ive tried all that. SSH doesnt natively support UDP, and neither does proxifier.

try what i suggested. i just did, and it works.

Your suggestion is a Google search on UDP tunneling over SSH. Is there a particular search result you had in mind?
Carnildo
 
Posts: 1958
Joined: Fri Jul 18, 2008 8:43 am UTC

Re: Tunneling UDP

Postby hotaru » Wed Feb 16, 2011 1:59 am UTC

Carnildo wrote:
hotaru wrote:
BlackSails wrote:Ive tried all that. SSH doesnt natively support UDP, and neither does proxifier.

try what i suggested. i just did, and it works.

Your suggestion is a Google search on UDP tunneling over SSH. Is there a particular search result you had in mind?

the third, fifth, and sixth results all give basically the same solution, using netcat and a fifo, or using socat. the fourth one gives a different solution, which is probably better if your ssh client and server both support it.
Code: Select all
#include <stdio.h>

int main()
{
 struct { unsigned a:3, b:3, c:2; } n = {0};
  do do printf("%hhu\n", *&n);
  while(!(n.a-- && !++n.b));
  while(++n.c);
  return 0; } 
User avatar
hotaru
 
Posts: 931
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Tunneling UDP

Postby phlip » Wed Feb 16, 2011 3:04 am UTC

Or, alternatively, you could be less useless and actually give links to said pages, instead of saying things like "the third result" when referring to a list of results that commonly appears in wildly different orders for different people...
While no one overhear you quickly tell me not cow cow.
but how about watch phone?
User avatar
phlip
Restorer of Worlds
 
Posts: 6738
Joined: Sat Sep 23, 2006 3:56 am UTC
Location: Australia

Re: Tunneling UDP

Postby Carnildo » Wed Feb 16, 2011 3:55 am UTC

hotaru wrote:
Carnildo wrote:
hotaru wrote:
BlackSails wrote:Ive tried all that. SSH doesnt natively support UDP, and neither does proxifier.

try what i suggested. i just did, and it works.

Your suggestion is a Google search on UDP tunneling over SSH. Is there a particular search result you had in mind?

the third, fifth, and sixth results all give basically the same solution, using netcat and a fifo, or using socat. the fourth one gives a different solution, which is probably better if your ssh client and server both support it.

Are you aware that different people get different results for the same Google search? For example, I get one of

http://superuser.com/questions/53103/udp-traffic-through-ssh-tunnel
http://www.debianadmin.com/howto-perform-udp-tunneling-through-ssh-connection.html
http://www.qcnetwork.com/vince/doc/divers/udp_over_ssh_tunnel.html
http://www.ip-phone-forum.de/showthread.php?t=108316

as the fourth result, depending on my choice of browser and remote proxy. Which one (if any) is your fourth result?
Carnildo
 
Posts: 1958
Joined: Fri Jul 18, 2008 8:43 am UTC

Re: Tunneling UDP

Postby hotaru » Wed Feb 16, 2011 8:27 am UTC

phlip wrote:Or, alternatively, you could be less useless and actually give links to said pages, instead of saying things like "the third result" when referring to a list of results that commonly appears in wildly different orders for different people...

the point is that that there are at least two very simple solutions to this problem in the first page of results on google. posting links to those pages would just perpetuate the widely held misconception that posting on a forum and waiting several hours (or even days) for what any decent search engine can deliver in seconds is a good idea.
Code: Select all
#include <stdio.h>

int main()
{
 struct { unsigned a:3, b:3, c:2; } n = {0};
  do do printf("%hhu\n", *&n);
  while(!(n.a-- && !++n.b));
  while(++n.c);
  return 0; } 
User avatar
hotaru
 
Posts: 931
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Tunneling UDP

Postby Dthen » Wed Feb 16, 2011 8:34 am UTC

Or you could not be a dick and post the links and then (nicely) mention how much time they would have saved by searching on Google.
I like cats.
User avatar
Dthen
 
Posts: 374
Joined: Sat Jan 02, 2010 6:35 pm UTC
Location: Ayrshire, Scotland

Re: Tunneling UDP

Postby hotaru » Wed Feb 16, 2011 12:28 pm UTC

Dthen wrote:Or you could not be a dick and post the links and then (nicely) mention how much time they would have saved by searching on Google.

i'm the only person so far who posted any working solution to Blacksails's problem. if that's being a dick, what does that make everyone else who has replied to this thread?
Code: Select all
#include <stdio.h>

int main()
{
 struct { unsigned a:3, b:3, c:2; } n = {0};
  do do printf("%hhu\n", *&n);
  while(!(n.a-- && !++n.b));
  while(++n.c);
  return 0; } 
User avatar
hotaru
 
Posts: 931
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Tunneling UDP

Postby Carnildo » Thu Feb 17, 2011 4:22 am UTC

hotaru wrote:
Dthen wrote:Or you could not be a dick and post the links and then (nicely) mention how much time they would have saved by searching on Google.

i'm the only person so far who posted any working solution to Blacksails's problem. if that's being a dick, what does that make everyone else who has replied to this thread?

That's the point: you have not posted a solution. You have posted hints that you have found a solution, and then refused to say what that solution is.
Carnildo
 
Posts: 1958
Joined: Fri Jul 18, 2008 8:43 am UTC

Re: Tunneling UDP

Postby TimeHorse » Wed Feb 15, 2012 5:27 pm UTC

First of all, I got here via google, this was the second link. The first link was to someone trying to tunnel an admin server but the link to the actual instructions was also a dead link. So, to put it bluntly, $@^$@^@$%^@$%^@$^% you for not posting links to your oh so precious solution. I did google, that's how I got here so google sucks because it doesn't point to the solution only a bunch of people having the same problem. >roll<
User avatar
TimeHorse
 
Posts: 4
Joined: Thu Oct 23, 2008 2:22 pm UTC

Re: Tunneling UDP

Postby Red Hal » Thu Feb 16, 2012 8:04 am UTC

Who were you, denvercoder9? What did you see?!

Oh, you saw this: http://www.qcnetwork.com/vince/doc/dive ... unnel.html

More precisely, and less facetiously, you can't get there from here. UDP over SSH is not trivial, and a better solution - if you have access to the remote server - is to use something like openvpn set to use a port that is allowed through the firewall. Depending on the client/server you use, you may also be able to set up a dTLS tunnel in parallel to preserve the low-latency characteristics. This really is the only option unless you want to screw around with Cygwin to get a proper SSH client running on windows, and even then it's by no means guaranteed.
Lost Greatest Silent Baby X Y Z. "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
User avatar
Red Hal
Magically Delicious
 
Posts: 1061
Joined: Wed Nov 28, 2007 2:42 pm UTC
Location: IO85IV76SK09(Maidenhead), 30UVG8319695195(MGRS), MKML43875411(Georef)


Return to The Help Desk

Who is online

Users browsing this forum: Tebychacy and 7 guests