Config on FritzBox side:
vpncfg {
connections {
enabled = yes;
conn_type = conntype_lan;
name = "VPN Name";
always_renew = yes;
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 = 0.0.0.0;
remotehostname = "dyndns or ip";
keepalive_ip = 192.168.1.1 local ip of MX;
localid {
fqdn = "dyndns or ip FritzBox";
}
remoteid {
fqdn = "dyndns or ip MX";
}
mode = phase1_mode_idp;
phase1ss = "all/all/all";
keytype = connkeytype_pre_shared;
key = "here put pre shared key";
cert_do_server_auth = no;
use_nat_t = yes;
use_xauth = no;
use_cfgmode = no;
phase2localid {
ipnet {
ipaddr = 192.168.5.0 Private subnets of FritzBox;
mask = 255.255.255.0;
}
}
phase2remoteid {
ipnet {
ipaddr = 192.168.1.0 Private subnets of MX;
mask = 255.255.255.0;
}
}
phase2ss = "esp-aes256-3des-sha/ah-no/comp-lzs-no/pfs";
accesslist = "permit ip any 192.168.1.0 255.255.255.0";
}
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";
}
Config on MX Side:
Public IP: Public Ip of FritzBox
RemoteID: DNS address of the Fritzbox
Private Subnet: Ip/Subnet of the Fritzbox
PSK: PSK which must be the same of both side
ICMP ping on MX must be set to Any in Firewall section
IPsec policies: