By consistently using the `expect-connection` helper we can avoid pretty much all previously needed calls to sleep.
9 lines
274 B
Plaintext
9 lines
274 B
Plaintext
moon::sysctl -w net.ipv4.conf.all.rp_filter=2
|
|
sun::sysctl -w net.ipv4.conf.all.rp_filter=2
|
|
moon::iptables-restore < /etc/iptables.rules
|
|
sun::iptables-restore < /etc/iptables.rules
|
|
moon::ipsec start
|
|
sun::ipsec start
|
|
moon::expect-connection host-host
|
|
moon::ipsec up host-host
|