From e8c7c680db33933d87d15498854e95c5c4cf4c51 Mon Sep 17 00:00:00 2001 From: jdubois Date: Wed, 29 May 2019 18:04:02 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20cas=20avec=20plusieurs=20r=C3=A9seaux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoISAKMPD.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/HowtoISAKMPD.md b/HowtoISAKMPD.md index 65f1e220..1b073f5f 100644 --- a/HowtoISAKMPD.md +++ b/HowtoISAKMPD.md @@ -236,3 +236,18 @@ Dans une autre console : ~~~ # ipsecctl -f /etc/ipsec.conf ~~~ + +### Cas avec plusieurs réseaux + +Dans le cas où plusieurs réseaux distants doivent être accessibles (plusieurs phases 2 doivent être montées), cette syntaxe peut être utilisée dans /etc/ipsec.conf : + +~~~ +local_ip="192.0.2.254" +local_network="192.0.2.0/24" +remote_ip="198.51.100.254" +remote_network="{198.51.100.0/24, 198.51.200.0/24}" + +ike passive esp from $local_network to $remote_network peer $remote_ip +ike passive esp from $local_ip to $remote_network peer $remote_ip +ike passive esp from $local_ip to $remote_ip +~~~