Proxmox (like VMware) - forward public IP to container?

Associate
Joined
6 Jan 2008
Posts
316
Hi

I've been playing around with the settings in proxmox for sometime now, and I can't seem to get my public IP to be directly attached to a container on the server.

Could someone please post a guide/instructions on how to do this?

I've tried bridging a connection to an ethernet port, but for some reason it doesnt 'fetch' an IP address from the ISP.

I've search the forums at proxmox for an answer but as of yet unable to find a solution that works.


Thank you.
 
Here is the config output - as mentioned I can get the container to Ping out send data out, but Im trying to have it so that if I visit 86.XXX.XXX.70 it will directly goto the container IP 192.168.0.249.


Code:
proxmox:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:15:c5:e7:17:77
          inet6 addr: fe80::215:c5ff:fee7:1777/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:65467 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36170 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9477247 (9.0 MiB)  TX bytes:4857701 (4.6 MiB)
          Interrupt:16 Memory:f8000000-f8012800

eth1      Link encap:Ethernet  HWaddr 00:15:c5:e7:17:79
          inet6 addr: fe80::215:c5ff:fee7:1779/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:950892 errors:0 dropped:0 overruns:0 frame:0
          TX packets:124052 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:280347656 (267.3 MiB)  TX bytes:19396295 (18.4 MiB)
          Interrupt:16 Memory:f4000000-f4012800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:39449 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39449 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10083986 (9.6 MiB)  TX bytes:10083986 (9.6 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:249 errors:0 dropped:0 overruns:0 frame:0
          TX packets:223 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:38440 (37.5 KiB)  TX bytes:26090 (25.4 KiB)

vmbr0     Link encap:Ethernet  HWaddr 00:15:c5:e7:17:77
          inet addr:86.XXX.XXX.70  Bcast:86.X.XXX.255  Mask:255.255.252.0
          inet6 addr: fe80::215:c5ff:fee7:1777/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:65464 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35879 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8003333 (7.6 MiB)  TX bytes:4424889 (4.2 MiB)

vmbr1     Link encap:Ethernet  HWaddr 00:15:c5:e7:17:79
          inet addr:192.168.0.250  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::215:c5ff:fee7:1779/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:950151 errors:0 dropped:0 overruns:0 frame:0
          TX packets:122986 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:262458678 (250.3 MiB)  TX bytes:18659210 (17.7 MiB)

Code:
proxmox:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 vmbr1
86.XXX.XXX.0      *               255.255.252.0   U     0      0        0 vmbr0
default         192.168.0.1     0.0.0.0         UG    0      0        0 vmbr1
default         cpc3-brig13-0-0 0.0.0.0         UG    0      0        0 vmbr0

Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet static

auto vmbr0
iface vmbr0 inet static
	address  86.XXX.XXX.70
	netmask  255.255.252.0
	gateway  86.XXX.XXX.1
	bridge_ports eth0
	bridge_stp off
	bridge_fd 0

auto vmbr1
iface vmbr1 inet static
	address  192.168.0.250
	netmask  255.255.255.0
	gateway  192.168.0.1
	bridge_ports eth1
	bridge_stp off
	bridge_fd 0
 
Back
Top Bottom