Different Public IP addresses in each VM

  • Thread starter Thread starter cletus8
  • Start date Start date
C

cletus8

Guest
Hello everyone!!

Well, I recently installed Proxmox, and i have to say that im amazed about its easyness of use.
However, im facing a "problem" here:
I installed Pfsense and Endian as VMs and each one is getting a different public IP address:

I have 2 bridges created: vmbr0 contains eth0 and vmbr1 contains eth1
eth0/vmbr0 is directly connected to the modem, from where I receive an IP address through DHCP.
eth1/vmbr1 is connected to a switch

In proxmox, the vmbr0 ip is 200.xxx.146.102
In PFsense, the eth0 IP (which is the wan interface of the OS) is 200.xxx.144.107
in Endian, the eth0 IP (same case than PFsense), is 200.xxx.166.48

I have internet access in all the OS, and I can ping outside hosts from all the OS.
Apparently, im getting a new public IP per every OS that i install with vmbr0 as NIC. But my ISP is NOT supposed to give me extra ip addresses.

Also, if I ping any of this IP addresses, from another network (another internet connection), i dont receive a response (request timed out).
So, im I really having 3 different public IP addresses, or its some kind of NAT that ProxMox does with the hosts?
This is a problem to me, because if im really having 3 different IP addresses from my ISP, they are going to charge me for them as im supposed to have only 1!

Thanks in advance! :D
 
Last edited by a moderator:
I have 2 bridges created: vmbr0 contains eth0 and vmbr1 contains eth1
eth0/vmbr0 is directly connected to the modem, from where I receive an IP address through DHCP.
eth1/vmbr1 is connected to a switch
Do you use DHCP?
This is a problem to me, because if im really having 3 different IP addresses from my ISP, they are going to charge me for them as im supposed to have only 1!
What do you mean? Do you want to use only 1 IP? Which one?

I have internet access in all the OS, and I can ping outside hosts from all the OS.
Also, if I ping any of this IP addresses, from another network (another internet connection), i dont receive a response (request timed out).
You can ping from inside VM but not vice verse?


Apparently, im getting a new public IP per every OS that i install with vmbr0 as NIC. But my ISP is NOT supposed to give me extra ip addresses.
What do you mean? Do you want to add more IP?
 
Do you use DHCP?

What do you mean? Do you want to use only 1 IP? Which one?



You can ping from inside VM but not vice verse?



What do you mean? Do you want to add more IP?

Sorry if i was not clear enough:

1) My ISP uses DHCP to provide me an IP address.
2) Yes, i want to use only 1 IP. I want Proxmox, VM1 and VM2 to have the SAME public IP, that my ISP leased me.
3) I can ping from any VM to the outside. For example, i can ping to google from VM1 and VM2. But when I want to ping VM1 or VM2 IPs, i cant.
4) I mean that MY ISP gives me only 1 Public IP address. If I want another extra IP Address, Im supposed to pay them an extra fee.
 
If you want to use only 1 Public IP then you need to NAT and Port Forwarding which is better to configure on your Router (you may set it up on Proxmox but the configuration become complex and hard to troubleshoot).

Suppose your Public IP is 123.123.123.123 then put it on the Router. Use 192.168.1.254 for LAN Gateway and assign:
192.168.1.1 = Proxmox
192.168.1.2 = VM1
192.168.1.3 = VM2 .. and so on

Now, make a Port Fwd on the Router to forward:
Port 8006 = Proxmoz
Port ..... = PFSense
Port ..... = Endian