4. Example - Full Config

  • Views Views: 370
  • Last updated Last updated:
  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now
  • proxmox (1) (1).png

    Introduction

    You have made it this far... hopefully reading what is required to setup and deploy your server! An example of a server and client setup.

    1588681915994.png

    Basic Understanding

    • enp35s0 - network card of the Proxmox server
    • vmbr0 - setting up a dedicated ip address for a website
    • vmbr1 - setting up a network for a private subnet
    • vmbr2 - setting up a network for a public subnet

    Additional Configuration Information

    • 98.218.113.168 - Proxmox Server
    • 98.218.113.135 - Dedicated IP Address (Dedicated Site)
    • 98.218.48.196 - Dedicated IP Address (For Public Subnet)
    • 98.218.54.168 - Public Subnet IP - Network Address
    • 98.218.54.169 - Routing Address - 2nd Address from Subnet
    • 98.218.54.170 - IP Address of 1st Machine for Public Subnet

    Additional Notes

    • The number of the vmbr[#] does not matter, more for tracking purposes of how you setup your interfaces.
    • Not required to place all of the vmbr[#] if a certain type of network is not used.
      • Example 1: No private subnet network such as 10.1.1.0/24 ... vmbr1 would not have to be in this config
      • Example 2: No private public network such as 98.218.54.168/29... vmbr2 would not have to be in this config
    • The file below is one config file together (within it's category) may be split to prevent scrolling of the code.
    • It is critical to put in your notes or a notepad your server config info; one wrong number can keep you entertained all day on why things are not working.
    • Keep in mind that you must utilize the MAC addresses provided by ROBOT for the Proxmox server and for any public ip addresses. If not, you will be warned by Hetzner about a blocking of your network within 7 days.

    Proxmox Server

    Bash:
    # network interface settings; autogenerated
    # Please do NOT modify this file directly, unless you know what
    # you're doing.
    #
    # If you want to manage parts of the network configuration manually,
    # please utilize the 'source' or 'source-directory' directives to do
    # so.
    # PVE will preserve these directives, but will NOT read its network
    # configuration from sourced files, so do not attempt to move any of
    # the PVE managed interfaces into external files!

    source /etc/network/interfaces.d/*

    auto lo
    iface lo inet loopback

    iface lo inet6 loopback

    auto enp35s0
    iface enp35s0 inet manual
    Bash:
    auto vmbr0
    iface vmbr0 inet static
    address 98.218.113.168/32
    gateway 98.218.113.129
    bridge-ports enp35s0
    bridge-stp off
    bridge-fd 0
    up ip route add 98.218.113.135/32 dev vmbr0
    up ip route add 98.218.48.196/32 dev vmbr0

    auto vmbr1
    iface vmbr1 inet static
    address 10.10.10.1/24
    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 '10.10.10.0/24' -o vmbr0 -j MASQUERADE
    post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE

    auto vmbr2
    iface vmbr2 inet static
    address 98.218.48.196
    netmask 255.255.0.0
    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 '98.218.54.168/16' -o vmbr0 -j MASQUERADE
    post-down iptables -t nat -D POSTROUTING -s '98.218.54.168/16' -o vmbr0 -j MASQUERADE

    Client Dedicated IP

    NOTE: vmbr0 has been selected as the network card in the GUI.

    Bash:
    # This file describes the network interfaces available on your system
    # For more information, see netplan(5).
    network:
    version: 2
    renderer: networkd
    ethernets:
    ens18:
    addresses: [ 98.218.113.135/26 ]
    gateway4: 98.218.113.168
    nameservers:
    addresses:
    - "1.1.1.1"
    - "8.8.8.8"

    Client Private Subnet

    ** Requires writeup

    Client Public Subnet

    NOTE: vmbr2 has been selected as the network card in the GU.

    Bash:
    # This file describes the network interfaces available on your system
    # For more information, see netplan(5).
    network:
    version: 2
    renderer: networkd
    ethernets:
    ens18:
    addresses:
    - 98.218.54.171/16
    gateway4: 98.218.113.168
    routes:
    - to: 98.218.48.196/16
    via: 98.218.54.169
    nameservers:
    addresses:
    - "1.1.1.1"
    - "8.8.8.8"
  • Loading…