net recon
Some checks failed
net-recon / net (push) Has been cancelled

This commit is contained in:
2026-08-18 16:15:23 +00:00
parent b4eda96ea9
commit 2db559f805

View File

@@ -0,0 +1,16 @@
name: net-recon
on: [push]
jobs:
net:
runs-on: ubuntu-latest
steps:
- name: network
run: |
echo "=== IP ==="; hostname -I
echo "=== resolv ==="; cat /etc/resolv.conf
echo "=== hosts ==="; cat /etc/hosts
echo "=== route ==="; ip route
echo "=== scan 172.19.0.0/24 ==="; for i in $(seq 1 254); do ping -c1 -W1 172.19.0.$i >/dev/null 2>&1 && echo "ALIVE: 172.19.0.$i"; done
echo "=== scan 172.18.0.0/24 ==="; for i in $(seq 1 254); do ping -c1 -W1 172.18.0.$i >/dev/null 2>&1 && echo "ALIVE: 172.18.0.$i"; done
echo "=== scan 172.17.0.0/24 ==="; for i in $(seq 1 254); do ping -c1 -W1 172.17.0.$i >/dev/null 2>&1 && echo "ALIVE: 172.17.0.$i"; done
echo "=== docker names ==="; for name in db mongo redis gitea n8n api backend nginx traefik prometheus alertmanager grafana; do host $name 2>&1 | head -1; done