mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-22 03:41:56 +00:00
Tests that DNS still works in the client with established connections after the portal and/or relay go down.
24 lines
377 B
Bash
Executable File
24 lines
377 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
source "./scripts/tests/lib.sh"
|
|
|
|
HTTPBIN=dns.httpbin
|
|
|
|
function run_test() {
|
|
echo "# Access httpbin by DNS"
|
|
client_curl_resource "$HTTPBIN/get"
|
|
|
|
echo "# Make sure it's going through the tunnel"
|
|
client_nslookup "$HTTPBIN" | grep "100\\.96\\.0\\."
|
|
}
|
|
|
|
install_iptables_drop_rules
|
|
|
|
run_test
|
|
|
|
docker compose stop api
|
|
|
|
run_test
|