vpncfg { connections { enabled = yes; conn_type = conntype_lan; name = "VPN zu opnsense"; 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 = "sevrer.bla.blub"; localid { fqdn = "DynDerFritz"; } remoteid { fqdn = "server.bla.blub"; } mode = phase1_mode_aggressive; phase1ss = "ganzsicherpryptopercipheroderso"; keytype = jajasicherkeytyp; key = "jolangerkeyistvorhanden"; cert_do_server_auth = no; use_nat_t = no; use_xauth = no; use_cfgmode = no; phase2localid { ipnet { ipaddr = 192.168.240.0; mask = 255.255.255.0; } } phase2remoteid { ipnet { ipaddr = 10.6.0.0; mask = 255.255.0.0; } } phase2ss = "vieleschlüsseltotalsicher"; accesslist = "permit ip any 10.6.0.0 255.255.0.0"; dns_domains = "mydomain"; } 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";}
accesslist = "permit ip any 10.6.0.0 255.255.0.0", "permit ip any 10.100.0.0 255.255.255.224";