Date: Mon, 13 Jan 2020 16:34:51 +0700 From: Victor Sudakov <vas@sibptus.ru> To: freebsd-questions@freebsd.org Subject: Re: replacement of security/ipsec-tools Message-ID: <20200113093451.GA90105@admin.sibptus.ru> In-Reply-To: <04c75aaa-d844-2ddc-a437-e2bcab2a7b22@otcnet.ru> References: <50378AC0-0A0A-4E33-961F-3D180987A8C1@ellael.org> <20200110035009.GB67842@admin.sibptus.ru> <04c75aaa-d844-2ddc-a437-e2bcab2a7b22@otcnet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Victor Gamov wrote: > I successfully use strongswan about 2 years to connect FreeBSD-FreeBSD and > FreeBSD-Cisco Victor, have you any experience with Windows hosts (FreeBSD - Windows IPSec)? > > Configuration is simple: > > ===== /usr/local/stc/rc.conf.d/netif/ipec2001: > cloned_interfaces="$cloned_interfaces ipsec2001" > create_args_ipsec2001="reqid 2001" > ifconfig_ipsec2001="inet 10.10.01.2 10.10.01.3 netmask 255.255.255.254 > tunnel <local_WAN_ip> <remote_WAN_ip> up" > ===== > > ===== /usr/local/etc/ipsec.conf > conn tmpl_AES256_SHA256 > left = <local_WAN_ip> > leftsubnet = 0.0.0.0/0 > rightsubnet = 0.0.0.0/0 > authby = psk > keyexchange = ikev1 > ike = aes256-sha256-modp2048 > esp = aes256-sha256 > ikelifetime = 28800 > mobike = no > installpolicy = no > lifetime = 3600 > auto = start > > conn REMOTE1 > right = <remote_WAN_ip> > reqid = 2001 > also = tmpl_AES256_SHA256 > ===== Thank you, so the "installpolicy = no" and "reqid = XXXX" parameters are crucial for strongswan to bind to an existing SPD entry (created by if_ipsec) instead of installing its own. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJeHDm7AAoJEA2k8lmbXsY0eZ4H/RlQlBZhVwp0bkZApXFuK/U0 wdZXcw9xwKfDxNF05XRpEVRtlDFV+hNS7ozI93ZQRx0KjbBWyTRaYmAoLU1Lecjg uOIA25zrpRK1dVibaSd5ER0AUnLqbgHkMR7GN+iSzAnYduBOOE+hAOMNbsA9R1cF IlLHpCeKrbIgH9TAADT23Yt0yhbL965yvKIB1l0C2CuyG0Y/5WLZLMQ7qngyaKok Ek8gc2HjL8hP1ccWU9/uhqqIFfZDdm+Ol3ZKa4eCdTDP7XctR+azDhJbhvn3uLie /VopWWYYoq3FjnXhu4KAaV2iFXdjW6MarIXC0yfZzPCbqD810wLn3sV+8N0FiWA= =lh+c -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200113093451.GA90105>
