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:
can someone help me config this?
Thank you
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