Recommend:
To the knowledge base

Setting up a VPN between two FRITZ!Box networks

With VPN (Virtual Private Network), you can securely connect two FRITZ!Box networks at different locations over the internet, without the risk of eavesdropping or tampering. This allows you to access all of the devices in the remote network and use all of the IP-based services such as email servers, data banks, and file servers at both locations.

Example values used in this guide

In this guide we show you how to connect "FRITZ!Box A" and "FRITZ!Box B" with each other. When setting up the connection, replace the values used in this example with your actual values.

  • Dynamic DNS domain name of FRITZ!Box A:
    fritzbox_a.dyndns.org
  • IP network of FRITZ!Box A:
    192.168.10.0 (subnet mask: 24 - 255.255.255.0)
  • Dynamic DNS domain name of FRITZ!Box B:
    fritzbox_b.dyndns.org
  • IP network of FRITZ!Box B:
    192.168.20.0 (subnet mask: 24 - 255.255.255.0)

Requirements / Restrictions

  • At least one of the two FRITZ!Boxes must obtain a public IPv4 address from the internet service provider.
  • FRITZ!OS 6.20 or later is installed on FRITZ!Box B.

Note:All instructions on configuration and settings given in this guide refer to the latest FRITZ!OS for the FRITZ!Box.

1 Preparations

Setting up dynamic DNS

Configure different Dynamic DNS domain names for each of the FRITZ!Boxes:

  1. Set up dynamic DNS in the FRITZ!Box.

Adjusting the IP networks

Communication within the VPN is not possible if both FRITZ!Boxes use the same IP network. Since all FRITZ!Boxes use the IP network 192.168.178.0 in the factory settings, configure IP addresses from different IP networks in the FRITZ!Boxes:

Example:
In this guide, FRITZ!Box A has the IP address 192.168.10.1 (subnet mask 255.255.255.0) and FRITZ!Box B the IP address 192.168.20.1 (subnet mask 255.255.255.0).

  1. Click "Home Network" in the FRITZ!Box user interface.
  2. Click "Network" in the "Home Network" menu.
  3. Click on the "Network Settings" tab.
  4. Click the "IPv4 Addresses" button. If the button is not displayed, enable the Advanced View first.
  5. Enter the desired IP address and subnet mask.
  6. Click "OK" to save the settings.

2 Configuring FRITZ!Box A

  1. Click "Internet" in the user interface of FRITZ!Box A.
  2. Click "Permit Access" in the "Internet" menu.
  3. Click on the "VPN" tab. If the tab is not displayed, enable the Advanced View first.
  4. Click the "Add VPN Connection" button.
  5. Click "Connect your home network with another FRITZ!Box network (LAN-LAN linkup)" and then "Next".
  6. In the field "VPN password (pre-shared key)", enter the password required to establish the VPN connection (secret1234). Use numerals and letters, and combine capitals and lower-case letters.
  7. Enter the dynamic DNS domain name of FRITZ!Box B (fritzbox_b.dyndns.org) in the "Web address" field.
  8. Enter the IP network of FRITZ!Box B (192.168.20.0) in the "Remote network" field.
  9. In the "Subnet mask" field, enter the subnet mask that corresponds to FRITZ!Box B's IP network (255.255.255.0).
  10. Enable the option "Hold VPN connection permanently" if FRITZ!Box B has a public IPv4 address and you want to maintain the VPN connection all the time.
  11. Click "OK" to save the settings.

3 Configuring FRITZ!Box B

  1. Click "Internet" in the user interface of FRITZ!Box B.
  2. Click "Permit Access" in the "Internet" menu.
  3. Click on the "VPN" tab. If the tab is not displayed, enable the Advanced View first.
  4. Click the "Add VPN Connection" button.
  5. Click "Connect your home network with another FRITZ!Box network (LAN-LAN linkup)" and then "Next".
  6. In the field "VPN password (pre-shared key)", enter the password required to establish the VPN connection (secret1234).
  7. Enter the dynamic DNS domain name of FRITZ!Box A (fritzbox_a.dyndns.org) in the "Web address" field.
  8. Enter the IP network of FRITZ!Box A (192.168.10.0) in the "Remote network" field.
  9. In the "Subnet mask" field, enter the subnet mask that corresponds to FRITZ!Box A's IP network (255.255.255.0).
  10. Enable the option "Hold VPN connection permanently" if FRITZ!Box A has a public IPv4 address and you want to maintain the VPN connection all the time.
  11. Click "OK" to save the settings.

4 Establishing a VPN connection

The VPN connection is automatically established when the remote network is accessed. The VPN connection is cleared if it has been inactive for one hour and is automatically re-established when there is a new request to the remote network.