Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tunspace: static IP support, log spam prevention #468

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pktpls
Copy link
Contributor

@pktpls pktpls commented Jan 16, 2025

Compile tested: x86_64, snapshot
Run tested: x86/64, snapshot, tunspace works with both static IP and DHCP, logspam is prevented

Description of your changes:
More info in the commit messages. Fixes #467

The build: commit is unrelated and helps us build images with a custom package feed locally.

pktpls added 3 commits January 8, 2025 00:54
This commit:
- switches between static IP and DHCP based on the presence of the
  "uplink_ipv4" config value.
- makes reading the configuration more robust against missing values.

By frequently refreshing its DHCP lease, TunSpace stresses DHCP servers
with faulty configurations.

For example, Telekom Speedport modems completely lock up and permanently
stop handing out DHCP leases to clients.

Another example is a DHCP server that always hands out new IP addresses,
even though TunSpace only requests a renew of its existing IP address,
which leads to fast exhaustion of the address pool.
Bird, OLSR and Babel spam syslog if the wireguard interface doesn't
have its private key configured yet. Prevent this by bringing the
interface up later, once it's fully configured.

    Socket error on ts_wg0: Required key not available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tunspace: keep ts_ mesh interface down if not healthy
1 participant