IP BLOCK NO ROUTERS

Guti24

New Member
Jan 20, 2024
3
0
1
Hello, I need help, I have a public IP in eno1 and I want to link my IP blocks to my vms, I try to place them in vmbr0 and bmbr1 and it does not route:
my public IP
address 198.51.100.5/29
gateway 198.51.100.1

ip blocks
117.18.34.34
117.18.34.35
117.18.34.36
117.18.34.37
117.18.34.38
Gateway: 117.18.34.33
Netmask: 255.255.255.248
any help send code
---------
car it
iface lo inet loopback

car eno1
#real IP address
iface eno1 inet static
address 198.51.100.5/29
gateway 198.51.100.1

car vmbr0
#private subnetwork
iface vmbr0 inet static
address 117.18.34.34/29
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 '117.18.34.0/29' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '117.18.34.0/29' -o eno1 -j MASQUERADE
 

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!