From owner-freebsd-net@freebsd.org Mon Mar 13 07:33:35 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 905E8D0A7D3 for ; Mon, 13 Mar 2017 07:33:35 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward2o.cmail.yandex.net (forward2o.cmail.yandex.net [IPv6:2a02:6b8:0:1a72::287]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 363031C2 for ; Mon, 13 Mar 2017 07:33:35 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:7]) by forward2o.cmail.yandex.net (Yandex) with ESMTP id 2B5D82041B; Mon, 13 Mar 2017 10:33:31 +0300 (MSK) Received: from smtp2p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2p.mail.yandex.net (Yandex) with ESMTP id 86BD01A800F0; Mon, 13 Mar 2017 10:33:24 +0300 (MSK) Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id DaIxFQhW7c-XOamfwg3; Mon, 13 Mar 2017 10:33:24 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1489390404; bh=jrPrPGHT8F5GDzXqJfM5d3pezRyuYPFlUfEQASnsB4Y=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=LuAcufzBia4l9qqVxXvZj8oIrpAeXlSq7K6DamNUxLm0i8R9mwtjIdT/js5NqGfPO bjzoDRAW8D6CQuHubAbMM98dENeUJHsDo2o7Yqpwxf+KtuekcWShZys3KN5M3yhFOo YK1RehdzP8W0YXL/PJsdWev9yuSbXX69R+x04PiM= Authentication-Results: smtp2p.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Subject: Re: ipsec with ipfw To: Hooman Fazaeli , "freebsd-net@freebsd.org" References: <58C46AE0.7050408@gmail.com> From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Message-ID: Date: Mon, 13 Mar 2017 10:31:53 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <58C46AE0.7050408@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NqFtWWLMPsVux9URVabOEr61mvalMbTEf" 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: Mon, 13 Mar 2017 07:33:35 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --NqFtWWLMPsVux9URVabOEr61mvalMbTEf Content-Type: multipart/mixed; boundary="GmgXvV9N0RieS4AseUWNXOxdscGQ1OWbR"; protected-headers="v1" From: "Andrey V. Elsukov" To: Hooman Fazaeli , "freebsd-net@freebsd.org" Message-ID: Subject: Re: ipsec with ipfw References: <58C46AE0.7050408@gmail.com> In-Reply-To: <58C46AE0.7050408@gmail.com> --GmgXvV9N0RieS4AseUWNXOxdscGQ1OWbR Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12.03.2017 00:23, Hooman Fazaeli wrote: > Hi, >=20 > 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. >=20 > I was thinking about the idea of using ipfw as the packet selector for > ipsec, > much like it is used with dummeynet. Something like: >=20 > ipfw add 100 ipsec 2 tcp from to > 80,443,110,139 What this rule should do? How do you plan implement policy lookup for inbound packets? --=20 WBR, Andrey V. Elsukov --GmgXvV9N0RieS4AseUWNXOxdscGQ1OWbR-- --NqFtWWLMPsVux9URVabOEr61mvalMbTEf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAljGSukACgkQAcXqBBDI oXpMQgf/SJbC8GyaIy0FWfdd5lkGNu2SR1oxKD07h69X4puqxirV64MY8HPAyGIr cHn6BkHYdBbEy+t7EUH5aGW71mhhzVdZ6DReSSOJpMngE+QXjqs+DrIRZHbnN+6S plMBtzl+DN7iBg1YWo49a4OYj0DB4QwAx9M0pbnFV7/ZodHxRvE9ZxrWJmxKiZyZ S5tuTvoxPMiFt29gbdOhIyo5EpC3t0XpkfeuRHhRElsMk72RbFBjmN5+k3W8jXH3 nxl9fAolh9PJtr4uSE8JZfAx8uV2895jgFuVdpQDX1eINDTOLxAYVYB/5ZCavoB3 lag95XVBxyjsA/wWV2BxeBDNTkFr0w== =WdNL -----END PGP SIGNATURE----- --NqFtWWLMPsVux9URVabOEr61mvalMbTEf--