zyclonite / zerotier-docker

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

Version 1.12.2 broken on host systems that are still using legacy iptables. ISSUE FOR ROUTER MODE ONLY #26

Closed bfg100k closed 8 months ago

bfg100k commented 8 months ago

Breaking change on the latest build for host systems that are still running on older iptables implementation. It appears that this is due to the latest alpine distro switching out from legacy iptables. See announcement here - https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.19.0.

I'm running this on a Synology NAS that is up to date with its DSM OS (7.2.1). Checked and it is only on iptables v1.8.3. The latest docker image upon launch will complain about a missing kernel module and shows iptables v1.8.9 (nf_tables).

Quick fix is to switch to the iptables-legacy package to maintain compatibility. Longer term may want to see how we can include both packages in the build then determine which one to apply at runtime based on what's available in the underlying host system.

This pull request is for the quick fix as I'm going away soon and just needs it to work. Will look into the permanent solution when I'm back early next year.

zyclonite commented 8 months ago

created the following issue https://github.com/zyclonite/zerotier-docker/issues/27 but should be fixed with https://github.com/zyclonite/zerotier-docker/commit/d18dfe3b09916ccea6e874be63145fe59c1f2f41