Portál AbcLinuxu, 5. května 2025 16:53
config setup uniqueids=no conn %default esp = aes256-sha256,aes256-sha1,3des-sha1! ike = aes256-sha256-modp2048,aes256-sha1-modp2048,aes128-sha1-modp2048,3des-sha1-modp2048,aes256-sha256-modp1024,aes256-sha1-modp1024,aes128-sha1-modp1024,3des-sha1-modp1024! dpdaction=clear dpddelay=35s dpdtimeout=2000s keyexchange=ikev2 auto=add rekey=no reauth=no fragmentation=yes compress=yes leftcert=fullchain.pem leftsendcert=always leftsubnet=0.0.0.0/0 leftfirewall=yes eap_identity=%identity rightsourceip=192.168.10.0/24 ## nejde použít parametr 0.0.0.0/0 leftdns = 192.168.10.1 rightdns = 192.168.10.1 conn ikev2-mschapv2 rightauth=eap-mschapv2 leftid=vpn.dserver.cz conn ikev2-mschapv2-apple rightauth=eap-mschapv2 leftid=vpn.dserver.cz
Řešení dotazu:
netsh
Podle strongswan dokumentace je další možnost push routy přes DHCP options -- tyto routy údajně Windows neignorují... to jsem ale neřešil, byl to můj stroj, nepotřeboval jsem žádné centralizované bezpečnostní nemodifikovatelné řešení.
May 25 15:31:48 16[IKE] ikev2-vpn|16 initiating EAP_IDENTITY method (id 0x00) May 25 15:31:48 16[IKE] ikev2-vpn|16 peer supports MOBIKE May 25 15:31:48 16[IKE] ikev2-vpn|16 authentication of 'vpn.xxx.com' (myself) with RSA signature successful May 25 15:31:48 16[IKE] ikev2-vpn|16 sending end entity cert "CN=vpn.xxx.com" May 25 15:31:48 16[ENC] ikev2-vpn|16 generating IKE_AUTH response 1 [ IDr CERT AUTH EAP/REQ/ID ] May 25 15:31:48 16[ENC] ikev2-vpn|16 splitting IKE message (1696 bytes) into 2 fragments May 25 15:31:48 16[ENC] ikev2-vpn|16 generating IKE_AUTH response 1 [ EF(1/2) ] May 25 15:31:48 16[ENC] ikev2-vpn|16 generating IKE_AUTH response 1 [ EF(2/2) ] May 25 15:31:48 16[NET] ikev2-vpn|16 sending packet: from xxx.xxxx.xxx.xxx[4500] to xxx.xxxx.xxx.xxx[4500] (1236 bytes) May 25 15:31:48 16[NET] ikev2-vpn|16 sending packet: from xxx.xxxx.xxx.xxx[4500] to xxx.xxxx.xxx.xxx[4500] (532 bytes) May 25 15:32:04 07[JOB] ikev2-vpn|16 deleting half open IKE_SA with xxx.xxxx.xxx.xxx after timeout May 25 15:32:12 14[JOB] ikev2-vpn|15 deleting half open IKE_SA with xxx.xxxx.xxx.xxx after timeout May 25 15:32:18 16[JOB] ikev2-vpn|16 deleting half open IKE_SA with xxx.xxxx.xxx.xxx after timeout
charon { # duplicheck.enable = no dns1 = 8.8.8.8 # for Windows only nbns1 = 8.8.8.8 plugins { eap-tls { fragment_size = 512 } } filelog { charon { path = /var/log/strongswan.log time_format = %b %e %T ike_name = yes append = yes default = 1 flush_line = yes } stderr { ike = 2 knl = 3 } } load_modular = yes compress = yes plugins { include strongswan.d/charon/*.conf } } include strongswan.d/*.conf ~
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.