>I notice that you're using ports 137 and 138 for that I'm using the standard example's 6000, which, oddly, shows 6001 after the colon I don't know that udp matters for SMB, I just forwarded all the ports in my Windows Firewall configuration for "File and Printer Sharing" Oh, so you're trying to connect to a Samba server in a linux guest? I'm using a Windows guest. >as that's what ifconfig shows as my eth0 ip address. vmx files so that might cause problems with nat.conf. Second, are you using TextEdit to edit nat.conf? TextEdit has a problem editing. But, when I commented those lines back out, I could ssh in again as well ssh out.ĭo you have Windows sharing turned off on the host? If not, that could cause a port conflict. >When I added the 139 & 445 lines to my nat.conf file, networking no longer worked at all in my guest. I customized my Windows Firewall settings to only allow connections from my loopback adapter network (10.37.xx) so I feel comfortable leaving sharing turned on if I go anywhere. Once I knew Sharing was working I concentrated on connecting from the Mac side. I tested my Windows share in the guest by mountingġ27.0.0.1\ShareDocs. However, I get an error with 127.0.0.1 or localhost.Īlso, I had not enabled sharing in Windows, so I had to go in there, enable sharing, turn off the firewall, set a password (for security), etc. smb://10.37.xx.2/ (This is my en2 loopback adapter address). I can connect using smb://host_external_ip and I can also connect on my loopback interface, e.g. I bounced Fusion networking, then the tricky part for me is that I can only connect using any interface except localhost. skipping lines, at end of the section add: nat.conf subset follows (192.168.204.128 is the address my Windows guest shows in ipconfig /all): An interesting clue is that while wireshark shows the request, fiddler does not.I have to admit getting smb was a bit of challenge but here's what works for me. This beyond a doubt proves that requests are getting into the vm. I've tried running netcat to set up a socket server and can telnet in from the host and send messages to the socket server. What else can I check/do?Īs a this-sounds-crazy-but-I'll-try-it, I tried to map localhosts to my guest IP in my windows hosts file - no dice, same result. I've had it suggested to me that the issue is that localhost is special (it of course is), but I think I've demonstrated above that the request is getting into the VM, its getting past the firewall, its just not going any further. So the VM sees the request, then something Resets it with an RST.And there I run out of ideas what else needs to be done. To confirm that I open up wireshark where I see the following: Which seems to me that the request is passing into the VM but being shut down by something inside the VM (my understanding is that's the peer). I (temporarily) disable it: Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled FalseĪnd now I get something different yet again $ curl -max-time 3Ĭurl: (56) Recv failure: Connection reset by peer This seems to be due to my Windows firewall. Now, when I curl I get something different $ curl -max-time 3Ĭurl: (28) Operation timed out after 3004 milliseconds with 0 bytes received I also create a urlacl rule: PS C:\Users\gmauer> netsh http show urlacl | select-string 44300 -Context 1,5 So to open this up to the host machine I forward the port in Parallels on my NAT configuration My netstat at this point reads TCP 127.0.0.1:44300 :0 LISTENINGĪt this point, trying to curl from the host of course doesn't work $ curl curl: (7) Failed to connect to localhost port 44300: Connection refused This works when hit from inside the virtual machine: So I created a simple webserver in nodejs that just replies with a timestamp. I simply do not know how to configure my Windows + VM to do it. I know that this is possible since when I run docker, that is in fact what it does, I can create an application, run it in the docker container on port 44300, then hit localhost:44300 from the host machine. I'm on a Mac running a Windows VM in Parallels, I'd like to - from my mac - be able to hit and have that request served by an application running inside the VM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |