Problems with getting container access from internet

Here we go. And thanks for your help hopefully with your help this is will start working

Code:
proxmox:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.0.249   *               255.255.255.255 UH    0      0        0 vmbr0
192.168.0.0     *               255.255.255.0   U     0      0        0 vmbr1
86.8.176.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         86.8.176.1      0.0.0.0         UG    0      0        0 vmbr0
proxmox:~#
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:228 errors:0 dropped:0 overruns:0 frame:0
          TX packets:257 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:33127 (32.3 KiB)  TX bytes:82656 (80.7 KiB)
          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:232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36231 (35.3 KiB)  TX bytes:1344 (1.3 KiB)
          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:373 errors:0 dropped:0 overruns:0 frame:0
          TX packets:373 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:91255 (89.1 KiB)  TX bytes:91255 (89.1 KiB)

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vmbr0     Link encap:Ethernet  HWaddr 00:15:c5:e7:17:77
          inet addr:86.8.176.70  Bcast:86.8.179.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:190 errors:0 dropped:0 overruns:0 frame:0
          TX packets:236 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:26547 (25.9 KiB)  TX bytes:79070 (77.2 KiB)

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:232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:31859 (31.1 KiB)  TX bytes:798 (798.0 B)


# network interface settings
auto lo
iface lo inet loopback

iface eth inet static
address 86.8.176.70
netmask 255.255.252.0
gateway 86.8.176.1

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
address 86.8.176.70
netmask 255.255.252.0
gateway 86.8.176.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
up route add -host 192.168.0.249 dev vmbr0

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
 
# network interface settings
auto lo
iface lo inet loopback

iface eth inet static
address 86.8.176.70
netmask 255.255.252.0
gateway 86.8.176.1

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
address 86.8.176.70
netmask 255.255.252.0
gateway 86.8.176.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
up route add -host 192.168.0.249 dev vmbr0

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

OK, please remove all things I marked 'red' - then test again.
 
Hi there,
I've done like you've said the the system is now booting the openvm. But I can't get access to the opvem from the internet or LAN. Should I add back in the route:

up route add -host 192.168.0.249 dev vmbr0


here are the logs:

Code:
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb  7 16:48:48 2010 from 192.168.0.84
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:1045 errors:0 dropped:0 overruns:0 frame:0
          TX packets:758 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:120901 (118.0 KiB)  TX bytes:330664 (322.9 KiB)
          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:1332 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:248558 (242.7 KiB)  TX bytes:7918 (7.7 KiB)
          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:315 errors:0 dropped:0 overruns:0 frame:0
          TX packets:315 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:68281 (66.6 KiB)  TX bytes:68281 (66.6 KiB)

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:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1692 (1.6 KiB)  TX bytes:0 (0.0 B)

vmbr0     Link encap:Ethernet  HWaddr 00:15:c5:e7:17:77
          inet addr:86.8.176.70  Bcast:86.8.179.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:1045 errors:0 dropped:0 overruns:0 frame:0
          TX packets:664 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:99985 (97.6 KiB)  TX bytes:320624 (313.1 KiB)

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:1333 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:223830 (218.5 KiB)  TX bytes:7096 (6.9 KiB)

proxmox:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.249   *               255.255.255.255 UH    0      0        0 venet0
192.168.0.0     *               255.255.255.0   U     0      0        0 vmbr1
86.8.176.0      *               255.255.252.0   U     0      0        0 vmbr0
default         cpc3-brig13-0-0 0.0.0.0         UG    0      0        0 vmbr0


From the container - I can't get internet access now as well.

Here are the logs from inside the container:

Code:
root@wde1001:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.0.2.1       *               255.255.255.255 UH    0      0        0 venet0
default         192.0.2.1       0.0.0.0         UG    0      0        0 venet0




root@wde1001:~# ifconfig
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:930 errors:0 dropped:0 overruns:0 frame:0
          TX packets:930 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100612 (98.2 KB)  TX bytes:100612 (98.2 KB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:66 errors:0 dropped:0 overruns:0 frame:0
          TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7616 (7.4 KB)  TX bytes:16276 (15.8 KB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.0.249  P-t-P:192.168.0.249  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
 
Last edited:
From the container - I can't get internet access now as well.

You setup seem OK now. But your container still uses a 'privat' IP address. Such address will not get routed to the internet unless you do some kind of NAT (on your firewall?)
 
The private ip range does have end point depentant NAT. But I'm sure there must be away I assign the openvm to the ip address 86.8.172.70 but on a different port such as 8080.
 
I've tried to bond the container to the device, does anyone have a working setup they can post?
Or can someone connect my server and help me out?

Thanks,