22Jun/110
How to configure VPN on your FRITZ!Box 7340
FRITZ!Box
Setup the VPN settings on the FRITZ!Box with a VPN config file.
Save the content below to a file named vpn.cfg
vpncfg {
connections {
enabled = yes;
conn_type = conntype_user;
name = "YOUR_MAIL_ADDRESS";
always_renew = no;
reject_not_encrypted = no;
dont_filter_netbios = yes;
localip = 0.0.0.0;
local_virtualip = 0.0.0.0;
remoteip = 0.0.0.0;
remote_virtualip = VPN_CLIENT_IP;
remoteid {
key_id = "YOUR_MAIL_ADDRESS";
}
mode = phase1_mode_aggressive;
phase1ss = "all/all/all";
keytype = connkeytype_pre_shared;
key = "YOUR_SHARED_PASSWORD";
cert_do_server_auth = no;
use_nat_t = yes;
use_xauth = yes;
use_cfgmode = no;
xauth {
valid = yes;
username = "YOUR_USERNAME";
passwd = "YOUR_PASSWORD";
}
phase2localid {
ipnet {
ipaddr = 0.0.0.0;
mask = 0.0.0.0;
}
}
phase2remoteid {
ipaddr = VPN_CLIENT_IP;
}
phase2ss = "esp-all-all/ah-none/comp-all/no-pfs";
accesslist = "permit ip any VPN_CLIENT_IP 255.255.255.255";
}
ike_forward_rules = "udp 0.0.0.0:500 0.0.0.0:500", "udp 0.0.0.0:4500 0.0.0.0:4500";
}Replace the below values with the right settings for your network, I'll describe it with the default router values.
- YOUR_MAIL_ADDRESS, replace this with your mail address.
- VPN_CLIENT_IP, replace this with something like 192.168.178.201.
- YOUR_SHARED_PASSWORD, replace this with your own preferred shared password.
- YOUR_USERNAME, replace this with your VPN username, use [a-z] only.
- YOUR_PASSWORD, replace this with your VPN password, mind quote signs!
This configuration has been tested on iOS and Mac OS X, check the manuals below to configure your client.
- How to make a VPN connection with iOS on your iPod or iPhone to a FRITZ!Box
- How to make a VPN connection with Mac OS X on your iMac or Macbook (pro) to a FRITZ!Box




