VirtualBox

Opened 9 years ago

Closed 9 years ago

#14588 closed defect (duplicate)

Win10 Host+Ubuntu guest, Host can't talk with guest via Bridged Network

Reported by: Chocoloper Owned by:
Component: network Version: VirtualBox 5.0.4
Keywords: bridged Cc:
Guest type: Linux Host type: Windows

Description

Hey, I'm running Virtualbox 5.0.4.

Host:

IPv6-Adresse:	...
IPv6-DNS-Server:	...
IPv4-Adresse:	192.168.0.30
IPv4-DNS-Server:	8.8.8.8
Hersteller:	Qualcomm Atheros
Beschreibung:	Qualcomm Atheros AR8151 PCI-E Gigabit Ethernet Controller (NDIS 6.30)
Treiberversion:	2.1.0.16
Physische Adresse:	...-B2

Guest:

Linux Dev 3.19.0-28-generic #30~14.04.1-Ubuntu SMP Tue Sep 1 09:32:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
eth0      Link encap:Ethernet  Hardware Adresse ...:8c  
          inet Adresse:192.168.0.40  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6-Adresse: ... Gültigkeitsbereich:Verbindung
          inet6-Adresse: ... Gültigkeitsbereich:Global
          inet6-Adresse: ... Gültigkeitsbereich:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX-Pakete:254 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
          TX-Pakete:112 Fehler:0 Verloren:0 Überläufe:0 Träger:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX-Bytes:20522 (20.5 KB)  TX-Bytes:15375 (15.3 KB)
lo        Link encap:Lokale Schleife  
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:65536  Metrik:1
          RX-Pakete:205 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
          TX-Pakete:205 Fehler:0 Verloren:0 Überläufe:0 Träger:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX-Bytes:15051 (15.0 KB)  TX-Bytes:15051 (15.0 KB)

The network is bridged over the same ethernet card and it is connected to my unitymedia router. I'm running a node server on the guest on port 80 which logs any incoming requests!

Problem:

When I use my Smartphone or Laptop (which are in the same network) i can reach the ubuntu guest. When I try to connect from my host system I can't!

Trying to tcpdump the connection I can see the packages from the host (...30), no logging from my node server and no response. I also see incortect chksum which I don't get connecting from another client:

Connecting from host:

$ sudo tcpdump -v -t -n -i eth0 | grep "168.0.40"
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
    192.168.0.30.52563 > 192.168.0.40.80: Flags [S], cksum 0x81bd (incorrect -> 0xeb4e), seq 539096165, win 8192, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0
    192.168.0.30.52564 > 192.168.0.40.80: Flags [S], cksum 0x81bd (incorrect -> 0xa541), seq 302663817, win 8192, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0
    192.168.0.30.52563 > 192.168.0.40.80: Flags [S], cksum 0x81bd (incorrect -> 0xeb4e), seq 539096165, win 8192, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0
    192.168.0.30.52564 > 192.168.0.40.80: Flags [S], cksum 0x81bd (incorrect -> 0xa541), seq 302663817, win 8192, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0
ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.40 (08:00:27:4a:28:8c) tell 192.168.0.30, length 46
ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.0.40 is-at 08:00:27:4a:28:8c, length 28
    192.168.0.30.52563 > 192.168.0.40.80: Flags [S], cksum 0x81b9 (incorrect -> 0xff5d), seq 539096165, win 8192, options [mss 1460,nop,nop,sackOK], length 0
    192.168.0.30.52564 > 192.168.0.40.80: Flags [S], cksum 0x81b9 (incorrect -> 0xb950), seq 302663817, win 8192, options [mss 1460,nop,nop,sackOK], length 0

Connecting from other client:

sudo tcpdump -v -t -n -i eth0 | grep "168.0.40"
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
    192.168.0.13.36106 > 192.168.0.40.80: Flags [F.], cksum 0xa0dc (correct), seq 426738220, ack 1071595687, win 457, options [nop,nop,TS val 35951704 ecr 70295], length 0
    192.168.0.13.36107 > 192.168.0.40.80: Flags [F.], cksum 0xa032 (correct), seq 3458560559, ack 3574597477, win 457, options [nop,nop,TS val 35951704 ecr 70295], length 0
    192.168.0.13.36112 > 192.168.0.40.80: Flags [F.], cksum 0xb79c (correct), seq 4136752118, ack 906101819, win 457, options [nop,nop,TS val 35951704 ecr 70445], length 0
    192.168.0.13.36103 > 192.168.0.40.80: Flags [F.], cksum 0x211f (correct), seq 289524838, ack 2838106706, win 457, options [nop,nop,TS val 35951704 ecr 70997], length 0
    192.168.0.40.80 > 192.168.0.13.36106: Flags [.], cksum 0x81ac (incorrect -> 0x56b0), ack 1, win 227, options [nop,nop,TS val 89513 ecr 35951704], length 0
    192.168.0.40.80 > 192.168.0.13.36107: Flags [.], cksum 0x81ac (incorrect -> 0x5606), ack 1, win 227, options [nop,nop,TS val 89513 ecr 35951704], length 0
    192.168.0.40.80 > 192.168.0.13.36112: Flags [.], cksum 0x81ac (incorrect -> 0x6e06), ack 1, win 227, options [nop,nop,TS val 89513 ecr 35951704], length 0
    192.168.0.40.80 > 192.168.0.13.36103: Flags [.], cksum 0x81ac (incorrect -> 0xd9b0), ack 1, win 227, options [nop,nop,TS val 89513 ecr 35951704], length 0
    192.168.0.40.80 > 192.168.0.13.36106: Flags [F.], cksum 0x81ac (incorrect -> 0x56af), seq 1, ack 1, win 227, options [nop,nop,TS val 89513 ecr 35951704], length 0
    192.168.0.40.80 > 192.168.0.13.36107: Flags [F.], cksum 0x81ac (incorrect -> 0x5605), seq 1, ack 1, win 227, options [nop,nop,TS val 89513 ecr 35951704], length 0
    192.168.0.40.80 > 192.168.0.13.36112: Flags [F.], cksum 0x81ac (incorrect -> 0x6e05), seq 1, ack 1, win 227, options [nop,nop,TS val 89513 ecr 35951704], length 0

No matter if I enable or disable my guests firewall it won't work but with firewall+ufw I get following entries in my syslog:

Sep 15 16:10:34 Dev kernel: [  782.341699] [UFW AUDIT INVALID] IN=eth0 OUT= MAC={hostmac..:2b}:34:32:c0:b2:08:00 SRC=192.168.0.30 DST=192.168.0.40 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=10661 DF PROTO=TCP SPT=52567 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0 
Sep 15 16:10:34 Dev kernel: [  782.341723] [UFW BLOCK] IN=eth0 OUT= MAC={hostmac..:2b}:34:32:c0:b2:08:00 SRC=192.168.0.30 DST=192.168.0.40 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=10661 DF PROTO=TCP SPT=52567 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0

Change History (2)

comment:1 by Chocoloper, 9 years ago

UFW doesn't contain any rules and should accept any traffic. Just tried to use to log more Information!

comment:2 by Valery Ushakov, 9 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use