2020-06-17 19:43:59 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
from common import EC2Environment, CREATE
|
|
|
|
import time
|
|
|
|
|
|
|
|
setup = EC2Environment(
|
|
|
|
region = "eu-central-1",
|
|
|
|
node_count = 2,
|
2021-02-07 18:42:23 +00:00
|
|
|
instance_type = 't3a.nano',
|
|
|
|
vpncloud_version = "2.1.0"
|
2020-06-17 19:43:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
sender = setup.nodes[0]
|
|
|
|
receiver = setup.nodes[1]
|
|
|
|
|
|
|
|
sender.start_vpncloud(ip="10.0.0.1/24")
|
2021-05-11 21:38:03 +00:00
|
|
|
receiver.start_vpncloud(ip="10.0.0.2/24", peers=[f"{sender.private_ip}:3210"])
|
2020-06-17 19:43:59 +00:00
|
|
|
time.sleep(1.0)
|
|
|
|
|
|
|
|
sender.ping("10.0.0.2")
|
|
|
|
|
|
|
|
sender.stop_vpncloud()
|
|
|
|
receiver.stop_vpncloud()
|