HUB
Sign inSign up
fener logo

rasat/fener

By rasat

•Updated 3 months ago

Rasat network measurement probe — ping, traceroute, DNS and HTTP from inside Türkiye

Image
Networking
Internet of things
Monitoring & observability
0

233

rasat/fener repository overview

⁠Rasat Fener — network measurement probe

A small agent that measures the network from one point: ping, traceroute, DNS and HTTP, on a schedule set by the server. It feeds Rasat⁠, a public measurement and routing observatory for the Turkish internet. Everything it measures is published openly.

It listens on no port. The agent only makes outbound connections; the work comes down as the answer to a request it makes. There is nothing to expose and no inbound rule to open.

⁠Quick start

Get a token from My probes → Add probe at rasat.net.tr⁠, then:

docker run -d --name rasat-fener --network host --restart always \
    --log-driver local \
    -e RASAT_FENER_TOKEN=your-token \
    rasat/fener

⁠Tags

Tag
latest, 0.7.0linux/amd64, linux/arm64

Roughly 14 MB. Built FROM scratch-style on distroless/static — the agent is a static Go binary with no dependencies, so the base image only supplies CA certificates.

⁠--network host is required

The probe measures the network, so it has to sit on the network. On a bridge network:

  • the first traceroute hop becomes Docker's own gateway, so the path describes the container rather than the real route,
  • NAT latency mixes into the measured RTT,
  • no probe from outside can reach the device, so it stays source-only: even after approval it never becomes a target other probes can measure.

It still runs on a bridge network and still reports — but part of what it then measures is Docker.

⁠NET_RAW

Ping and traceroute open a raw ICMP socket. Docker's default capability set already includes CAP_NET_RAW, so plain docker run works. Under Kubernetes' restricted profile and rootless Podman it is dropped and has to be granted:

securityContext:
  capabilities:
    add: ["NET_RAW"]

The capability is attached to the binary with setcap, so the container runs as a non-root user. If the capability is not available at all, the container will not start (exec /fener-agent: operation not permitted) — that message means NET_RAW is missing.

⁠State and updates

The container is stateless: nothing but the token is kept, and there is no volume to mount. Package installs update themselves; a container does not, because the image tag is the unit of update:

docker pull rasat/fener
docker rm -f rasat-fener
docker run -d ...   # same command as above

The panel marks an out-of-date probe so you can see when to pull.


⁠Türkçe

Ağın bir noktasından ölçüm yapan küçük bir ajan: ping, traceroute, DNS ve HTTP. Rasat⁠ için ölçer — Türkiye internetinin ölçüm ve yönlendirme gözlemevi. Ölçtüğü her şey herkese açık yayınlanır.

Hiçbir port dinlemez. Ajan yalnızca dışarı bağlanır; iş, kendi açtığı isteğe cevap olarak iner. Açılacak bir gelen kural yok.

Jetonu panelden⁠ Fener'lerim → Fener ekle ile alırsınız:

docker run -d --name rasat-fener --network host --restart always \
    --log-driver local \
    -e RASAT_FENER_TOKEN=jetonunuz \
    rasat/fener

--network host şart. Köprü ağında traceroute'un ilk atlaması Docker'ın kendi geçidi olur, NAT gecikmesi ölçülen RTT'ye karışır ve dışarıdan hiçbir sonda cihaza ulaşamaz — Fener yalnızca kaynak kalır, onaylansa bile hedef olamaz. Köprü ağında da çalışır, ama o zaman ölçtüğünün bir kısmı Docker olur.

NET_RAW ping ve traceroute için gerekiyor. Docker'ın varsayılan yetkilerinde var; Kubernetes'in kısıtlı profilinde ve rootless Podman'da açıkça vermeniz gerekir. Yetki setcap ile ikiliye verildi, kapsayıcı root olmadan çalışır.

Güncelleme sizde: kapsayıcı kendini güncellemez, güncelleme birimi imaj etiketidir. docker pull rasat/fener deyip kapsayıcıyı yeniden yaratın. Panel eski sürümdeki Fener'i işaretler.

Ayrıntılı kurulum: rasat.net.tr/fener-kur⁠

Tag summary
Recent tags
Content type
Image
Digest
sha256:1aec54b45…
Size
3.2 MB
Last updated
3 months ago
docker pull rasat/fener:latest