I am using VMware 9.0.0 on a Windows 7(64bits) host, the guest OS is CentOS 6.5(I have tried Ubuntu 12.04 also).
Firewall on Windows 7 is completely disabled. My host is connected to a router via wireless network adapter.
Guest's network configuration is NAT, and guest IP address is 192.168.117.130. Default gateway of the guest is 192.168.117.2. The Nat Interface(VMware Network Adapter VMnet8) on Windows 7 have an IP address of 192.168.117.1.
The problem I met is that I can have Internet access, actually, every network service using TCP and UDP is ok. But I can't ping any host other than hosts on the network of 192.168.17.0/24.
I used wireshark to locate the problem. I found a strange phenomenon, my host can receive the ping echo request from the guest and ping echo response, but it is not forwarding to the guest. Seems the NAT of ICMP packet is not working.
Any suggestions?
Related
I have Windows 7 as a Host OS on my PC, It's Connected to the Internet.
I have a Win-Server 2016 on my VMware workstation. Its my Web-Application's host.
Win-Server is Connected to the internet through my host os (Win 7) using a NAT connection.
I want to host my webApplication in this VM (winServer 2016) which has a shared Internet connection.
My Win-Server Connection has this Local IP Address: 192.168.111.19
My Win7 has this Local IP Address: 192.168.111.1
Both of them are Connected to the Internet using (something like) this IP: 86.10.15.20
When I host my Application in Win7, it will works through my Internet IP (86.10.15.20)
But When I host, my Application on Win-Server (in VM), I doesn't work at all.
Actually I don't know what Scenario I must implement to achieve this goal. Please note, what should I do ?
Sounds like you need to update the NAT rule to point to the Win-Server VM IP address instead of you Win7 IP address. This is normally done at the router level.
I've installed pfsense 2.3 x64 in virtualbox with 2 adapters; One is bridged to my wifi adapter (adsl modem) (WAN) and the other one set as'Internal network' ('intnet') (Lan);
The problem is that although pfsense can automatically detect dhcp over first adapter and get an IP but my system (the host) can not ping the pfsense server (pfsense can ping both adsl modem gateway and the host).
Note1: Disabling the antivirus and firewall (kaspersky internet security 2016) has no effect.
Note2: I know that this setup works because I use the exact same network configurations for a Kerio Control server (v9.0.2, installed in virtualbox)
Note3: If I constantly ping pfsense server in my host (ping 192.168.1.102 -t) and at the same time restart pfsense server, during the booting phase of pfsense I can get two pings!
After contacting the pfsense official forum, it turned out that the WAN interface blocks everything by default. Therefore, either a rule should be defined to allow WAN to accept traffic or access server from LAN side.
I figured this out without having to go through the WAN interface, answer is on the pfsense forum
Configure host-only network "vboxnet1" (or any of the other host-only networks if you're already using vboxnet1 for other VMs) with the following:
192.168.1.77 (or whatever IP you want your host to appear as on the network)
255.255.255.0
DHCP Disabled
The make sure that the LAN adapter on your pfSense VM is a "Host-only Adapter" and that it's using "vboxnet1" (or whatever network you configured above)
Reboot/re-install and http://192.168.1.1 should work now
I have a ubuntu in my lap top and install virtualbox. I install an xp as guest in vbox.
I want to have access to guest from host for penetration usage.
#1st try: the guest uses bridge network with ip 192.168.1.103 (assigned static).
I can not access guest form host, when I ping the guest, loosing all packages.
ping 192.168.1.103
But I can access host form guest, when I ping the host.
ping 192.168.1.101
#2nd try: the guest uses an NAT and a Host-Only network.
same as above host can not access the guest:
ping 192.168.56.103
but guest can access the host:
ping 192.168.56.1
who can I access the guest from host?
As you can ping host from the guest, it tells that the connection is working ok both ways (response comes back ok). The problem probably is that XP has not been configured to answer to ping requests so it's silently discarding them. You need to change the settings of the firewall to allow answers to ping.
See for example http://kb.iu.edu/data/aopy.html for details how to enable ping service in different Windows versions with the default firewall.
I have a Host with VirtualBox installed and Guest installed (both with Windows XP SP3).
I do have connection between them. And also the guest have an internet connection.
I can connect via Remote Desktop Connection from Host to Guest, but I also want to be able to connect to Guest from any other PC. If can, how to achieve this?
Guest is using 2 network adapters, one NAT for sharing the internet connection and then one Host-only to be able for both machines to see each other on the local network.
Assuming you have an Internet router providing access to your ISP...
Change the VM networking from NAT to Bridged.
Check that the guest still has Internet connectivity after rebooting or ipconfig /renew.
Configure the router to give the guest a fixed IP address. (Typically, the guest can still use DHCP but the router is configured to give the guest the same IP address every time.)
Determine which ports and protocols needed to connect with the guest. E.G, TCP on port 3389 (RPD) for Remote Desktop.
Configure the router's "port-forwarding" feature to route external connections to the IP address of your guest. You can designate a different port for the external connections but that might not get through firewalls between the remote computer and its ISP.
Determine the external IP address of your Internet router.
Connect from the remote computer to the IP address and designated port.
I have windows 7 pro host with ubuntu server 12.10 as guest. The host has a static ip. The networking mode is NAT with port forwarding from host port 22 to guest port 22. I don't want to use use bridged networking because of company policies.
I need to ssh (port: 22) into the guest from the internet and I want to limit inbound connections to guest port 22 to certain ip addresses. So I enabled ufw in the guest and added rules to it. When I try to ssh into the guest from one of the allowed ip addresses, it's not connecting. If I disable ufw, it works.
What could be wrong? I don't know much about NAT and guest firewalls.
Thanks in advance for your response.
this is normal, because the guest VM (Ubuntu) will receive the connection from the NAT Gateway IP (ie the host (Win7) address) and not the client who is connecting to ssh.
to solve this issue , you will need to remove ufw rules and set the same rules in the host windows firewall.