Configure proxmox host with public ip block assigned

screab

New Member
Jan 13, 2018
1
0
1
30
Hello,

I came here for help because I can't seem to properly configure my host and guests from a networking perspective.

So I have a server which has an entire block of ips available xxx.xxx.145.0 - xxx.xxx.145.255.
The ip for the server is xxx.xxx.145.135 ( assigned from the hosting provider ) and the gateway is xxx.xxx.145.1

I managed to create a vm and assign it the ip xxx.xxx.145.5 and I can ssh into the vm and the vm can reach any part of the internet. The problem is that any other vm won't connect to the outside world even though the setup is identical to the virst vm.

I'll leave here my configurations:

Host /etc/network/interfaces

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug eth0

iface eth0 inet manual
broadcast xxx.xxx.145.255
network xxx.xxx.145.0
dns-nameservers 62.141.32.5 62.141.32.4 62.141.32.3
dns-search venus.hostingcompany.de
# dns-* options are implemented by the resolvconf package, if installed

auto vmbr0
iface vmbr0 inet static
address xxx.xxx.145.135
netmask 255.255.255.0
gateway xxx.xxx.145.1
bridge_ports eth0
bridge_stp off
bridge_fd 0

VM1 /etc/network/interfaces

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens18
iface ens18 inet static
address xxx.xxx.145.5
netmask 255.255.255.0
gateway xxx.xxx.145.1

VM2 /etc/network/interfaces

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens18
iface ens18 inet static
address xxx.xxx.145.6
netmask 255.255.255.0
gateway xxx.xxx.145.1

So, I can ssh into VM1 from a remote location but I can't ssh into VM2 or reach the internet from it. A more curious thing is that from any machine I can ping any IP from the xxx.xxx.145.0/24 network.

Can you please explain to me what am I missing and how should I tackle this problem ?

Thank you
 
Hello,

I came here for help because I can't seem to properly configure my host and guests from a networking perspective.

So I have a server which has an entire block of ips available xxx.xxx.145.0 - xxx.xxx.145.255.
The ip for the server is xxx.xxx.145.135 ( assigned from the hosting provider ) and the gateway is xxx.xxx.145.1

I managed to create a vm and assign it the ip xxx.xxx.145.5 and I can ssh into the vm and the vm can reach any part of the internet. The problem is that any other vm won't connect to the outside world even though the setup is identical to the virst vm.

Maybe your provider's firewall blocks the connection. Check by

Code:
tcpdump -e -n -i eth0 | grep xxx.xxx.145.6

if IP packets are correctly transmitted to the gateway (and if they are answered).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!