Setup of VPN at the Fritzbox
First, a new user is created under System-> FRITZ! Box user.
Here, the access from the Internet must be granted and VPN (of course, be unlocked, everything else is deselected.
we remember the information from the iphone settings:
- Server: arpdggefuegr23723n.myfritz.net
- Account: vpn_user
- Password: Password of the FRITZ! Box user “vpn_user”
- Use certificate is disabled
- Group name: vpn_user
- Shared Secret: TANrpS1y34hHHJGIS4
Now it goes on the Raspi ….
sudo apt-get install vpnc
Create and customize config:
sudo nano /etc/vpnc/fritzbox.conf
IPSec gateway arpdggefuegr23723n.myfritz.net
IPSec ID vpn_user
IPSec secret TANrpS1y34hHHJGIS4
IKE Authmode psk
Xauth username vpn_user
Xauth password <passwort>
local port 0
DPD idle timeout (our side) 0
first test of the tunnel:
sudo vpnc fritzbox.conf
Ending the VPn connection:
I have the start of the script in /etc/rc.local registered so that the VPN connection is established during boot.
– Update –
Since the VPN connection breaks partially uncontrolled Abdelkader Wahb has made a script that monitors the connection and reboots when needed. I do not want to deprive you of this:
Entry in / etc / crontab so that every 3 minutes is automatically executed on boot:
* / 3 * * * * root /etc/init.d/autovpncscript