Baza wiedzy
AVM Content
Setting up a VPN to the FRITZ!Box in macOS
With VPN (Virtual Private Network), you can securely connect your computer with Apple macOS to your FRITZ!Box over the internet, without the risk of eavesdropping or tampering. This allows you to access your FRITZ!Box and devices in your home network with your computer even when you are away from home.
Example values used in this guide
In this guide we show you how to connect a computer with macOS 11.0.1 to the FRITZ!Box over VPN. When setting up the connection, replace the values used in this example with your actual values.
- MyFRITZ! address of the FRITZ!Box:
pi80ewgfi72d2os42.myfritz.net - Username of the FRITZ!Box user:
John Smith - Password for the FRITZ!Box user:
secret1234 - Shared secret of the FRITZ!Box user:
Zj7hPCouK65IrPU4
Requirements / Restrictions
- The FRITZ!Box must obtain a public IPv4 address from the internet service provider.
Note:All instructions on configuration and settings given in this guide refer to the latest FRITZ!OS for the FRITZ!Box.
1 Preparations
Configuring MyFRITZ!
Register the FRITZ!Box with MyFRITZ! so that it can be reached on the internet at any time at a fixed MyFRITZ! address:
- Click on "Internet" in the FRITZ!Box user interface.
- Click on "MyFRITZ! Account" in the "Internet" menu.
- Enter your email address in the "Your email address" field.
- Click on "Apply". Now MyFRITZ! sends you an email with the confirmation link to your FRITZ!Box.
Important:If you do not receive an email, the email was classified as unsolicited advertising (spam). In this case, check the spam folder of your email inbox.
- Open the email you received from MyFRITZ!.
- Click on the "Register Your FRITZ!Box" button in the email.
Adjusting the FRITZ!Box's IP network
Both ends of the VPN connection must have IP addresses in different IP networks. As soon as the computer is connected to a router (for example another FRITZ!Box) that uses the same IP network as your FRITZ!Box, VPN communication is no longer possible.
Note:All FRITZ!Boxes use the IP network 192.168.178.0 in the factory settings.
Set up an IP address to your FRITZ!Box that differs from the IP addresses of the routers you use to connect to the FRITZ!Box, for example 192.168.10.1 (subnet mask 255.255.255.0):
- Click on "Home Network" in the FRITZ!Box user interface.
- Click on "Network" in the "Home Network" menu.
- Click on the "Network Settings" tab.
- Click on "Additional Settings" in the section "LAN Settings" to display all of the settings.
- Click on the "IPv4 Settings" button.
- Enter the desired IP address and subnet mask.
- Click on "OK" to save the settings and on the FRITZ!Box, confirm that the procedure may be executed if asked to do so.
2 Setting up a VPN connection in the FRITZ!Box
Set up a separate user for each VPN connection in the FRITZ!Box:
- Click "System" in the FRITZ!Box user interface.
- Click "FRITZ!Box Users" in the "System" menu.
- Click the (Edit) button for the user who intends to connect to the FRITZ!Box via VPN or set up a new user for the VPN connection:
- Click the "Add User" button.
- Enter a name and password for the user in the corresponding fields.
- Enable the option "VPN".
- Click "Apply" to save the settings and on the FRITZ!Box, confirm that the procedure may be executed if asked to do so.
- Now the FRITZ!Box sets up the VPN connection for the user and opens a window with the VPN settings of the user.
Note:You can always call up the VPN settings again by clicking "Show VPN Settings" in the settings for the user under "System > FRITZ!Box Users".
3 Setting up and establishing a VPN connection on the computer
Set up the VPN connection on the computer using the VPN settings displayed in the FRITZ!Box user interface for the FRITZ!Box user:
- Open the "System Preferences" in the Apple menu.
- Click on "Network" in the "System Preferences" menu.
- Click the plus sign below the list with the existing connections.
- Select "VPN" from the drop-down list "Interface".
- Select "Cisco IPSec" from the drop-down list "VPN Type".
- Enter a name of your choice (FRITZ!Box VPN) for the "Service Name" and then click "Create".
- Enter the MyFRITZ! address of the FRITZ!Box (pi80ewgfi72d2os42.myfritz.net) for the "Server Address".
- For the "Account Name", enter the name of the FRITZ!Box user (John Smith) who intends to connect to the FRITZ!Box via VPN.
- Enter the password for the FRITZ!Box user (secret1234) in the "Password" field.
Important:If you enter the password, a password will not be required to establish the VPN connection. Protect your computer with a password so that unauthorized persons cannot use the VPN connection.
- Click "Authentication Settings ...".
- In the "Shared Secret" field, enter the shared secret (Zj7hPCouK65IrPU) displayed in the VPN settings for the FRITZ!Box user.
- Enter the name of the FRITZ!Box user (John Smith) in the "Group Name" field.
- Click "OK" and then "Apply" to save the settings.
- Click "Connect".