Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Redirecting communication to a server over a tunnel?

  • 27-08-2012 03:12PM
    #1
    Registered Users, Registered Users 2 Posts: 654 ✭✭✭


    Hi all,

    At my work all main ports are blocked, both incoming and outgoing.
    I have a fat client windows program that communicates to its server on port 9999, but this port is blocked. I am able to create a secure tunnel over SSH to my home server and for instance redirect my HTTP traffic.

    But is there a way I can route the traffic for port 9999 for a specific IP address over the tunnel?

    Presumeably the windows application internally will do a DNS lookup to retrieve the current IP address of the server i.e. the ip address of the server is not hard coded.

    Will creating a tunnel for port 9999 and adding the DNS name as 127.0.0.1 in the hosts file work? Or should I just redirect all 9999 traffic (not a problem now I come to think about it)

    In short: how do I redirect traffic for address [url]www.servername.com:9999[/url] to my SSH tunnel?

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 2,899 ✭✭✭wandererz




  • Registered Users, Registered Users 2 Posts: 654 ✭✭✭Wcool


    I use SSH already for instance to route VNC. But I think I now know what I do wrong. The proxy that I use is Polipo which is a web proxy, not a universal proxy. I need to setup another proxy program on my home server.


  • Registered Users, Registered Users 2 Posts: 2,899 ✭✭✭wandererz


    aha, i think i see the problem now.

    The destination server is not on your home network. Yet you want to tunnel via your home network to the far end server?


  • Registered Users, Registered Users 2 Posts: 654 ✭✭✭Wcool


    Yes that is it. I think it might not work altogether, how do I convince the client to look for data over the tunnel instead of going direct to the internet.

    if i change the host entry to 127.0.0.1 for the ip that it is looking for, it won't know the server at the end of the tunnel?


Advertisement