One server with two public IPs

wxipn

Member
Jun 2, 2019
19
0
21
23
Hi everyone,

i have one serveur, and 2 public ip. I would like to have one ip for my proxmox, and the second for all my vm, How can I set it up?
Code:
auto lo
iface lo inet loopback

iface eno3 inet manual

iface eno1 inet manual

iface eno2 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
    address .26/24
    gateway .254
    bridge-ports eno3
    bridge-stp off
    bridge-fd 0
    hwaddress :98

iface vmbr0 inet6 static
    address ::/64
    gateway ff

auto vmbr1
iface vmbr1 inet static
    address 192.168.50.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 '192.168.50.0/24' -o vmbr0 -j MASQUERADE
        post-up /root/dnat.sh
        post-down iptables -t nat -D POSTROUTING -s '192.168.50.0/24' -o vmbr0 -j MASQUERADE

I have an Nginx proxy manager, but it is configured to go to the primary address of the proxmox :81
I have a subdomain that redirects to my proxmox with my IP, how do I set up my second public IP? Should I create a new bridge? TY