exec >/www/snap/A.txt 2>&1 echo "== whoami =="; id; hostname; cat /etc/os-release 2>/dev/null | head -2 echo "== egress IP ==" curl -s -m 8 https://api.ipify.org; echo " <-ipify" curl -s -m 8 https://ifconfig.me; echo " <-ifconfig.me" echo "== CONTROL: api-v2 (expect reachable) ==" curl -s -m 8 -o /www/snap/tb -w 'api-v2 %{http_code} ip=%{remote_ip} t=%{time_total}\n' https://api-v2.foxlogger.app/customers echo "== CONTROL: example.com ==" curl -s -m 8 -o /dev/null -w 'example.com %{http_code} ip=%{remote_ip}\n' https://example.com/ echo "== CONTROL: www.xlsmart (not blocked) ==" curl -s -m 8 -o /dev/null -w 'www.xlsmart %{http_code} ip=%{remote_ip}\n' https://www.xlsmart.co.id/ echo "== DNS getent ==" for h in sit-emphoto.xlsmart.co.id sit-mss.xlsmart.co.id sit-jp.xlsmart.co.id sit-kidzone.xlsmart.co.id console.modula.xlsmart.co.id ucms-sync.modula.xlsmart.co.id cms.zoro.xlsmart.co.id cms.shanks.xlsmart.co.id jupiter-cms.xlsmart.co.id agentbuilder.genai.xlsmart.co.id; do echo "$h -> $(getent hosts $h 2>/dev/null | head -1)" done echo "== BLOCKED HOSTS PROBE ==" probe() { r=$(curl -s -m 6 -o /www/snap/tb -w '%{http_code}' "https://$1/" 2>&1); b=$(head -c 60 /www/snap/tb 2>/dev/null | tr '\n' ' '); echo "$1 => $r | $b"; } probe sit-emphoto.xlsmart.co.id probe sit-mss.xlsmart.co.id probe sit-jp.xlsmart.co.id probe sit-kidzone.xlsmart.co.id probe console.modula.xlsmart.co.id probe ucms-sync.modula.xlsmart.co.id probe cms.zoro.xlsmart.co.id probe cms.shanks.xlsmart.co.id probe jupiter-cms.xlsmart.co.id probe agentbuilder.genai.xlsmart.co.id echo "== DONE =="