Alright, so I've had this problem for about a week now and have tried to research it myself and figure it out but it just doesn't make much sense. So here is all I've done to diagnose the issue...
So here is what results when I try to update:
root@proxmox:/etc/apt# apt-get update
0% [Connecting to ftp.us.debian.org] [Connecting to download.proxmox.com] [Connecting to security.debian.org]
It hangs like that for awhile and then:
root@proxmox:/etc/apt# apt-get update
Err http://download.proxmox.com squeeze Release.gpg
Connection failed
Err http://security.debian.org squeeze/updates Release.gpg
Connection failed [IP: 128.31.0.36 80]
Err http://download.proxmox.com/debian/ squeeze/pve Translation-en
Connection failed
Err http://security.debian.org/ squeeze/updates/contrib Translation-en
Connection failed [IP: 128.101.240.212 80]
0% [Waiting for headers] [Waiting for headers] [Waiting for headers]
It keeps doing that and fails to connect to each IP. When I run a telnet or wget, the server halfway responds but no accepted connection:
root@proxmox:/etc/apt# telnet 128.101.240.212 80
Trying 128.101.240.212...
Connected to 128.101.240.212.
Escape character is '^]'.
root@proxmox:/etc/apt# wget http://128.101.240.212
--2013-03-27 04:30:30-- http://128.101.240.212/
Connecting to 128.101.240.212:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
--2013-03-27 04:30:56-- (try: 2) http://128.101.240.212/
Connecting to 128.101.240.212:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
From a machine on the same network it works fine:
root@webserver:~# wget http://128.101.240.212
--2013-03-27 04:30:57-- http://128.101.240.212/
Connecting to 128.101.240.212:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 896 [text/html]
Saving to: `index.html.1'
100%[======================================>] 896 --.-K/s in 0s
2013-03-27 04:30:58 (127 MB/s) - `index.html.1' saved [896/896]
This is my /etc/apt/sources.list file:
deb http://ftp.us.debian.org/debian squeeze main contrib
# PVE packages provided by proxmox.com
deb http://download.proxmox.com/debian squeeze pve
# security updates
deb http://security.debian.org/ squeeze/updates main contrib
this is my interfaces file:
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 192.168.1.30
netmask 255.255.255.0
gateway 192.168.1.2
bridge_ports eth0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet manual
bridge_ports eth1
bridge_stp off
bridge_fd 0
resolv.conf:
search ***********.com
nameserver 192.168.1.2
nameserver 8.8.8.8
nameserver 4.2.2.1
ifconfig output:
root@proxmox:/etc/apt# ifconfig
eth0 Link encap:Ethernet HWaddr 00:26:b9:67:98:00
inet6 addr: fe80::226:b9ff:fe67:9800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42975 errors:0 dropped:0 overruns:0 frame:0
TX packets:56157 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8095625 (7.7 MiB) TX bytes:11800964 (11.2 MiB)
Interrupt:17
eth1 Link encap:Ethernet HWaddr 00:14:d1:1e:cb:cb
inet6 addr: fe80::214:d1ff:fe1e:cbcb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35873 errors:0 dropped:0 overruns:0 frame:0
TX packets:41499 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3349507 (3.1 MiB) TX bytes:47507268 (45.3 MiB)
Interrupt:18 Base address:0xf00
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:8908 errors:0 dropped:0 overruns:0 frame:0
TX packets:8908 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2879104 (2.7 MiB) TX bytes:2879104 (2.7 MiB)
tap100i0 Link encap:Ethernet HWaddr fa:9b:1d:7c:27:d4
inet6 addr: fe80::f89b:1dff:fe7c:27d4/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:252 errors:0 dropped:0 overruns:0 frame:0
TX packets:7682 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:28375 (27.7 KiB) TX bytes:565495 (552.2 KiB)
tap101i0 Link encap:Ethernet HWaddr 0a:ee:a1:e7:e0:8b
inet6 addr: fe80::8ee:a1ff:fee7:e08b/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:166 errors:0 dropped:0 overruns:0 frame:0
TX packets:7527 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:11852 (11.5 KiB) TX bytes:531103 (518.6 KiB)
tap102i0 Link encap:Ethernet HWaddr 4a:0f:57:d2:61:a4
inet6 addr: fe80::480f:57ff:fed2:61a4/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:35803 errors:0 dropped:0 overruns:0 frame:0
TX packets:37448 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:45921026 (43.7 MiB) TX bytes:2643824 (2.5 MiB)
tap104i2 Link encap:Ethernet HWaddr ce:b3:4e:89:01:cc
inet6 addr: fe80::ccb3:4eff:fe89:1cc/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:35826 errors:0 dropped:0 overruns:0 frame:0
TX packets:49648 errors:0 dropped:0 overruns:510 carrier:0
collisions:0 txqueuelen:500
RX bytes:3456479 (3.2 MiB) TX bytes:48137197 (45.9 MiB)
tap104i3 Link encap:Ethernet HWaddr 36:ee:22:24:8a:3b
inet6 addr: fe80::34ee:22ff:fe24:8a3b/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:41472 errors:0 dropped:0 overruns:0 frame:0
TX packets:35901 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:47505498 (45.3 MiB) TX bytes:3351282 (3.1 MiB)
tap105i1 Link encap:Ethernet HWaddr a2:e2:64:90:ca:d3
inet6 addr: fe80::a0e2:64ff:fe90:cad3/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:79 errors:0 dropped:0 overruns:0 frame:0
TX packets:6973 errors:0 dropped:0 overruns:501 carrier:0
collisions:0 txqueuelen:500
RX bytes:12572 (12.2 KiB) TX bytes:482238 (470.9 KiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: fe80::1/128 Scope:Link
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:3 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:26:b9:67:98:00
inet addr:192.168.1.30 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::226:b9ff:fe67:9800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37478 errors:0 dropped:0 overruns:0 frame:0
TX packets:49398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5751631 (5.4 MiB) TX bytes:10140918 (9.6 MiB)
vmbr1 Link encap:Ethernet HWaddr 00:14:d1:1e:cb:cb
inet6 addr: fe80::214:d1ff:fe1e:cbcb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:120 (120.0 B) TX bytes:468 (468.0 B)
Routes:
root@proxmox:/etc/apt# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0
0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 vmbr0
So anyone have any clue what is going on? I believe it's some sort of networking problem on the proxmox machine. And keep in mind that from my webserver in the same network everything connects fine to the same IPs. So it's not my firewall or any rules/filtering. I've checked all that and turned off security and such.. it's not my firewall.
So here is what results when I try to update:
root@proxmox:/etc/apt# apt-get update
0% [Connecting to ftp.us.debian.org] [Connecting to download.proxmox.com] [Connecting to security.debian.org]
It hangs like that for awhile and then:
root@proxmox:/etc/apt# apt-get update
Err http://download.proxmox.com squeeze Release.gpg
Connection failed
Err http://security.debian.org squeeze/updates Release.gpg
Connection failed [IP: 128.31.0.36 80]
Err http://download.proxmox.com/debian/ squeeze/pve Translation-en
Connection failed
Err http://security.debian.org/ squeeze/updates/contrib Translation-en
Connection failed [IP: 128.101.240.212 80]
0% [Waiting for headers] [Waiting for headers] [Waiting for headers]
It keeps doing that and fails to connect to each IP. When I run a telnet or wget, the server halfway responds but no accepted connection:
root@proxmox:/etc/apt# telnet 128.101.240.212 80
Trying 128.101.240.212...
Connected to 128.101.240.212.
Escape character is '^]'.
root@proxmox:/etc/apt# wget http://128.101.240.212
--2013-03-27 04:30:30-- http://128.101.240.212/
Connecting to 128.101.240.212:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
--2013-03-27 04:30:56-- (try: 2) http://128.101.240.212/
Connecting to 128.101.240.212:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
From a machine on the same network it works fine:
root@webserver:~# wget http://128.101.240.212
--2013-03-27 04:30:57-- http://128.101.240.212/
Connecting to 128.101.240.212:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 896 [text/html]
Saving to: `index.html.1'
100%[======================================>] 896 --.-K/s in 0s
2013-03-27 04:30:58 (127 MB/s) - `index.html.1' saved [896/896]
This is my /etc/apt/sources.list file:
deb http://ftp.us.debian.org/debian squeeze main contrib
# PVE packages provided by proxmox.com
deb http://download.proxmox.com/debian squeeze pve
# security updates
deb http://security.debian.org/ squeeze/updates main contrib
this is my interfaces file:
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 192.168.1.30
netmask 255.255.255.0
gateway 192.168.1.2
bridge_ports eth0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet manual
bridge_ports eth1
bridge_stp off
bridge_fd 0
resolv.conf:
search ***********.com
nameserver 192.168.1.2
nameserver 8.8.8.8
nameserver 4.2.2.1
ifconfig output:
root@proxmox:/etc/apt# ifconfig
eth0 Link encap:Ethernet HWaddr 00:26:b9:67:98:00
inet6 addr: fe80::226:b9ff:fe67:9800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42975 errors:0 dropped:0 overruns:0 frame:0
TX packets:56157 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8095625 (7.7 MiB) TX bytes:11800964 (11.2 MiB)
Interrupt:17
eth1 Link encap:Ethernet HWaddr 00:14:d1:1e:cb:cb
inet6 addr: fe80::214:d1ff:fe1e:cbcb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35873 errors:0 dropped:0 overruns:0 frame:0
TX packets:41499 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3349507 (3.1 MiB) TX bytes:47507268 (45.3 MiB)
Interrupt:18 Base address:0xf00
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:8908 errors:0 dropped:0 overruns:0 frame:0
TX packets:8908 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2879104 (2.7 MiB) TX bytes:2879104 (2.7 MiB)
tap100i0 Link encap:Ethernet HWaddr fa:9b:1d:7c:27:d4
inet6 addr: fe80::f89b:1dff:fe7c:27d4/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:252 errors:0 dropped:0 overruns:0 frame:0
TX packets:7682 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:28375 (27.7 KiB) TX bytes:565495 (552.2 KiB)
tap101i0 Link encap:Ethernet HWaddr 0a:ee:a1:e7:e0:8b
inet6 addr: fe80::8ee:a1ff:fee7:e08b/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:166 errors:0 dropped:0 overruns:0 frame:0
TX packets:7527 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:11852 (11.5 KiB) TX bytes:531103 (518.6 KiB)
tap102i0 Link encap:Ethernet HWaddr 4a:0f:57:d2:61:a4
inet6 addr: fe80::480f:57ff:fed2:61a4/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:35803 errors:0 dropped:0 overruns:0 frame:0
TX packets:37448 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:45921026 (43.7 MiB) TX bytes:2643824 (2.5 MiB)
tap104i2 Link encap:Ethernet HWaddr ce:b3:4e:89:01:cc
inet6 addr: fe80::ccb3:4eff:fe89:1cc/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:35826 errors:0 dropped:0 overruns:0 frame:0
TX packets:49648 errors:0 dropped:0 overruns:510 carrier:0
collisions:0 txqueuelen:500
RX bytes:3456479 (3.2 MiB) TX bytes:48137197 (45.9 MiB)
tap104i3 Link encap:Ethernet HWaddr 36:ee:22:24:8a:3b
inet6 addr: fe80::34ee:22ff:fe24:8a3b/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:41472 errors:0 dropped:0 overruns:0 frame:0
TX packets:35901 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:47505498 (45.3 MiB) TX bytes:3351282 (3.1 MiB)
tap105i1 Link encap:Ethernet HWaddr a2:e2:64:90:ca:d3
inet6 addr: fe80::a0e2:64ff:fe90:cad3/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:79 errors:0 dropped:0 overruns:0 frame:0
TX packets:6973 errors:0 dropped:0 overruns:501 carrier:0
collisions:0 txqueuelen:500
RX bytes:12572 (12.2 KiB) TX bytes:482238 (470.9 KiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: fe80::1/128 Scope:Link
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:3 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:26:b9:67:98:00
inet addr:192.168.1.30 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::226:b9ff:fe67:9800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37478 errors:0 dropped:0 overruns:0 frame:0
TX packets:49398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5751631 (5.4 MiB) TX bytes:10140918 (9.6 MiB)
vmbr1 Link encap:Ethernet HWaddr 00:14:d1:1e:cb:cb
inet6 addr: fe80::214:d1ff:fe1e:cbcb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:120 (120.0 B) TX bytes:468 (468.0 B)
Routes:
root@proxmox:/etc/apt# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0
0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 vmbr0
So anyone have any clue what is going on? I believe it's some sort of networking problem on the proxmox machine. And keep in mind that from my webserver in the same network everything connects fine to the same IPs. So it's not my firewall or any rules/filtering. I've checked all that and turned off security and such.. it's not my firewall.