Files
firezone/scripts/tests/relayed-dns-api-down.sh
2024-04-11 23:01:12 +00:00

22 lines
358 B
Bash
Executable File

#!/usr/bin/env bash
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