Proxmox 3.1 using tow public IPv4`s

mrbrown997

New Member
Jul 16, 2013
11
0
1
Hey,

im posting here since i can't find any solution to my problem in words, i can understand.
My problem is, i´ve got a root-server with debian 7 on which i want to have proxmox installed.
Therefore i`ve got tow public IP`s :
85.114.132.XXX (Main IP)
78.31.71.XXX

Now what i want to achieve is:

1. #1 IP (192.95.31.41) for Proxmox Web UI
2. #2 IP (198.50.153.144) will be used for External Access of KVM/OpenVZ with LAN IP (192.168.0.0/24)

this setup has been allready discussed within another thread in this forum but there ws no solution mentioned in th end:
http://188.165.151.221/threads/13707-How-to-make-Proxmox-masquerade-to-secondary-IP

So how do i have to setup the network config on both systems to achieve this?

Another Question would be, if it is possible to forward only the IPV6 to another conainer since i downt want to buy another IPv4-Address.

I would appreciate any help.
 
there are some questions....

you said you have two ip's 85.114.132.x and 78.31.71.x
is 78.31.71.x routed to 85.114.132.x or how has the isp assigned that ip to you?
what are 192.95.31.41 and 198.50.153.144, do you own them also?

i would try using eth0 and eth0:0 each with one public ip where vmbr0 is connected to eth0 and vmbr1 to eth0:0 and use iptables for port forwarding from public ip's to your private ip's on the bridge devices;

screenie
 
Hi screenie,

thanks for taht fast reply.

1.
the second ip is routed not bridged

2.
the 192.xxx.xxx.xxx was just copied from the thread i mentioned, i forgot to replace it as followed:

1. #1 IP (85.114.132.XXX) for Proxmox Web UI
2. #2 IP (78.31.71.XXX) will be used for External Access of KVM/OpenVZ with LAN IP (192.168.0.0/24)

i would try using eth0 and eth0:0 each with one public ip where vmbr0 is connected to eth0 and vmbr1 to eth0:0 and use iptables for port forwarding from public ip's to your private ip's on the bridge devices;


could you specify this a little bit more. How would a etc/network/interfaces look like. My fisr shot was this:

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
   address 85.114.132.XXX
[/COLOR][COLOR=#333333] netmask 255.255.255.0
[/COLOR][COLOR=#333333]    broadcast [/COLOR][COLOR=#333333]85.114.132.255[/COLOR][COLOR=#333333]
[/COLOR][COLOR=#333333]    gateway [/COLOR][COLOR=#333333]85.114.132.1[/COLOR][COLOR=#333333]
[/COLOR][COLOR=#333333]
[/COLOR][COLOR=#333333]auto eth0:1
iface eth0:1 inet static
   address 78.31.71.XXX
[/COLOR][COLOR=#333333]    netmask 255.255.255.0
[/COLOR][COLOR=#333333]    broadcast [/COLOR][COLOR=#333333]78.31.71.255[/COLOR][COLOR=#333333]
[/COLOR][COLOR=#333333]    gateway [/COLOR][COLOR=#333333]85.114.132.1[/COLOR][COLOR=#333333]

iface eth0 inet6 static
   address .... HERE THE V6 CODE
[/COLOR]


 
hmmm... not so easy.... never had something like this - i would try following:

eth0 == vmbr0 (85.114.132.x)
eth0:0
== vmbr1 (78.31.71.x)
eth0:1 == vmbr2 (192.168.1.1) == vm's
(192.168.1.0/24)
the rest is all iptables to nat and forward your traffic properly


maybe you don't need the bridge interfaces for the public ip's then you could do:

eth0 = 85.114.132.x
eth0:0
= 78.31.71.x
eth0:1 == vmbr0 (192.168.1.1)
== vm's (192.168.1.0/24)
 
Last edited:

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!