I have two servers, a web server and an ssh server. Currently I have the web server behind a load balancer, while the ssh server has a subdomain pointed to it.
I'd like for it to be possible to ssh in directly to my naked domain instead of having to specify the subdomain. Right now users have to access ssh via x.domain.com instead of just domain.com.
I would like to route ssh and www traffic for my naked domain to different boxes on the back end. I've been playing around iptables, but can't seem to get this to work. My router box is virtual and only has one interface, eth0.