I am using NAT in the provisioning part of my VM-s.
I am trying to add a public IP to access the proxmox cluster/node, however i am unable to use both public IP and NAT.
This is my configuration:
With this configuration, my guest OS gets a dhcp IP in the 10.0.2.0/24 network however it cannot access anything outside. The external IP 22.118.226.190 works in this situation.
If i set the gateway on vmbr0 to 10.0.0.1 (pfsense) and remove the gateway from vmbr1, the guest OS can access the internet however the external IP 22.118.226.190 can no longer be accessed.
Please advise
Thank you
I am trying to add a public IP to access the proxmox cluster/node, however i am unable to use both public IP and NAT.
This is my configuration:
Code:
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 802.3ad
bond_xmit_hash_policy 2
auto vmbr0
iface vmbr0 inet static
address 10.0.1.119
netmask 255.255.0.0
# gateway 10.0.0.1
bridge_ports bond0.101
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 22.118.226.190
netmask 255.255.255.0
gateway 22.118.226.1
bridge_ports bond0.300
bridge_stp off
bridge_fd 0
With this configuration, my guest OS gets a dhcp IP in the 10.0.2.0/24 network however it cannot access anything outside. The external IP 22.118.226.190 works in this situation.
If i set the gateway on vmbr0 to 10.0.0.1 (pfsense) and remove the gateway from vmbr1, the guest OS can access the internet however the external IP 22.118.226.190 can no longer be accessed.
Please advise
Thank you