As I`m not familiar with iptables (got xp with pf, not iptables) I would request help from administrators and users.
The situation:
As we are going to have multiple virtual machines on one host and may be 80% of them will be with local IP we need to set port forwarding for every single VM so the user can log directly to his VM.
Ex:
SERVER_PUBLIC_IP:PORT -> SERVER_LOCAL_IP:PORT
So if the user try to connect to SERVER_PUBLIC_IP on PORT to be redirected to SERVER_LOCAL_IP on PORT.
I don`t know how is in other countries, but in my country to get an A, B, C class network of IP addresses costs thousands. Even if you have a C class network of IP addresses you will need to forward ports for SSH, HTTP, POSTFIX, ...
So again my question is:
How to setup iptables to forward SERVER_PUBLIC_IP:PORT for SSH to SERVER_LOCAL_IP:PORT
How to setup iptables to forward 88.254.168.171:2951 for SSH to 192.168.1.105:2951
I beg you for a quick response. Thanks in advance.