mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 10:18:51 +00:00
Attempt at cleaning a couple things I missed in code review. The old httpbin resource wasn't being used anyhow, so I just deduped them and updated things in a couple other places that had drifted. Hopefully this fixes the [flaky CI](https://github.com/firezone/firezone/actions/runs/7918422653/job/21616835910)
16 lines
540 B
Bash
Executable File
16 lines
540 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function install_iptables_drop_rules() {
|
|
sudo iptables -I FORWARD 1 -s 172.28.0.100 -d 172.28.0.105 -j DROP
|
|
sudo iptables -I FORWARD 1 -s 172.28.0.105 -d 172.28.0.100 -j DROP
|
|
}
|
|
|
|
function remove_iptables_drop_rules() {
|
|
sudo iptables -D FORWARD -s 172.28.0.100 -d 172.28.0.105 -j DROP
|
|
sudo iptables -D FORWARD -s 172.28.0.105 -d 172.28.0.100 -j DROP
|
|
}
|
|
|
|
function client_ping_resource() {
|
|
docker compose exec -it client timeout 60 sh -c 'until ping -W 1 -c 10 172.20.0.100 &>/dev/null; do true; done'
|
|
}
|