External ip's NOT WORKING

rosivaldo

New Member
Apr 26, 2023
4
0
1
Hi, can some one HELP ME!

I trying to config proxmox with 2 external ip´s, the main ip it´s working.
I can get my secound ip to work.
I have created 4 linux bridge's, vmbr0 with external ip1 and vmbr1 with local network with ip1 getway, vmbr2 with external ip2 and vmbr3 local network with ip2 getway.
I have internet on vmbr1, i don't have on the vmbr3, but i have network. And the gatway is the same on both vrmb.

My etc/network/interfaces File looks like this:

Code:
auto eno2
iface eno2 inet static
        address IP1/26
        gateway 116.202.XXX.XXX
        pointopoint 116.202.XXX.XXX
        up route add -net 116.202.XXX.XXX netmask 255.255.255.XXX gw 116.202.XXX.XXX dev eno2
        post-up echo 1 > /proc/sys/net/ipv4/conf/eno2/proxy_arp
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward




iface eno2 inet6 static
        address 2a01:4f8:XXX:XXXX::X/64
        gateway fe80::1


auto vmbr0
iface vmbr0 inet static
        address IP1/32
        bridge-ports none
        bridge-stp off
        bridge-fd 0
        bridge-maxwait 0


auto vmbr1
iface vmbr1 inet static
        address 172.16.100.1/24
        gateway 116.202.XXX.XXX
        bridge-ports none
        bridge-stp off
        bridge-fd 0
#NAT Router


auto vmbr2
iface vmbr2 inet static
        address IP2/32
        bridge-ports none
        bridge-stp off
        bridge-fd 0
        bridge-maxwait 0


auto vmbr3
iface vmbr3 inet static
        address 172.16.200.1/24
        gateway 116.202.XXX.XXX
        bridge-ports none
        bridge-stp off
        bridge-fd 0
#NAT Router


        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-down echo 0 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -t nat -A POSTROUTING -s '172.16.100.0/24' -o eno2 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '172.16.100.0/24' -o eno2 -j MASQUERADE
        post-up iptables -t nat -A POSTROUTING -s '172.16.200.0/24' -o eno2 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '172.16.200.0/24' -o eno2 -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



can someone help me config this?

Thank you
 
Hello,

what do you want to do with your two external IP adresses? Give them to your VMs? Then you don't have to assign them to Proxmox interfaces at all.

Another thing: Is this a self-hosted server or something rented? Most providers of rented hosts require you to make sure that only certain MAC adresses are used.

We should be sure of what the plan is before we make suggestions, since then you have to move some things around and use a bridge instead of a single interface to connect to stuff.

Kind regards,
Benedikt
 
Hello,

what do you want to do with your two external IP adresses? Give them to your VMs? Then you don't have to assign them to Proxmox interfaces at all.

Another thing: Is this a self-hosted server or something rented? Most providers of rented hosts require you to make sure that only certain MAC adresses are used.

We should be sure of what the plan is before we make suggestions, since then you have to move some things around and use a bridge instead of a single interface to connect to stuff.

Kind regards,
Benedikt

I have 2 externals ips and would like to assign this ips to vm. My data center is hetzner.

The two IPS are not separated, do I have to separate the MAC?

thanks!
 
The eno2 network card has the main IP of the dedicated server. Do I need to create a new network card with the additional ip?
 

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!