I seem to be having some issues with my dd-wrt router and port forwarding. It seems like it should be clear as day - just put map the incoming port to the destination port and specify the IP. I picked a port number > 2000 and mapped it to 22 for ssh.
Seems like when I try to access my machine on the LAN it works flawlessly, but when I try to access via WAN, it timeouts. Also, if I try to access it with an incorrect port via WAN, it refuses which is expected. However, I'm puzzled what could be causing the timeout.
I tried "ssh -vvv" as well as traceroute, but those don't tell me very much. What can I try to debug this issue?
EDIT: Also, I just wanted to add that I tried rebooting the router, specifying different ports to use, and temporarily disabling the firewall. Nothing seems to be changing the issue.
EDIT2: Just found out it was my router having problems with using my own IP and NAT. I found out everything works if I ssh outside to another server, and then back in to my own.