Hello everyone,
I'm so sorry before for my bad english and unstructured writing, because here not native english.
I just setup proxmox in bridge on vmbr0 and setup some NAT on vmbr1 like documentation before and my host and my VM can reach the internet connection.
my host connected to public ip 192.168.88.88 (example) and i have another idle public ip 192.168.88.89 - 192.168.88.93
my VM need local address for interconnection with IP range 10.10.10.1/24 so i use the NAT
the question is.. Can I connect the VM with my spare idle public IP behind NAT..? and how to setup the network in proxmox..?
Here is my
This is the network setup which I expected:
another question how to apply networking setup after editing
Hope someone can help.
Thanks.
I'm so sorry before for my bad english and unstructured writing, because here not native english.
I just setup proxmox in bridge on vmbr0 and setup some NAT on vmbr1 like documentation before and my host and my VM can reach the internet connection.
my host connected to public ip 192.168.88.88 (example) and i have another idle public ip 192.168.88.89 - 192.168.88.93
my VM need local address for interconnection with IP range 10.10.10.1/24 so i use the NAT
the question is.. Can I connect the VM with my spare idle public IP behind NAT..? and how to setup the network in proxmox..?
Here is my
/etc/network/interface
:
Bash:
uto lo
iface lo inet loopback
iface eno4 inet manual
iface eno1 inet manual
iface eno2 inet manual
iface eno3 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.88.88/24
gateway 192.168.88.1
bridge-ports eno4
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
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 '10.10.10.1/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.1/24' -o vmbr0 -j MASQUERADE
This is the network setup which I expected:
- Proxmox host 192.168.88.88 (pub ip)
- 192.168.88.89 (pub ip) <=======> VM (1) 10.10.10.5 (NAT)
- 192.168.88.90 (pub ip) <=======> VM (2) 10.10.10.6 (NAT)
- 192.168.88.91 (pub ip) <=======> VM (3) 10.10.10.7 (NAT)
another question how to apply networking setup after editing
/etc/network/interface
without reboot the server...?Hope someone can help.
Thanks.
Last edited: