Boby wrote:
> Hello,
>
> what I would like is to redirect to keep SSH port to 22 and redirect clients
> to different servers based on destination server. Like in Apache with
> virtual hosting.
>
> In brief,
>
> client A try to connect to server a.domain.com
> client B try to connect to server b.domain.com
>
> a and b are the same server with the same ip address.
> Is it possible with netfilter installed on server a to redirect ssh
> connections for server b.domain.com transparently ?
If the server names map to the same IP address, netfilter
cannot separate the requests from each other. Netfilter
does not know about the names called, only the IP addresses.
In HTTP the situation is different, as the name is passed
in the request. Even here, it's the HTTP server doing the
magic, not netfilter.
--
Tauno Voipio
tauno voipio (at) iki fi
|