1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can I even do this with SSH? Tunnel out from behind FW

Discussion in 'DD-WRT Firmware' started by error66, Jan 28, 2006.

  1. error66

    error66 Network Guru Member

    Trying to play World of Warcraft from behind a firewall where only ports 21, 80 and 443 get me out. I have SSH enabled on port 21 and functional on my WRT54G v1.0. I can successfully log on via SSH from behind the firewall. I'm a complete noob with SSH so bear with me please.

    The game does the following:

    Query DNS for "us.logon.worldofwarcraft.com"
    Query returns: 12.129.232.109 - .116
    localhost:2030 connects to 12.129.232.109:3724
    localhost:2031 connects to 12.129.232.109:3724
    *a list of game servers is retrieved from 12.129.232.109 and the game then connects to the appropriate IP (not a DNS name) of the server that was chosen in-game (12.129.225.5 in this case)
    localhost:2031 connects to 12.129.225.5:3724

    I used Putty to connect to the SSH server on my router. I configured a tunnel using the "local" radio button, with local port 3724. For the Destination I used 12.129.232.109:3724, put an entry in the HOSTS file to spoof the game into connecting to 127.0.0.1 when resolving "us.logon.worldofwarcraft.com" and I was able to get logged in to the game and get the list of servers. But when it tries to connect to the game server, it of course does not use the tunnel and subsequently fails. If I add a second entry to the tunnel for local port 3724 and Destination 12.129.225.5:3724 then I cannot even log into the game anymore, understandably so.

    I don't think I've quite got the grasp of how to make SSH work, thus the spoofing with the HOSTS file. The problem it appears that I'm running into is that the logon server and game server are two different IP addresses that both use the same destination port. Neither addresses nor the port is configurable. Someone care to either steer me in the right direction or say that there is no way to make it work?
     

Share This Page