From owner-freebsd-net@freebsd.org Sun Nov 19 18:42:53 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00484DBB07D for ; Sun, 19 Nov 2017 18:42:53 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 714551262 for ; Sun, 19 Nov 2017 18:42:52 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id vAJIgeEh083720 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 19 Nov 2017 19:42:41 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: vas@mpeks.tomsk.su Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id vAJIgaX4003118 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 20 Nov 2017 01:42:36 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: OpenVPN vs IPSec To: Victor Sudakov References: <20171118165842.GA73810@admin.sibptus.transneft.ru> <20171119120832.GA82727@admin.sibptus.transneft.ru> <5A11882D.1050700@quip.cz> <5A119648.4080707@grosbein.net> <20171119145710.GF82727@admin.sibptus.transneft.ru> <5A11A019.9090302@grosbein.net> Cc: freebsd-net@freebsd.org From: Eugene Grosbein Message-ID: <5A11D098.5050102@grosbein.net> Date: Mon, 20 Nov 2017 01:42:32 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <5A11A019.9090302@grosbein.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Nov 2017 18:42:53 -0000 19.11.2017 22:15, Eugene Grosbein пишет: > 19.11.2017 21:57, Victor Sudakov wrote: > >>> I was able to successfully connect Windows 8.1 client to FreeBSD 11.1 server >>> in the L2TP/IPSEC mode using ipsec-tools (racoon) plus mpd5. >> >> Could you please share the setup here or in LiveJournal? I'm most >> interested in the L2TP/mpd5 part. > > There is nothing special to share. Just take a look to its mpd.conf.sample. > You can use pptp_server part replacing pptp-specific commands (set pptp) > with l2tp-specific and, of course, change link type "pptp" with "l2tp". > > You can even debug mpd5/l2tp part without engaging IPSec at all > by using unencrypted "L2TP without IPSEC" clients to begin with. Actually, there are some points that worth to mention: - by default, Windows 8.1 does not send its FQDN attribute within IKE, so you need to use "my_identifier address" and "verify_identifier off" inside remote {} section in the racoon.conf in case of Windows roaming user (or find a way to reconfigure Windows to include FQDN attribute, if possible); - Windows 8.1 needs proposal with encryption_algorithm aes, hash_algorithm sha1 and dh_group modp2048 (not to mention 3des + dh_group modp1024); - Windows 8.1 does not like "l2tp hidden" mode that additionally encrypts l2tp control packets, so do not use "set l2tp enable hidden/set l2tp secret" commands in the mpd.conf and you will be fine.