In recent days the news about WannaCry, the "famous Telefónica virus", has been taking over the most important technology websites worldwide. And it is that Windows, whether we want it or not, is still among us. Long ago we told you what would have happened if Telefónica had used Linux instead of Windows.
Today, that makes little sense, but Yes, we can look and change things so that WannaCry does not affect our personal networks Or at least we are not a transmitter of the ransomware.
WannaCry cannot run on Gnu / Linux but it can spread
Any distribution of Gnu / Linux is immune to WannaCry (at least for the moment), since it cannot be executed, but it can be an element that infects other Windows computers through the same network. To avoid this, the first recommendation is to cut all connections to Windows networks. Today, thanks to the cloud, there are many ways to connect computers and files without having to be on the same network. A good tool for this would be TeamViewer or any other application of Remote Desktop.
In essence you have to block SambaBecause it is through the protocol used by this program that WannaCry acts and communicates. To stop the Samba service, which we can do by typing the following in the terminal:
service samba stop
With this we can stop the contagion between computers on the same network and if we are system administrators or use a server, the best thing is isolate Windows computers from the network.
This does not mean that they cannot work but that their communication with the rest of the Linux computers will be different, or through the cloud with applications such as Dropbox or NextCloud, either remotely or through the web browser. The result is the same but slower and more secure.