Centos Host - bridge network problems

Discussions related to using VirtualBox on Linux hosts.

Centos Host - bridge network problems

Postby devnull » 5. May 2009, 15:58

Host - CentOS 4.7 kernel 2.6.9-78.0.17.EL
VirtualBox - 2.2.0 and 2.2.2
Guest - any linux distro
Guest network type - Bridged - DHCP
Absolutely not firewalls in place

ICMP works between host and guest.

Any tcp or udp communications between host and guest NEVER complete but show established via netstat.
Any tcp or udp communications from guest to other hosts work fine.
Any tcp or udp communications from host to other hosts work fine.

Example:
ssh from host to guest:
guest netstat shows port 22 connection from host.

Host IP - 192.168.1.102
Guest IP - 192.168.1.120
Below is a tcpdump running on guest during ssh session.
NOTE the random IP after the first few
****************************************************************
10:02:28.915940 IP 192.168.1.102.32780 > 192.168.1.120.22: S 59656406:59656406(0) win 5840 <mss 1460,sackOK,timestamp 2059306 0,nop,wscale 2>
10:02:28.916249 IP 192.168.1.120.22 > 192.168.1.102.32780: S 4263837235:4263837235(0) ack 59656407 win 5792 <mss 1460,sackOK,timestamp 603018 2059306,nop,wscale 2>
10:02:28.916733 IP 192.168.1.102.32780 > 192.168.1.120.22: . ack 1 win 1460 <nop,nop,timestamp 2059308 603018>
10:02:28.934278 IP 192.168.1.120.22 > 192.168.1.102.32780: P 1:24(23) ack 1 win 1448 <nop,nop,timestamp 603036 2059308>
10:02:28.943128 IP 192.168.1.102.32780 > 192.168.1.120.22: . ack 24 win 1460 <nop,nop,timestamp 2059329 603036>
10:02:28.975122 IP 192.168.1.102.32780 > 151.132.1.120.22: P 59656407:59656429(22) ack 4263837259 win 1460 <nop,nop,timestamp 2059365 603036>
10:02:29.177170 IP 192.168.1.102.32780 > 150.185.1.120.22: P 59656407:59656429(22) ack 4263837259 win 1460 <nop,nop,timestamp 2059568 603036>
10:02:29.581149 IP 192.168.1.102.32780 > 149.37.1.120.22: P 59656407:59656429(22) ack 4263837259 win 1460 <nop,nop,timestamp 2059972 603036>
10:02:30.389327 IP 192.168.1.102.32780 > 145.253.1.120.22: P 59656407:59656429(22) ack 4263837259 win 1460 <nop,nop,timestamp 2060780 603036>
10:02:32.004886 IP 192.168.1.102.32780 > 139.173.1.120.22: P 59656407:59656429(22) ack 4263837259 win 1460 <nop,nop,timestamp 2062396 603036>
10:02:35.233643 IP 192.168.1.102.32780 > 127.13.1.120.22: P 59656407:59656429(22) ack 4263837259 win 1460 <nop,nop,timestamp 2065628 603036>
10:02:40.040045 IP 192.168.1.120.22 > 192.168.1.102.32779: F 4153941713:4153941713(0) ack 4253298160 win 1448 <nop,nop,timestamp 614144 1950437>
10:02:40.041581 IP 192.168.1.102.32779 > 192.168.1.120.22: R 4253298160:4253298160(0) win 0
10:02:41.702275 IP 192.168.1.102.32780 > 101.205.1.120.22: P 59656407:59656429(22) ack 4263837259 win 1460 <nop,nop,timestamp 2072092 603036>
10:02:54.625621 IP 192.168.1.102.32780 > 51.77.1.120.22: P 59656407:59656429(22) ack 4263837259 win 1460 <nop,nop,timestamp 2085020 603036>
10:03:19.237590 IP 192.168.1.102.32780 > 43.210.1.120.22: FP 59656429:59657069(640) ack 4263837259 win 1460 <nop,nop,timestamp 2109631 603036>
10:03:20.477655 IP 192.168.1.102.32780 > 58.223.1.120.22: FP 59656407:59657069(662) ack 4263837259 win 1460 <nop,nop,timestamp 2110876 603036>
devnull
 
Posts: 9
Joined: 29. Apr 2009, 00:48
Primary OS: Other
VBox Version: PUEL
Guest OSses: debian, freebsd

Re: Centos Host - bridge network problems

Postby Perryg » 5. May 2009, 16:15

The addresses listed are from Florida county to latin, and even a Power plant. Do you have anything that is running that is communicating with these while you are in session on the host or client?
Perryg
Site Moderator
 
Posts: 25917
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: Centos Host - bridge network problems

Postby devnull » 5. May 2009, 16:37

Perryg wrote:The addresses listed are from Florida county to latin, and even a Power plant. Do you have anything that is running that is communicating with these while you are in session on the host or client?



Absolutely not! The guest and host are just test machines and are up only to test virtualbox.

And thanks for the quick response.

EDIT: I would also like to add - the tcpdump output shown above with the weird address's only occurs when a session is attempted between guest and host.

EDIT: Also, If you notice the address's appear to be munged in some sort of way. Note the first two octets are always different but the last two "1.120" appear to stay the same.
devnull
 
Posts: 9
Joined: 29. Apr 2009, 00:48
Primary OS: Other
VBox Version: PUEL
Guest OSses: debian, freebsd

Re: Centos Host - bridge network problems

Postby Perryg » 5. May 2009, 17:11

Here is a snip from another post that had this problem. Maybe it will help you.


Well, I figured it out. OpenSSH Server was showing
"status half-configured openssh-server" in dpkg.log ...
so I removed/re-installed it and everything is all good now

sudo apt-get remove openssh-server openssh-client
sudo apt-get install openssh-server openssh-client
Perryg
Site Moderator
 
Posts: 25917
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: Centos Host - bridge network problems

Postby devnull » 5. May 2009, 17:37

Perryg wrote:Here is a snip from another post that had this problem. Maybe it will help you.


Well, I figured it out. OpenSSH Server was showing
"status half-configured openssh-server" in dpkg.log ...
so I removed/re-installed it and everything is all good now

sudo apt-get remove openssh-server openssh-client
sudo apt-get install openssh-server openssh-client



Thanks Perryg. I suppose I could try re-installing openssh.

However, I have also found this ticket which seems to be "somewhat" related but not addressed.
devnull
 
Posts: 9
Joined: 29. Apr 2009, 00:48
Primary OS: Other
VBox Version: PUEL
Guest OSses: debian, freebsd

Re: Centos Host - bridge network problems

Postby devnull » 5. May 2009, 22:41

I have re-installed openssh on the host and guest but still get the same result.
devnull
 
Posts: 9
Joined: 29. Apr 2009, 00:48
Primary OS: Other
VBox Version: PUEL
Guest OSses: debian, freebsd

Re: Centos Host - bridge network problems

Postby devnull » 6. May 2009, 15:19

Just wanted to add, this doesn't just happen with ssh. It seems to happen with any protocol/port between host and guest with the exception of ICMP.

Also somewhat related are:
http://www.virtualbox.org/ticket/3465
and now
viewtopic.php?f=7&t=17404
devnull
 
Posts: 9
Joined: 29. Apr 2009, 00:48
Primary OS: Other
VBox Version: PUEL
Guest OSses: debian, freebsd

Re: Centos Host - bridge network problems

Postby devnull » 8. May 2009, 16:58

I have setup a different test bed.

Host - Windows XP sp3
Guest - Any linux distro I have
Guest network type - Bridged - DHCP

Everthing works as it should.

So I am wondering if my original post problem is related to the host OS or VB? :?
devnull
 
Posts: 9
Joined: 29. Apr 2009, 00:48
Primary OS: Other
VBox Version: PUEL
Guest OSses: debian, freebsd

Re: Centos Host - bridge network problems

Postby devnull » 12. May 2009, 17:43

Host - CentOS 4.7 kernel 2.6.9-78.0.17.EL
VirtualBox - 2.2.0 and 2.2.2
Guest - Fedora 10
Guest network type - Bridged - DHCP
Absolutely not firewalls in place

I enabled plain old telnet on Guest. tcpdump on guest yields the following when trying a telnet session from host to guest:

192.168.1.124 - Host
192.168.1.128 - Guest

05:39:54.465471 IP 192.168.1.124.32968 > 192.168.1.128.23: S 4210043759:4210043759(0) win 5840 <mss 1460,sackOK,timestamp 5190778 0,nop,wscale 2>
05:39:54.465599 IP 192.168.1.128.23 > 192.168.1.124.32968: S 3018382535:3018382535(0) ack 4210043760 win 5792 <mss 1460,sackOK,timestamp 1654131 5190778,nop,wscale 4>
05:39:54.466240 IP 192.168.1.124.32968 > 192.168.1.128.23: . ack 1 win 1460 <nop,nop,timestamp 5190778 1654131>
05:39:54.489006 IP 192.168.1.124.32968 > 160.194.1.128.23: P 4210043760:4210043793(33) ack 3018382536 win 1460 <nop,nop,timestamp 5190802 1654131>
05:39:54.498378 IP 192.168.1.128.23 > 192.168.1.124.32968: P 1:13(12) ack 1 win 362 <nop,nop,timestamp 1654164 5190778>
05:39:54.499678 IP 192.168.1.124.32968 > 192.168.1.128.23: . ack 13 win 1460 <nop,nop,timestamp 5190814 1654164>
05:39:54.690808 IP 192.168.1.124.32968 > 159.204.1.128.23: P 4210043760:4210043793(33) ack 3018382548 win 1460 <nop,nop,timestamp 5191003 1654164>
05:39:55.092717 IP 192.168.1.124.32968 > 158.58.1.128.23: P 4210043760:4210043793(33) ack 3018382548 win 1460 <nop,nop,timestamp 5191405 1654164>
05:39:55.896753 IP 192.168.1.124.32968 > 155.22.1.128.23: P 4210043760:4210043793(33) ack 3018382548 win 1460 <nop,nop,timestamp 5192209 1654164>
05:39:57.504261 IP 192.168.1.124.32968 > 148.206.1.128.23: P 4210043760:4210043793(33) ack 3018382548 win 1460 <nop,nop,timestamp 5193817 1654164>
05:40:00.493270 IP 192.168.1.124.32968 > 192.168.1.128.23: F 34:34(0) ack 13 win 1460 <nop,nop,timestamp 5196806 1654164>
05:40:00.493601 IP 192.168.1.128.23 > 192.168.1.124.32968: . ack 1 win 362 <nop,nop,timestamp 1660159 5190778,nop,nop,sack 1 {34:35}>
05:40:00.720129 IP 192.168.1.124.32968 > 112.211.1.128.23: P 4210043760:4210043793(33) ack 3018382548 win 1460 <nop,nop,timestamp 5197033 1660159>
devnull
 
Posts: 9
Joined: 29. Apr 2009, 00:48
Primary OS: Other
VBox Version: PUEL
Guest OSses: debian, freebsd


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: phantom21 and 24 guests