Hetzner with Subnet not working

Discussion in 'Proxmox VE: Networking and Firewall' started by Crakila, Oct 5, 2018.

  1. Crakila

    Crakila New Member

    Joined:
    Oct 5, 2018
    Messages:
    2
    Likes Received:
    0
    Hey guys. First time user of Proxmox after hearing about it from a friend.

    There has been multiple threads on this forum with no resolutions and some outdated tutorials that is not helping.

    My situation is this:
    I have Proxmox working but when I spin up any VM and try to configure it, it can't talk to the outside world.

    Running Proxmox VE: 5.2-9

    Code:
    Main Server IP: 144.XX.XXX.198
    
    Gateway: 144.XX.XXX.193
    Netmask: 255.255.255.224
    Broadcast: 144.XX.XXX.223
    
    Subnet: 136.XXX.XXX.144 / 29
    
    Gateway: 144.XX.XXX.198
    Netmask: 255.255.255.248
    Broadcast: 136.XXX.XXX.151
    
    and the /etc/network/interfaces file is as follows:
    Code:
    ### Hetzner Online GmbH installimage
    
    source /etc/network/interfaces.d/*
    
    auto lo
    iface lo inet loopback
    iface lo inet6 loopback
    
    # device: enp2s0
    auto enp2s0
    iface enp2s0 inet static
            address 144.XX.XXX.198
            netmask 255.255.255.224
            gateway 144.XX.XXX.193
            # default route to access subnet
            up route add -net 144.XX.XX.64 netmask 255.255.255.224 gw 144.XX.XXX.193 enp2s0
    
    auto vmbr0
    iface vmbr0 inet static
            address 144.XX.XXX.198
            netmask 255.255.255.255
            bridge_ports none
            bridge_stp off
            bridge_fd 0
            up ip route add 144.XX.XXX.204/32 dev vmbr0
    
    auto vmbr1
    iface vmbr1 inet static
            address 136.XXX.XXX.150
            netmask 255.255.255.248
            bridge_ports none
            bridge_stp off
            bridge_fd 0
    
    Is there anyone that is willing to provide any help on how to get this working correctly?
    Is there any Hetzner customers that are in the same boat as myself when it comes to this?

    Thanks in advance.
     
  2. jkvint

    jkvint New Member

    Joined:
    Nov 7, 2018
    Messages:
    2
    Likes Received:
    0
    Did you manage to solve the problem?
     
  3. Crakila

    Crakila New Member

    Joined:
    Oct 5, 2018
    Messages:
    2
    Likes Received:
    0
    I did but I had to resort to spinning up a pfSense VM and routing everything through it. I had to get my friend to help me, so I apologise if I am missing out on key steps

    the /etc/network/interfaces file is like this:

    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    source /etc/network/interfaces.d/*
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface
    allow-hotplug ens18
    iface ens18 inet dhcp
    
    Then in pfSense go to: Firewall/NAT/1:1 and associate your external IP address with the internal IP address:

    Replace your external subnet IP with your own Subnet range.

    Qb61vwK.png

    Hopefully this is the basis for what you need to do. Apologies again.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice