Hello people,
I have a Proxmox server with a couple of single public IPs as well as a subnet (public) assigned from the DataCenter.
On top of that I have some VMs with private IPs.
The network generaly works but when it comes to the private VMs, I can access the internet with no issues (incoming-outgoing) however I cannot access the VMs with the public IPs. For example a VM with IP 5.5.5.10 (hypothetical IP) cannot access the VM with IP 192.168.0.10 or the other way round.
Obviously I am missing something here. Can someone please have a look at the interfaces below and spot the problem? I am trying to solve it several days now but with no success whatsoever!
Much appreciated!
>>>>
# network interface settings
##############################
auto lo
iface lo inet loopback
##############################
#
#
##############################
auto eth0
iface eth0 inet static
address 1.1.1.1 <IP Replaced for security Reasons. This is the main IP of the host>
netmask 255.255.255.255
gateway 1.1.1.253 <IP Replaced for security Reasons. This is the main gateway IP of the host>
broadcast 1.1.1.31 <IP Replaced for security Reasons. This is the broadcast IP of the host as given by the DataCenter>
pointopoint 1.1.1.253 <IP Replaced for security Reasons. This is the main gateway IP of the host>
##############################
#
#
##############################
# bridge for VMs with SINGLE public IPs (DMZ)
auto vmbr0
iface vmbr0 inet static
address 1.1.1.1 <IP Replaced for security Reasons. This is the main IP of the host>
netmask 255.255.255.255
broadcast 1.1.1.31 <IP Replaced for security Reasons. This is the broadcast IP of the host as given by the DataCenter>
bridge_ports none
bridge_stp off
bridge_fd 0
# use only if Shorewall is down:
post-up echo 0 > /proc/sys/net/ipv4/conf/vmbr0/send_redirects
up ip route add 2.2.2.2/32 dev vmbr0 <Extra single public IP address given by the DataCenter>
up ip route add 1.1.1.253 <IP Replaced for security Reasons. This is the main gateway IP of the host>3/32 dev vmbr0
##############################
#
#
##############################
# bridge for assigning a SUBNET to VMs
#
auto vmbr1
iface vmbr1 inet static
address 5.5.5.5 <This is the first usable IP of a subnet given by the DataCenter>
#<A usable IP address from the additional subnet>
netmask 255.255.255.0
#<Netmask of the additional subnet>
bridge_ports none
bridge_stp off
bridge_fd 0
#
###############################
#
#
#
###############################
# bridge for internal LAN with private IPs
auto vmbr2
iface vmbr2 inet static
address 192.168.0.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
#
# post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE
# post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE
###############################
I have a Proxmox server with a couple of single public IPs as well as a subnet (public) assigned from the DataCenter.
On top of that I have some VMs with private IPs.
The network generaly works but when it comes to the private VMs, I can access the internet with no issues (incoming-outgoing) however I cannot access the VMs with the public IPs. For example a VM with IP 5.5.5.10 (hypothetical IP) cannot access the VM with IP 192.168.0.10 or the other way round.
Obviously I am missing something here. Can someone please have a look at the interfaces below and spot the problem? I am trying to solve it several days now but with no success whatsoever!
Much appreciated!
>>>>
# network interface settings
##############################
auto lo
iface lo inet loopback
##############################
#
#
##############################
auto eth0
iface eth0 inet static
address 1.1.1.1 <IP Replaced for security Reasons. This is the main IP of the host>
netmask 255.255.255.255
gateway 1.1.1.253 <IP Replaced for security Reasons. This is the main gateway IP of the host>
broadcast 1.1.1.31 <IP Replaced for security Reasons. This is the broadcast IP of the host as given by the DataCenter>
pointopoint 1.1.1.253 <IP Replaced for security Reasons. This is the main gateway IP of the host>
##############################
#
#
##############################
# bridge for VMs with SINGLE public IPs (DMZ)
auto vmbr0
iface vmbr0 inet static
address 1.1.1.1 <IP Replaced for security Reasons. This is the main IP of the host>
netmask 255.255.255.255
broadcast 1.1.1.31 <IP Replaced for security Reasons. This is the broadcast IP of the host as given by the DataCenter>
bridge_ports none
bridge_stp off
bridge_fd 0
# use only if Shorewall is down:
post-up echo 0 > /proc/sys/net/ipv4/conf/vmbr0/send_redirects
up ip route add 2.2.2.2/32 dev vmbr0 <Extra single public IP address given by the DataCenter>
up ip route add 1.1.1.253 <IP Replaced for security Reasons. This is the main gateway IP of the host>3/32 dev vmbr0
##############################
#
#
##############################
# bridge for assigning a SUBNET to VMs
#
auto vmbr1
iface vmbr1 inet static
address 5.5.5.5 <This is the first usable IP of a subnet given by the DataCenter>
#<A usable IP address from the additional subnet>
netmask 255.255.255.0
#<Netmask of the additional subnet>
bridge_ports none
bridge_stp off
bridge_fd 0
#
###############################
#
#
#
###############################
# bridge for internal LAN with private IPs
auto vmbr2
iface vmbr2 inet static
address 192.168.0.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
#
# post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE
# post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE
###############################