What your commands show is the following:
- Your computer has resolved www.facebook.com address to be
69.171.228.14
- It is trying to send ping packets to it
- On the packet's way a router (possibly your's, at address 204.15.23.57) cannot find route to 69.171.228.14
- So that you know about this the router 204.15.23.57 is informing you about this with the ICMP reply message Destination net unreachable.
In your second command you are pinging the router who gave you net unreachable reply, not facebook host, therefore unsurprisingly you get a reply from it.
As you have helpfully pointed out - this was result from a messed-up hosts file. You also could have seen the problem if you had used nslookup to query a DNS server directly:
nslookup
server 8.8.4.4
www.facebook.com
This would have shown you the actual address of the facebook host and you would have noticed that it is different from the one given to you (69.171.228.14 ), so you would have known to look in the hosts file as a computer resolves IP addresses through hosts file or DNS queries.
Having said that it is not good that a virus has been able to update the hosts file, since that should only be writable by a superuser/system (Administrator, SYSTEM or root on Linux). Therefore the implication is that the virus/trojan had high level access to the system.
Try this,
http://kb.linksys.com/Linksys/ukp.aspx?pid=104&vw=1&articleid=27292
Title: Disabling the computer's firewall on a Windows 8 or Windows 8.1 computer
Article ID: 27292
A firewall is a part of a computer system or network that is designed to block unauthorized access while allowing authorized communications.
The Windows 8/8.1 operating system has a built-in firewall that provides security by limiting or preventing unauthorized access to your computer from the Internet. Sometimes a software firewall conflicts with the built-in hardware firewall of the Linksys router; which is why there are instances when you have to disable it.
NOTE: Disabling the Windows Firewall should only be done temporarily to allow downloads or hardware installation on your computer. Changes within the network may require you to re-enable Windows Firewall for your computer’s protection.
Step 1:
Press the Windows key on your keyboard and then type “control panel”.
NOTE: A search box will appear on the right side of the screen.
Step 2:
Click Control Panel to display all of the contents.
Step 3:
Click Windows Firewall.
Step 4:
Click the Turn Windows Firewall on or off option.
Step 5:
On the Customize Settings window, click the Turn off Windows Firewall radio buttons both under the Private network settings and Public network settings. Click OK.
Your Windows 8/8.1 operating system’s built-in firewall should now be disabled.
Now try to ping Google from your computer. Does that work? I would imagine it will work. I do not have Windows 8 installed, but if my memory is correct the Firewall Interface is similar to the Windows 7 Interface. Here is how I would do this on windows 7.
- go to Start (metro), type firewall, select the Windows Firewall with Advanced Security icon.
- In the Windows Firewall window, on the left hand side click on incoming rules.
- On the right hand side of the Windows Firewall window, under the actions pane, click on Filter by Group > and select File and Printer Sharing
- In the middle frame, select the File and Printer (ICMPv4 and v6) sharing rules,right click and select Enable Rule.
ICMP is the actual protocol that ping uses, so enabling ICMP will allow you to ping and will allow other machines to ping you.
Here is an example of what it looks like
Best Answer
Is NAT turned on in your wireless router. If you wish to access wireless devices from your wired network you will need NAT turned off.
Do you have your wireless router connected to the wired network through the internet port or through a switch port? If it is through the internet port it will need a different subnet.