WAN / Internet : : PPPoE-Telekom VDSL : .-----+--------. | DSL Modem| (Draytek Vigor 165) '-----+---------' | WAN | IP or Protocol | .-----+------. | OPNsense '-----+------' | LAN | 192.168.1.0/24 | .-----+------. | LAN-Switch | '-----+------' | ...-----+------... (Clients/Servers)
vpncfg { connections { enabled = yes; conn_type = conntype_lan; name = "xx"; //Name der Verbindung 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 = "xxx.dyndns.org"; localid { fqdn = "xxx.myfritz.net"; } remoteid { fqdn = "email@mail.de"; } mode = phase1_mode_aggressive; phase1ss = "alt/aes/sha"; keytype = connkeytype_pre_shared; key = "xxxxxxxxxxxxxxxxx"; //Passwort, max 32 byte lang cert_do_server_auth = no; use_nat_t = no; use_xauth = no; use_cfgmode = no; phase2localid { ipnet { ipaddr = 192.168.0.0; mask = 255.255.255.0; } } phase2remoteid { ipnet { ipaddr = 192.168.1.0; 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";}// EOF
IPSec Tunneleinstellungen:Allgemeine Informationen:Anschlussart: Start on TrafficSchlüsselaustauschversion: V1Internt Protokol: IPv4Schnittstelle: WANRemotegateway: xxx.myfritz.deDynamic gateway: Hacken bei Allow any remote gateway to connectPhase1:Authentifizierungsmethode: Murtal PSKBestimmungsmodus: AggressiveMy identifier: User distinguished name: email@mail.dePeer identifier: Distinguished name: xxx.myfritz.dePre-Shared Key: xxxxxxPhase1:Encryption algorithm: AES 256Hash: SHA1DH: 2 (2024)Zeit: 3600Hacken bei Install PolicyPhase 2:Modus: Tunnel IPv4Local Network: LAN SubnetzRemote Network 192.168.0.0/24Protocol: ESPVerschlüsselung: AES 256Hash: SHA1Gruppe: 2(1024)Zeit: 3600
IPSec Tunneleinstellungen:Allgemeine Informationen:Anschlussart: Start on TrafficSchlüsselaustauschversion: V1Internt Protokol: IPv4Schnittstelle: WANRemotegateway: xxx.myfritz.deDynamic gateway: Hacken bei Allow any remote gateway to connectPhase1:Authentifizierungsmethode: Murtal PSKBestimmungsmodus: AggressiveMy identifier: Distinguished name: xxx.dyndns.orgPeer identifier: Distinguished name: xxx.myfritz.dePre-Shared Key: xxxxxxPhase1:Encryption algorithm: 3DESHash: SHA1DH: 2 (2024)Zeit: 3600Hacken bei Install PolicyPhase 2:Modus: Tunnel IPv4Local Network: LAN SubnetzRemote Network 192.168.0.0/24Protocol: 3DESVerschlüsselung: AES 128Hash: SHA1Gruppe: 2(1024)Zeit: 3600
mode = phase1_mode_aggressive; phase1ss = "all/all/all"; phase2ss = "esp-3des-sha/ah-no/comp-no/pfs";