Skip to content

Instantly share code, notes, and snippets.

@timoschilling
Created November 1, 2010 13:39
Show Gist options
  • Save timoschilling/658183 to your computer and use it in GitHub Desktop.
Save timoschilling/658183 to your computer and use it in GitHub Desktop.
Example of a FritzBox <-> iPhone VPN Setup
vpncfg {
connections {
enabled = yes;
conn_type = conntype_user;
name = "iPhone";
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 = 10.0.0.13;
remoteid {
key_id = "EMAIL";
}
mode = phase1_mode_aggressive;
phase1ss = "all/all/all";
keytype = connkeytype_pre_shared;
key = "SECRET";
cert_do_server_auth = no;
use_nat_t = yes;
use_xauth = yes;
use_cfgmode = no;
xauth {
valid = yes;
username = "USERNAME";
passwd = "TOPSECRET";
}
phase2localid {
ipnet {
ipaddr = 0.0.0.0;
mask = 0.0.0.0;
}
}
phase2remoteid {
ipaddr = 10.0.0.13;
}
phase2ss = "esp-all-all/ah-none/comp-all/no-pfs";
accesslist =
"permit ip any 10.0.0.13 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";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment