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 +~~~