mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-24 07:06:39 +00:00
22ab673480
The original way we applied default route, by forking 0.0.0.0/0 into 0/1 and 128/1 works, but if mac os has any networking hiccups -if you change SSIDs or sleep/wake- macos erases the system default route. And then all networking on the computer is broken. to summarize the new way: allowDefault=1 ``` sudo route delete default 192.168.82.1 sudo route add default 10.2.0.2 sudo route add -ifscope en1 default 192.168.82.1 ``` gives us this routing table ``` Destination Gateway RT_IFA Flags Refs Use Mtu Netif Expire rtt(ms) rttvar(ms) default 10.2.0.2 10.2.0.18 UGScg 90 1 2800 feth4823 default 192.168.82.1 192.168.82.217 UGScIg ``` allowDefault=0 ``` sudo route delete default sudo route delete -ifscope en1 default sudo route add default 192.168.82.1 ``` Notice the I flag, for -ifscope, on the physical default route. route change does not seem to work reliably. |
||
---|---|---|
.. | ||
Arp.cpp | ||
Arp.hpp | ||
Binder.hpp | ||
BlockingQueue.hpp | ||
BSDEthernetTap.cpp | ||
BSDEthernetTap.hpp | ||
EthernetTap.cpp | ||
EthernetTap.hpp | ||
freebsd_getifmaddrs.c | ||
freebsd_getifmaddrs.h | ||
Http.cpp | ||
Http.hpp | ||
LinuxEthernetTap.cpp | ||
LinuxEthernetTap.hpp | ||
LinuxNetLink.cpp | ||
LinuxNetLink.hpp | ||
MacDNSHelper.hpp | ||
MacDNSHelper.mm | ||
MacEthernetTap.cpp | ||
MacEthernetTap.hpp | ||
MacEthernetTapAgent.c | ||
MacEthernetTapAgent.h | ||
MacKextEthernetTap.cpp | ||
MacKextEthernetTap.hpp | ||
ManagedRoute.cpp | ||
ManagedRoute.hpp | ||
NeighborDiscovery.cpp | ||
NeighborDiscovery.hpp | ||
NetBSDEthernetTap.cpp | ||
NetBSDEthernetTap.hpp | ||
OSUtils.cpp | ||
OSUtils.hpp | ||
Phy.hpp | ||
PortMapper.cpp | ||
PortMapper.hpp | ||
README.md | ||
Thread.hpp | ||
WinDNSHelper.cpp | ||
WinDNSHelper.hpp | ||
WindowsEthernetTap.cpp | ||
WindowsEthernetTap.hpp | ||
WinFWHelper.cpp | ||
WinFWHelper.hpp |
OS-Dependent and OS-Interface Things
This folder contains stuff that interfaces with the base operating system like Phy for network access and the various OS-specific Ethernet tap drivers.