mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Test that starting zerotier before internet works
This commit is contained in:
parent
c6f07ee19f
commit
0bc10923a1
1 changed files with 27 additions and 20 deletions
47
.github/workflows/validate-1m-linux.sh
vendored
47
.github/workflows/validate-1m-linux.sh
vendored
|
@ -71,26 +71,6 @@ main() {
|
||||||
# Allow forwarding
|
# Allow forwarding
|
||||||
sysctl -w net.ipv4.ip_forward=1
|
sysctl -w net.ipv4.ip_forward=1
|
||||||
|
|
||||||
echo -e "\nPing from host to namespaces"
|
|
||||||
|
|
||||||
ping -c 3 192.168.0.1
|
|
||||||
ping -c 3 192.168.1.1
|
|
||||||
|
|
||||||
echo -e "\nPing from namespace to host"
|
|
||||||
|
|
||||||
$NS1 ping -c 3 192.168.0.1
|
|
||||||
$NS1 ping -c 3 192.168.0.1
|
|
||||||
$NS2 ping -c 3 192.168.0.2
|
|
||||||
$NS2 ping -c 3 192.168.0.2
|
|
||||||
|
|
||||||
echo -e "\nPing from ns1 to ns2"
|
|
||||||
|
|
||||||
$NS1 ping -c 3 192.168.0.1
|
|
||||||
|
|
||||||
echo -e "\nPing from ns2 to ns1"
|
|
||||||
|
|
||||||
$NS2 ping -c 3 192.168.0.1
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Memory Leak Check #
|
# Memory Leak Check #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -113,7 +93,34 @@ main() {
|
||||||
./zerotier-one node1 -p9996 -U >>node_1.log 2>&1 &
|
./zerotier-one node1 -p9996 -U >>node_1.log 2>&1 &
|
||||||
|
|
||||||
# Second instance, not run in memory profiler
|
# Second instance, not run in memory profiler
|
||||||
|
# Don't set up internet access until _after_ zerotier is running
|
||||||
|
# This has been a source of stuckness in the past.
|
||||||
|
$NS2 ip addr del 192.168.1.2/24 dev veth3
|
||||||
$NS2 sudo ./zerotier-one node2 -U -p9997 >>node_2.log 2>&1 &
|
$NS2 sudo ./zerotier-one node2 -U -p9997 >>node_2.log 2>&1 &
|
||||||
|
sleep 1;
|
||||||
|
$NS2 ip addr add 192.168.1.2/24 dev veth3
|
||||||
|
$NS2 ip route add default via 192.168.1.1
|
||||||
|
|
||||||
|
|
||||||
|
echo -e "\nPing from host to namespaces"
|
||||||
|
|
||||||
|
ping -c 3 192.168.0.1
|
||||||
|
ping -c 3 192.168.1.1
|
||||||
|
|
||||||
|
echo -e "\nPing from namespace to host"
|
||||||
|
|
||||||
|
$NS1 ping -c 3 192.168.0.1
|
||||||
|
$NS1 ping -c 3 192.168.0.1
|
||||||
|
$NS2 ping -c 3 192.168.0.2
|
||||||
|
$NS2 ping -c 3 192.168.0.2
|
||||||
|
|
||||||
|
echo -e "\nPing from ns1 to ns2"
|
||||||
|
|
||||||
|
$NS1 ping -c 3 192.168.0.1
|
||||||
|
|
||||||
|
echo -e "\nPing from ns2 to ns1"
|
||||||
|
|
||||||
|
$NS2 ping -c 3 192.168.0.1
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Online Check #
|
# Online Check #
|
||||||
|
|
Loading…
Add table
Reference in a new issue