adapted ikev2/ip-pool-wish scenario to the new stroke ip pool function
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
The roadwarriors <b>carol</b> and <b>dave</b> set up a connection each to gateway <b>moon</b>.
|
The roadwarriors <b>carol</b> and <b>dave</b> set up a connection each to gateway <b>moon</b>.
|
||||||
Both <b>carol</b> and <b>dave</b> request the same <b>virtual IP</b> via the IKEv2
|
Both <b>carol</b> and <b>dave</b> request the same <b>virtual IP</b> via the IKEv2
|
||||||
configuration payload by using the <b>leftsourceip=PH_IP_DAVE1</b> parameter. On a first-come,
|
configuration payload by using the <b>leftsourceip=PH_IP_CAROL1</b> parameter. On a first-come,
|
||||||
first-served basis, <b>dave</b> gets <b>PH_IP_DAVE1</b> from the simple address pool managed
|
first-served basis, <b>carol</b> gets <b>PH_IP_CAROL1</b> from the simple address pool managed
|
||||||
by gateway <b>moon</b> and <b>carol</b> gets the first free address <b>PH_IP_CAROL1</b>
|
by gateway <b>moon</b> and <b>dave</b> gets the next free address <b>PH_IP_DAVE1</b>
|
||||||
from the pool.
|
from the pool.
|
||||||
<p>
|
<p>
|
||||||
<b>leftfirewall=yes</b> automatically inserts iptables-based firewall rules that let pass
|
<b>leftfirewall=yes</b> automatically inserts iptables-based firewall rules that let pass
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ dave::ip route list table 220::10.1.0.0/16.*src PH_IP_DAVE1::YES
|
|||||||
dave::ipsec status::home.*INSTALLED::YES
|
dave::ipsec status::home.*INSTALLED::YES
|
||||||
dave::ping -c 1 PH_IP_ALICE::64 bytes from PH_IP_ALICE: icmp_seq=1::YES
|
dave::ping -c 1 PH_IP_ALICE::64 bytes from PH_IP_ALICE: icmp_seq=1::YES
|
||||||
moon::cat /var/log/daemon.log::adding virtual IP address pool::YES
|
moon::cat /var/log/daemon.log::adding virtual IP address pool::YES
|
||||||
moon::cat /var/log/daemon.log::peer requested virtual IP PH_IP_DAVE1::YES
|
moon::cat /var/log/daemon.log::peer requested virtual IP PH_IP_CAROL1::YES
|
||||||
moon::cat /var/log/daemon.log::assigning virtual IP::YES
|
moon::cat /var/log/daemon.log::assigning virtual IP::YES
|
||||||
moon::ipsec status::rw.*ESTABLISHED.*[email protected]::YES
|
moon::ipsec status::rw.*ESTABLISHED.*[email protected]::YES
|
||||||
moon::ipsec status::rw.*ESTABLISHED.*[email protected]::YES
|
moon::ipsec status::rw.*ESTABLISHED.*[email protected]::YES
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ conn %default
|
|||||||
|
|
||||||
conn home
|
conn home
|
||||||
left=PH_IP_CAROL
|
left=PH_IP_CAROL
|
||||||
leftsourceip=PH_IP_DAVE1
|
leftsourceip=PH_IP_CAROL1
|
||||||
leftcert=carolCert.pem
|
leftcert=carolCert.pem
|
||||||
[email protected]
|
[email protected]
|
||||||
leftfirewall=yes
|
leftfirewall=yes
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ conn %default
|
|||||||
|
|
||||||
conn home
|
conn home
|
||||||
left=PH_IP_DAVE
|
left=PH_IP_DAVE
|
||||||
leftsourceip=PH_IP_DAVE1
|
leftsourceip=PH_IP_CAROL1
|
||||||
leftcert=daveCert.pem
|
leftcert=daveCert.pem
|
||||||
[email protected]
|
[email protected]
|
||||||
leftfirewall=yes
|
leftfirewall=yes
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
moon::/etc/init.d/iptables start 2> /dev/null
|
moon::/etc/init.d/iptables start 2> /dev/null
|
||||||
carol::/etc/init.d/iptables start 2> /dev/null
|
carol::/etc/init.d/iptables start 2> /dev/null
|
||||||
dave::/etc/init.d/iptables start 2> /dev/null
|
dave::/etc/init.d/iptables start 2> /dev/null
|
||||||
dave::ipsec start
|
|
||||||
carol::ipsec start
|
carol::ipsec start
|
||||||
|
dave::ipsec start
|
||||||
moon::ipsec start
|
moon::ipsec start
|
||||||
dave::sleep 2
|
carol::sleep 2
|
||||||
dave::ipsec up home
|
|
||||||
carol::ipsec up home
|
carol::ipsec up home
|
||||||
|
dave::ipsec up home
|
||||||
dave::sleep 1
|
dave::sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user