[SOLVED] Issue with accessing other subnet IP range

JorisDijk

New Member
Oct 28, 2024
1
0
1
Hello Proxmox Community,

I'm a bit lost and I hope someone can help me with this.
I'm hosting at hetzner and had initially one IP address (on /27 range). Now this is fine as I'm still setting up the initial IP was: 176.9.**.*** where the proxmos is also running on. The IP is reachable i had set restrictions for IP access to the webpanel and ssh to ensure security. I decided to buy a /29 range where the gateway would be equal to my initial IP and the IP range is as following 78.46.**.***

Code:
My interface is:
auto vmbr0
iface vmbr0 inet static
      address      176.9.**.***/27
      gateway      176.9.**.*** (other ip then my address but same start)
      bridge-ports enp34s0
      bridge-stp   off
      bridge-fd    0
      up           sysctl -p
      post-up iptables -t nat -A POSTROUTING -s '192.168.192.0/18' -o vmbr0 -j MASQUERADE
auto vmbr1
iface vmbr1 inet manual
    bridge-ports none
    bridge-stp off
    bridge-fd 0
auto vmbr2
iface vmbr2 inet static
      address      192.168.192.5/18
      bridge-ports none
      bridge-stp   off
      bridge-fd    0
      post-up      iptables -t nat -A POSTROUTING -s '192.168.192.0/18' -o vmbr0 -j MASQUERADE
      post-down    iptables -t nat -D POSTROUTING -s '192.168.192.0/18' -o vmbr0 -j MASQUERADE
      post-up      iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
      post-down    iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1

Cloud-Init IP Config (net0):
IPv4/CIDR: 78.46.**.***/29 is just a ip address within the range not the first and not the last one due to subnet and broadcast IPs. and gateway as defined by hetzner 176.9.**.*** (same as my Proxmox ip).

When trying to run console arp -a on the VPS it returns:
ubuntu@vps109-cus2:~$ arp -a
? (176.9.**.***) (Proxmox IP) at <incomplete> on eth0

doing arp -a on the proxmox I don't see it neither. the VPS is connected to vmbr1 when i connect the vps to vmbr2 and give it a dynamic IP the VPS can ping and do everything fine wihout any issues but of course has the Proxmox IP while I want to give everyone their own IP

For the tests I completely disabled Firewall also the ones from Proxmox and restarted several times.

I reinstalled everything and followed the tutorial from Medium in combination with the one from hetzner and it works fine now! No support needed anymore <3
 
Last edited:

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!