zyclonite / zerotier-docker

ZeroTier One as Docker Image
MIT License
305 stars 74 forks source link

/usr/sbin/entrypoint-router.sh: line 68: iptables: not found #27

Closed mvondemhagen closed 8 months ago

mvondemhagen commented 8 months ago

Maybe related to the lastest change.

Started container with

docker run -d \
  --name=zerotier \
  --net=REMOVED --ip=REMOVED --mac-address="REMOVED" --dns=REMOVED \
  -e TZ=Europe/Berlin \
  --cap-add=NET_ADMIN \
  --cap-add=SYS_ADMIN \
  --cap-add=NET_RAW \
  --env ZEROTIER_ONE_LOCAL_PHYS=enp2s0 \
  --env ZEROTIER_ONE_USE_IPTABLES_NFT=false \
  --env ZEROTIER_ONE_GATEWAY_MODE=inbound \
  --env ZEROTIER_ONE_NETWORK_IDS=REMOVED \
  --device=/dev/net/tun \
  --restart unless-stopped \
  -v "/media/usbraid/docker/volumes/zerotier:/var/lib/zerotier-one" \
  zyclonite/zerotier:router

Get

Sun Nov  5 20:22:59 CET 2023 - launching ZeroTier-One in routing mode
adding iptables rules for inbound traffic (ZeroTier to local interfaces enp2s0)
/usr/sbin/entrypoint-router.sh: line 68: iptables: not found
zyclonite commented 8 months ago

you are right, i was a bit fast on that one

added iptables package back and switched the default command to iptables-legacy so both modes should work exactly the same now

mvondemhagen commented 8 months ago

Apparently fixed.