#!/bin/bash set -euo pipefail #google.bin nc -l -p 1111 > /opt/zapret/files/fake/google.bin & PID_GOOGLE=$! sleep 0.2 curl --max-time 1 --connect-to ::127.0.0.1:1111 https://www.google.com || true wait $PID_GOOGLE || true #max.bin nc -l -p 1111 > /opt/zapret/files/fake/max.bin & PID_MAX=$! sleep 0.2 curl --max-time 1 --connect-to ::127.0.0.1:1111 https://max.ru || true wait $PID_MAX || true #dzen.bin nc -l -p 1111 > /opt/zapret/files/fake/dzen.bin & PID_MAX=$! sleep 0.2 curl --max-time 1 --connect-to ::127.0.0.1:1111 https://dzen.ru || true wait $PID_MAX || true #stun.bin openssl rand 100 > /opt/zapret/files/fake/stun.bin