2021-04-19 12:56:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2021-05-21 05:22:43 +00:00
|
|
|
INNERNET_ARGS="--backend userspace"
|
2021-05-19 18:16:28 +00:00
|
|
|
|
|
|
|
innernet-server \
|
2021-05-21 05:22:43 +00:00
|
|
|
$INNERNET_ARGS \
|
2021-05-19 18:16:28 +00:00
|
|
|
new \
|
2021-04-19 12:56:18 +00:00
|
|
|
--network-name "evilcorp" \
|
|
|
|
--network-cidr "10.66.0.0/16" \
|
|
|
|
--external-endpoint "172.18.1.1:51820" \
|
|
|
|
--listen-port 51820
|
|
|
|
|
2021-05-19 18:16:28 +00:00
|
|
|
innernet-server \
|
2021-05-21 05:22:43 +00:00
|
|
|
$INNERNET_ARGS \
|
2021-05-19 18:16:28 +00:00
|
|
|
add-cidr evilcorp \
|
2021-05-08 15:32:51 +00:00
|
|
|
--name "humans" \
|
|
|
|
--cidr "10.66.1.0/24" \
|
|
|
|
--parent "evilcorp" \
|
|
|
|
--yes
|
2021-04-19 12:56:18 +00:00
|
|
|
|
2021-05-19 18:16:28 +00:00
|
|
|
innernet-server \
|
2021-05-21 05:22:43 +00:00
|
|
|
$INNERNET_ARGS \
|
2021-05-19 18:16:28 +00:00
|
|
|
add-peer evilcorp \
|
2021-05-08 15:32:51 +00:00
|
|
|
--name "admin" \
|
|
|
|
--cidr "humans" \
|
|
|
|
--admin true \
|
|
|
|
--auto-ip \
|
|
|
|
--save-config "peer1.toml" \
|
|
|
|
--invite-expires "30d" \
|
|
|
|
--yes
|
2021-04-19 12:56:18 +00:00
|
|
|
|
2021-05-21 05:22:43 +00:00
|
|
|
innernet-server $INNERNET_ARGS serve evilcorp
|