Skip to content

Instantly share code, notes, and snippets.

@hegerdes
Created November 28, 2025 21:15
Show Gist options
  • Select an option

  • Save hegerdes/82cdad536dd25a0fe039f26ae6974273 to your computer and use it in GitHub Desktop.

Select an option

Save hegerdes/82cdad536dd25a0fe039f26ae6974273 to your computer and use it in GitHub Desktop.
One-line nat64 service with docker and cilium
#!/usr/bin/env bash
docker run --name cilium-nat64 -itd \
-v /sys/fs/bpf:/sys/fs/bpf \
-v /lib/modules:/lib/modules \
--privileged=true \
--restart=always \
--network=host \
--name=nat64 \
quay.io/cilium/cilium:stable cilium-agent \
--enable-ipv4=true \
--enable-ipv6=true \
--devices=eth0 \
--enable-k8s=false \
--enable-nat46x64-gateway=true \
--enable-bpf-masquerade \
--kube-proxy-replacement=true \
--datapath-mode=netkit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment