mirror of
https://github.com/toreanderson/clatd
synced 2026-03-14 09:44:52 +00:00
New feature: Replace original IPv4 default route
Adds "v4-defaultroute-replace" config/command-line setting (default disabled). When enabled, it will unconditionally disable the pre-flight IPv4 connectivity check, and ensure that any pre-existing IPv4 default routes are removed during startup (and presumably replaced with the one pointing to the CLAT, unless "v4-defaultroute-enable" has been disabled). Any IPv4 default routes that were removed in this manner are restored when clatd is shutting down.
This commit is contained in:
20
README.pod
20
README.pod
@@ -266,6 +266,9 @@ system has IPv4 connectivity, disable this setting. You may instead use the
|
||||
B<v4-defaultroute-enable> and B<v4-defaultroute-metric> settings to prevent
|
||||
B<clatd> from interfering with native IPv4 connectivity.
|
||||
|
||||
Note that enabling B<v4-defaultroute-replace> will override
|
||||
B<v4-conncheck-enable> and unconditionally disable IPv4 connectivity checking.
|
||||
|
||||
=item B<v4-conncheck-delay=seconds> (default: I<10>)
|
||||
|
||||
When performing an IPv4 connectivity check, wait this number of seconds
|
||||
@@ -286,6 +289,23 @@ an environment where native IPv4 connectivity is also present, you might want
|
||||
to disable this and instead control manually which IPv4 destinations is
|
||||
reached through the CLAT and which are not.
|
||||
|
||||
=item B<v4-defaultroute-replace=bool> (default: I<no>)
|
||||
|
||||
Instructs B<clatd> to remove any pre-existing IPv4 default routes, replacing it
|
||||
with one pointing to the CLAT (assuming B<v4-defaultroute-enable> is I<yes>).
|
||||
The replacement is temporary, any pre-existing routes that were removed will be
|
||||
restored when B<clatd> is shutting down.
|
||||
|
||||
Note that nothing prevents software like a connection manager or a DHCPv4
|
||||
client daemon from re-adding any replaced routes while B<clatd> is running.
|
||||
|
||||
If you enable B<v4-defaultroute-replace> while at the same time disabling
|
||||
B<v4-defaultroute-enable>, B<clatd> will remove any pre-existing IPv4 default
|
||||
routes but not add any of its own.
|
||||
|
||||
Setting B<v4-defaultroute-replace> to I<yes>will disable the IPv4 connectivity
|
||||
check.
|
||||
|
||||
=item B<v4-defaultroute-metric=integer> (default: I<2048>)
|
||||
|
||||
The metric of the IPv4 default route pointing to the CLAT. The default is
|
||||
|
||||
Reference in New Issue
Block a user