M
M
Mr Yoshi2017-02-14 20:52:33
Network administration
Mr Yoshi, 2017-02-14 20:52:33

Proxmox, how to implement traffic to 2 kvm prodact and dev from outside?

Hello. There is a Dedicated server with one dedicated ip on which Proxmox is installed. Bridge raised. Raised two kvm. One Prodact second Dev.
The task is the following, to divide the traffic between dev and prodact machines.
Now the crutch works. There is a rule in iptables on the host machine:
-A PREROUTING -d hostIP -p udp --match multiport ! --dports * -j DNAT --to-destination 10.0.0.2(Prodact)
and
-A PREROUTING -d HostIP -p tcp -m tcp --dport 553606 -j DNAT --to-destination 10.0.0.3:3306 (dev )
-A PREROUTING -d HostIP -p tcp -m tcp --dport 552000 -j DNAT --to-destination 10.0.0.2:2000 (dev)
-A PREROUTING -d HostIP -p tcp -m tcp --dport 55580 - j DNAT --to-destination 10.0.0.2:80 (dev)
This is not very convenient and most likely not at all correct. I would like to ask you to poke in what direction to look for a solution to this issue. There is no domain name on docker asterisk nodejs servers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2017-02-15
@opium

get additional ips and raise them on virtual machines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question