Created
November 28, 2025 21:15
-
-
Save hegerdes/82cdad536dd25a0fe039f26ae6974273 to your computer and use it in GitHub Desktop.
One-line nat64 service with docker and cilium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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