Answer the question
In order to leave comments, you need to log in
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.
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
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question