R
R
Rafail Bektemirov2015-12-16 17:50:57
Hetzner
Rafail Bektemirov, 2015-12-16 17:50:57

How to configure Proxmox to use 1 physical interface and 2 white IPs (Hetzner)?

Good afternoon,
Help GURU!
I've been terribly stupid for the 2nd day in a row on setting up such a scheme:
A physical server is rented from HETZNER, it has 1 physical network interface eth0.
Taken additional 1 white IP.
I want to organize 2 virtual bridges, for distribution to each virtual machine of 2 addresses from different networks.
1st network is the default Internet access, 2nd is for access to the virtual machine.
Scheme for clarity. 651a5b91af844d3da13ed26bb4acd4eb.png
Plugging passed on assignment of the second IP for the second bridge. Here is the current host setup.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
  address  XX.YY.ZZ.14
  netmask  255.255.255.192
  gateway  XX.YY.ZZ.1
  bridge_ports eth0
  bridge_stp off
  bridge_fd 0

auto vmbr1
iface vmbr1 inet static
  address  192.168.99.254
  netmask  255.255.255.0
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  post-up echo 1 > /proc/sys/net/ipv4/ip_forward
  post-up iptables -t nat -A POSTROUTING -s '192.168.99.0/24' -o vmbr0 -j MASQUERADE
  post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 63390 -j DNAT --to-destination 192.168.99.10:3389
  post-down iptables -t nat -D POSTROUTING -s '192.168.99.0/24' -o vmbr0 -j MASQUERADE

Windows clients are configured manually.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zorruch, 2015-12-16
@zorruch

look here:
habrahabr.ru/post/158061

P
Puma Thailand, 2015-12-17
@opium

Why do you need such a muddled scheme?
Simplify the scheme and it will immediately be clear how and what to configure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question