So here's the deal. I've got Ubuntu server running in a VM in Virtualbox with a bridged adapter on a static IP. My router has port 22 forwarded to that static IP (192.168.1.10). I can not get SSH working outside my network.
I know my ISP is not blocking port 22, I know my router is forwarding port 22 correctly, and I know virtualbox is not messing up port forwarding, because for testing purposes, I loaded up a VM of Windows 7 and installed an SSH server program called Bitvise SSH server and I was successfully able to see port 22 on the WAN set up that way, so I know now it's not my ISP, it's not my router.
For my router situation, I was previously using a Linksys EA2700 as my router, but I was still having the same issues with getting SSH to work even through port 22 was set up for my servers static IP. I swapped the router out for an older WRT54G I had that has Tomato 1.28 firmware installed so hopefully that would give me more control, fix the problem, or just give me more visibility into the issue for debugging.
Since my ISP is not blocking port 22, my router can forward port 22, and VirtualBox is not interfering with passing the forwarded traffic, it has something to do with Ubuntu as far as why I can't get SSH working on the WAN.
I'm running Tomato 1.28 as my routers firmware. Here is my routers iptable: http://pastebin.com/S7JSr4Bd
Here is an example of the routers log showing the router is accepting traffic from port 22 and sending it to the correct IP: http://pastebin.com/cGN2m9Nd
sshd is running: http://pastebin.com/8G74tg3H
Here is my sshd config file on my server: http://pastebin.com/REXs7Pxq
Here is the iptables on my server: http://pastebin.com/9Cjsj90j
Here is netstat for the listening ports: http://pastebin.com/nfQcLTVC
Here is the results from nmap from both outside my network and inside: http://pastebin.com/LyHGjrkd
Results from nmap -Pn: http://pastebin.com/n5zU9kig
Finally here's a verbose SSH connection on my LAN: http://pastebin.com/eMEMPFtd
As you can see I've done extensive Googling on this issue and have done everything and checked everything I can think of. I'm at a loss. What am I missing?
EDIT: I also have apache running and can access websites on this server on my LAN, but not on the WAN when port 80 is forwarded.
Apache is running: http://pastebin.com/VNqywYQg
Apache conf: http://pastebin.com/Lvg0xhuj
Ports conf: http://pastebin.com/FX1CGTVU
Default vhost: http://pastebin.com/0ZFXdbbd
Symlink in sites enabled: http://pastebin.com/bK0nW91b
EDIT EDIT: I have an OpenVPN tunnel running. I turned it off and traffic was able to pass. I guess writing it all out helped me narrow things down.
On this note, any tips on getting SSH traffic to pass through eth0 instead of tun0? I'm guessing I need to put in some static routes on my server?
Bookmarks