Unable to access a device in my local network with the host name when F-Secure FREEDOME is turned on Symptoms
When F-Secure FREEDOME is turned on, it may not be possible to access a device (for example NAS boxes, network printers, smart network appliances) in your local network with its host name. However, it is possible to access the device with the IP address despite having FREEDOME turned on.
Diagnosis
To access devices that are connected to your local network with FREEDOME turned on, the host names must be translated to IP addresses first so that it is understood by the networked computer. This is normally done by a DNS server.
Turning on FREEDOME will result in FREEDOME handling the DNS queries with its own DNS server. This is by design to prevent DNS information leaking outside the VPN tunnel.
If there are devices in the local or private network accessed by their names and not IP addresses, the computer may try to resolve the names to their IP addresses using the FREEDOME DNS server. The DNS servers for FREEDOME do not naturally contain information about your home network devices therefore the host names cannot be translated into their IP addresses.
Due to this, the devices cannot be accessed with their names although they are in the local network.
Solution
Both Windows and Mac computers have the possibility to do the name-to-IP translation locally through the hosts file. The operating system checks the hosts file first before doing the DNS query, therefore this can be used to translate the local device names to their IP addresses.
- For Windows
- Click the Windows start menu, and type
Notepad
. - Right-click on Notepad, and select Run as administrator. Enter administrator credentials if necessary.
- In Notepad, go to File > Open.
- Browse to Local Disk
(C:)\Windows\System32\drivers\etc
. Change the Text Documents (*.txt) selection to All Files (*.*). - Select the file hosts and click Open.
- Add your device IP address and name to the end of the file. If you have multiple devices in your local network that you need to access, each of them must be added on its own line. See below for example.
- Save the file by selecting File > Save.
- For Mac
- Open Terminal.
- Type in
sudo nano /private/etc/hosts
and press Enter. - Enter your administrator password, and press Enter.
- Use the arrow keys on your keyboard and scroll to the bottom of the file.
- Add your device IP address and name to the end of the file. If you have multiple devices in your local network that you need to access, each of them must be added on its own line. See below for example.
- On your keyboard, press Ctrl+X and then Y to exit and save the file. Press Enter to confirm the file name.
Example to add multiple devices to the hosts file on both Windows and Mac:
192.168.123.123 my-nas-box
192.168.123.124 my-network-printer
192.168.123.125 my-smart-fridge
Once you have done the steps above, you should now be able to access your devices using their names also when FREEDOME is turned on.