I tryed to use windows file sharing between host (Win 7 Pro) and virtual os (Win XP Pro) running in VirtualBox. They were connected over ROS v6 also running in VirtualBox with this ip configuration:
Win 7: 192.168.10.10/24
Gateway: 192.168.10.1
Win XP: 192.168.2.10/24
Gateway: 192.168.2.1
ROS: 192.168.10.1/24 and 192.168.2.1/24
ROS only had in firewall chain=forward action=accept (nothing else).
All VirtualBox network adapters were configured to “Internal network” except adapter which connects to host (Win 7).
What suprised me is that Win 7 successfully opens Win XP shared folder, how and why that worked?
Why are you surprised that it works? Of course it works! You don’t have any drop/deny forward rules, so everything is allowed through. If you want to deny, you have to add those rules!
You obviously don’t understand how smb/windows sharing works. Windows file sharing can be allowed to go over any networks, or through routes to different networks. people do this all the time. windows sharing would be useless if it had to stay on the same L2 network!
smb uses tcp ports 137,138,139,445. TCP is an L3 routable protocol.
I knew smb uses 137-139 and 445 tcp ports, but also thought it must be on same L2 network… don’t know where i get that. I read all the time on internet how people have problems with file sharing over router in different subnets… ok, thank you.
what you are referring to is the windows DISCOVERY feature, where it automatically shows all the other computers in your same network in the “my network places” or “network neighborhood”… but that has nothing to do with file sharing. people even use windows sharing across the Internet sometimes.