Config file to connect VPNC to a FritzBox

In a previous post I briefly described how to get a vpnc binary onto a tplink router. What I missed was to post the configuration file you need on the FritzBox side to get the connection running. Here it is:
/*
* Vpnc to fritzbox config file
*/

vpncfg {
connections {
enabled = yes;
conn_type = conntype_user;
name = "your.dyn.dns.here";
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 = 192.168.100.201;
remoteid {
key_id = "nameofconnection";
}
mode = phase1_mode_aggressive;
phase1ss = "all/all/all";
keytype = connkeytype_pre_shared;
key = "yourpasswordhere";
cert_do_server_auth = no;
use_nat_t = yes;
use_xauth = yes;
xauth {
valid = yes;
username = "nameofconnection";
passwd = "yourpasswordhere";
}
use_cfgmode = yes;
phase2localid {
ipnet {
ipaddr = 0.0.0.0;
mask = 0.0.0.0;
}
}
phase2remoteid {
ipaddr = 192.168.100.201;
}
phase2ss = "esp-all-all/ah-none/comp-all/no-pfs";
accesslist = "permit ip any 192.168.0.0 255.255.255.0",
"permit ip any 192.168.100.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";
}

// EOF

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.