From owner-freebsd-net@freebsd.org Sun Mar 12 05:53:40 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 D2A83CF9654 for ; Sun, 12 Mar 2017 05:53:40 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 984DC195E for ; Sun, 12 Mar 2017 05:53:40 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: by mail-it0-x234.google.com with SMTP id h10so14960410ith.1 for ; Sat, 11 Mar 2017 21:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=wABzRm3lsavoXf8NsBtwNsw0cDmwUmWgfr6hPgFb5Ko=; b=dE+enUNdI+gTquCrTXJA+NmfIRLUQEIDPci6dzQHzL8OfRfdQl2JaKUnx0gYXdYg5j UNfpQR47n5Zb7KKOp/90sgbqayi/xVR16IaJovyr1Xuq5jS92TryqSCLXdFqFTAfKfRG xgetNahaqVhA5FG5RwKQTgQuo9SOwNI5J6rlxf/qZGZLIWOEv/qgCrK9xfoEmVaQdACz stVvyPIz2i9djj7rrRtCr5YZjrHKa6Seu6nk9xwrHvBrvGCLDVkqzfVMXnR8f9P7u8kv W8S7rCOaua+4K3m//Z6irAM90xvE5bMVjQ48H1mjHEHAGMEivV2j5ajsSXmtyeO+aw67 MJWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=wABzRm3lsavoXf8NsBtwNsw0cDmwUmWgfr6hPgFb5Ko=; b=bJeExODPpyLlaESMZ+m1GwyIFsQSR/TdqwF+5nJNLpXAre7FiocxEkR9O+pnRwfnF+ xh3Cc0/Sft8Pk4iidBilRcpha+ARlmZkFNFxjDcWMAVxjSUHg5Z6I/43BMBatYkXdQYR r24h9Mz0GIyT0YjLVq+TpxcR0wcIw8U/2h3U5vOq+apO8XsRUdZGLxlOG9CEgSygaE/T 89mhwa+D0f2MB7iyxnW54pfG14Kf3k3vYFwxU8Tzgj2qAkXjtUpeQmDytOKnVRGSlQ1k xyci/xNXpdOmrxAzC54Yd0ionDofC+DqmbSn9vTTqGNRiNYphasHCRp3edGlroWFhUvP odhg== X-Gm-Message-State: AFeK/H2h3MFkSCjsynPANTTHmBcQNDGI0vp/E2STZWmxFSFhzaNqk24JOlmOYhT8pB7F9jBZ6zOW97UaE5hDGA== X-Received: by 10.36.77.140 with SMTP id l134mr5928995itb.33.1489298020030; Sat, 11 Mar 2017 21:53:40 -0800 (PST) MIME-Version: 1.0 Sender: ermal.luci@gmail.com Received: by 10.107.149.135 with HTTP; Sat, 11 Mar 2017 21:53:39 -0800 (PST) In-Reply-To: <20170311221619.GU15630@zxy.spb.ru> References: <58C46AE0.7050408@gmail.com> <20170311221619.GU15630@zxy.spb.ru> From: =?UTF-8?Q?Ermal_Lu=C3=A7i?= Date: Sat, 11 Mar 2017 21:53:39 -0800 X-Google-Sender-Auth: zyqDjNW1IvlYu8y93IES0tMTANw Message-ID: Subject: Re: ipsec with ipfw To: Slawa Olhovchenkov Cc: Hooman Fazaeli , "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 12 Mar 2017 05:53:40 -0000 On Sat, Mar 11, 2017 at 2:16 PM, Slawa Olhovchenkov wrote: > On Sun, Mar 12, 2017 at 12:53:44AM +0330, Hooman Fazaeli wrote: > > > Hi, > > > > As you know the ipsec/setkey provide limited syntax to define security > > policies: only a single subnet/host, protocol number and optional port > > may be used to specify traffic's source and destination. > > > > I was thinking about the idea of using ipfw as the packet selector for > ipsec, > > much like it is used with dummeynet. Something like: > > > > ipfw add 100 ipsec 2 tcp from to > 80,443,110,139 > > > > What do you think? Are you interested in such a feature? > > Is it worth the effort? What are the implementation challenges? > > security policies is subject of ike protocol exchange, do you plened > to extend this protocol too? > With the introduction of if_ipsec you can implement such tricks through routing. > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > -- > Ermal >