Skip to main content

VPN to FRITZ!Box from Linux

Requirements

  • Packages: vpnc, network-manager-vpnc und network-manager-vpnc-gnome
  • MyFRITZ!-address of the FRITZ!Box:
    Example: pi80ewgfi72d2os42.myfritz.net
  • Username of the FRITZ!Box-User:
    Example: Max Mustermann
  • Password of the FRITZ!Box-User:
    Example: geheim1234
  • Shared Secret of the FRITZ!Box-User:
    Example: Zj7hPCouK65IrPU4

Preparations

Setup MyFRITZ!

Register FRITZ!Box at MyFRITZ! for a fixed MyFRITZ!-address. Guide in German

Adjust the IP-Network of the FRITZ!Box

Setup the IP-Address for conecting with the FRITZ!Box:

  1. Click on "Heimnetz".
  2. Click on "Heimnetzübersicht".
  3. Click on "Netzwerkeinstellungen".
  4. Click on "IPv4-Adressen". If not visible, you have to activate the extended view.
  5. Enter the IP-Address.
  6. Save the settings.

Setup the VPN-Connecttion in the FRITZ!Box

Create an own user for every VPN-Connection:

  1. Click on "System in the FRITZ!Box.
  2. Click on "FRITZ!Box-Benutzer".
  3. Edit the prefered user (or create a new one), and setup the vpn connection:
    1. Click on "Benutzer hinzufügen".
    2. Enter the username and the password.
  4. Activate the option "VPN".
  5. Save the settings.

Setuo the VPN-Connection on your device

  1. Start Advanced Network Configuration.
  2. Click on the plus symbol and select ""Cisco-kompatibler VPN-Client (vpnc)" aus.
  3. Enter the wanted Name.
  4. Enter the MyFritz!-Address field(pi80ewgfi72d2os42.myfritz.net) in the "Gateway".
  5. Enter the FritzBox!-Username and -Password and select the option "Passwort nur für diesen Benutzer speichern". aus und tragen Sie dann das Kennwort des FRITZ!Box-Benutzers (geheim1234) ein.
  6. nter the FritzBox!-Username also in the field "Gruppenname" and select the option "Passwort nur für diesen Benutzer speichern".
  7. Enter the "Shared Secret" aus und tragen Sie dann das "Shared Secret".
  8. Click on "Extended".
  9. Enter "tun0" as "Tunnel-Schnittstellenname".
  10. Save the settings.

Quelle

Tutorial VPN zur FritzBox einrichten