Joseph Henry
946e413997
properly fill out ifcfg files. also removed route re-add code for synology
9 years ago
Joseph Henry
e4135ffb35
Decreased ZT_BINDER_REFRESH_PERIOD for Synology build
9 years ago
Joseph Henry
b5b335a6f8
Route re-add patch for linux build on Synology devices
9 years ago
Adam Ierymenko
3361b4030b
Integrate and test linux privilege drop code (from contributor PR). It works now if a "zerotier-one" user is present on a Linux system. Does everything automagically.
9 years ago
Adam Ierymenko
471108f2e4
Slightly increase thread stack size for safety (primary Alpine related) possibly GitHub #443
9 years ago
Adam Ierymenko
ec0e8a9a43
Rip out resolver and use anycast address instead. In the long term existing TCP proxy dies anyway. Fixes static build problem for old Linux versions.
9 years ago
Adam Ierymenko
d79f792e6f
OpenBSD fixes, workaround for apparent libstdc++ bug.
9 years ago
Adam Ierymenko
7b231b38b0
Now builds on OpenBSD, but segfaults. So not yet but close. GitHub issue #439
9 years ago
Adam Ierymenko
e9007b1f56
NodeJS migration script for old Sqlite controller.db to new controller data format.
9 years ago
Adam Ierymenko
565842b5ec
Software updater work.
9 years ago
Adam Ierymenko
a064e19b8a
Refactor some JSON stuff for performance, and fix a build error.
9 years ago
Grant Limberg
0f6c53589e
remove commented out function declaration
9 years ago
Grant Limberg
e2b1a7157e
Potential fix for routing issue on Windows
...
Move setting _initialized = true until after WindowsEthernetTap::threadMain() has actually created and brought up the adapter. Also in OneService::nodeVirtualNetworkConfigFunction(), wait up to 5 seconds for WindowsEthernatTap::isInitialized() to return true before attempting to configure the interface and managed routes. Without this, the adapter doesnt actually exist yet when trying to add routes
9 years ago
Michał Zieliński
203b7e17de
Binder.hpp: gather all IPv4 interface addresses
9 years ago
Adam Ierymenko
4459d5ad54
Remove debug printf
9 years ago
Adam Ierymenko
3864a2e111
Use an alternative method for enumerating interface addresses on Linux to avoid poor performance of getifaddrs() when there are many network namespaces.
9 years ago
Grant Limberg
697520f1f5
Dont write IPv6 addresses to IPv4 sections of registry TCPIP settings.
...
Also, dont add the prefix length to the IP addresses in there.
Appears to fix Github Issue #357 . Still waiting on some info from Microsoft for confirmation of a few things.
10 years ago
Grant Limberg
56faf774ff
Store MTU as String instead of DWORD
...
WindowsEthernetTap was storing the MTU for the ZeroTier Adapter as a
DWORD. When changing the value from the network adapter settings UI, it
was stored as a string. Updated the call when creating the adapter to
store it as a string as windows expects.
10 years ago
Adam Ierymenko
ccdd4ffda7
Move split() to OSUtils since it is not used in core.
10 years ago
Adam Ierymenko
e26bee45fb
Multithreading in network controller. Threads are only started if controller is used.
10 years ago
Tsukasa Hiiragi
8e76363ccf
Fix chown on /var/lib/zerotier-one
10 years ago
Adam Ierymenko
b03c7b2f30
Refactor controller to use split-out DB for better performance and less ugly.
10 years ago
Grant Limberg
965399ba0c
fix a few warnings
10 years ago
Michał Zieliński
344a25c133
Run as nonroot user on Linux (with CAP_NET_ADMIN and CAP_NET_RAW added).
...
- ZT will only drop root privileges if zerotier-one user exists. It is created by
Debian postinst script - in other cases the user has to be created by administrator.
- Linux >=4.3 with ambient capabilities is required, otherwise ZT will silently
- "-U" option now also disables privileges dropping
10 years ago
Grant Limberg
e59ed3e68f
Fix size of neighbor solicitation struct
10 years ago
Grant Limberg
69c5976775
fix typo in assert size
10 years ago
Adam Ierymenko
0843ed62fa
Network delete fix.
10 years ago
Grant Limberg
d817039f79
Add IPv6 Neighbor Discovery code. Not yet tested.
10 years ago
Adam Ierymenko
2fc3d12fb6
Minor tweaks to member code in controller, and fix Linux build.
10 years ago
Adam Ierymenko
24fce0be86
No, definitely have to back out GitHub issue #385 (non-bisected routes) since this breaks IPv6 on OSX and probably IPv4 too if you were to encounter a 6-only situation.
10 years ago
Adam Ierymenko
8d0b2b781e
Route management bug fixes.
10 years ago
Adam Ierymenko
5b6d27e659
Implement relay policy, and setting multicast limit to 0 now disables multicast on the network as would be expected.
10 years ago
Adam Ierymenko
ced8dfc639
Try a version of GitHub issue #385 (non-bifurcated default if not present) on Mac. This version adds the bifurcated routes always but also adds a device-specific non-bifurcated route. Will have to see if this still interferes with OSX route settings, since by definition device specific routes should not conflict with general routes.
10 years ago
Adam Ierymenko
34b146f28b
Back out of GitHub issue #385 for now and maybe for this release. Would be nice but it is non-critical and rules are the priority. Current implementation bangs heads with OSX route assignment on WiFi join, etc.
10 years ago
Adam Ierymenko
fb46a546db
Just always do route bifurcation on Linux for now... basically the old behavior.
10 years ago
Adam Ierymenko
d23ade879b
Do not bifurcate if not replacing an existing route. (Still need to tie up Linux and Windows.)
10 years ago
Adam Ierymenko
b08ca49580
More controller work -- it builds!
10 years ago
Adam Ierymenko
22e44c762b
More rules engine work: key/value pair matching for microsegmentation.
10 years ago
Adam Ierymenko
13100b245c
Fix for running under MUSL libc (e.g. Alpine Linux)
10 years ago
Adam Ierymenko
ebe7e15475
sys/sysctl.h is required on OSX and probably other BSD
10 years ago
Adam Ierymenko
23391ff9da
More OSX IPv6 fixes.
10 years ago
Adam Ierymenko
3f2b21ce71
Do not shadow our own route twice on Mac if there is no default route. (Fix for issue found during IPv6 default route override testing.)
10 years ago
Adam Ierymenko
912ee199ed
Tiny fixes to LinuxEthernetTap
10 years ago
Michael Aldridge
1a89694980
Remove explicit sys/sysctl.h includes
...
Explicitly including sys/sysctl.h breaks the ability to build
against muslc.
10 years ago
Adam Ierymenko
32d9850263
More new CLI work.
10 years ago
Adam Ierymenko
e2ca239be0
Comment cleanup.
10 years ago
Adam Ierymenko
4f237687ce
Route management now works on Windows, including default route override! 1.1.6 very close!
10 years ago
Adam Ierymenko
82473c85e0
Default route override and route management in general now works in Linux.
10 years ago
Adam Ierymenko
51ced0cf41
GitHub issue #338
10 years ago
Adam Ierymenko
6c4a444f29
GitHub issue #339
10 years ago