vpn_site2site_usando_zerotier_con_bridge_en_lxc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| vpn_site2site_usando_zerotier_con_bridge_en_lxc [2024/10/28 01:56] – [Uninstall Zerotier] oso | vpn_site2site_usando_zerotier_con_bridge_en_lxc [2025/07/10 15:41] (current) – oso | ||
|---|---|---|---|
| Line 107: | Line 107: | ||
| ---- | ---- | ||
| - | |||
| - | ===== Uninstall Zerotier ===== | ||
| - | |||
| - | **Uninstall** | ||
| - | <code bash>apt remove zerotier-one</ | ||
| - | |||
| - | If you want to blow away the config it created: | ||
| - | <code bash> | ||
| - | <code bash>rm -rf / | ||
| - | |||
| - | |||
| - | ---- | ||
| - | |||
| - | |||
| - | ====== Issue Summary: ZeroTier TUN/TAP Device Error in LXC ====== | ||
| - | |||
| - | **Problem: | ||
| - | After migrating an LXC container with ZeroTier from a Proxmox environment to an Ubuntu Hyper-V setup, ZeroTier failed to start, logging the following error: | ||
| - | |||
| - | ERROR: unable to configure virtual network port: could not open TUN/TAP device: No such file or directory | ||
| - | |||
| - | This error suggested that ZeroTier was unable to open a TUN/TAP device, which it requires for creating virtual network interfaces. | ||
| - | |||
| - | ===== Troubleshooting Steps ===== | ||
| - | |||
| - | - **Configuration Comparison: | ||
| - | Compared the original Proxmox LXC configuration with the new setup. Verified that the TUN device was mounted with the line: | ||
| - | `lxc.mount.entry = /dev/net dev/net none bind, | ||
| - | |||
| - | - **Verification of `/ | ||
| - | Checked within the container to confirm that `/ | ||
| - | |||
| - | - **Adjusting Permissions: | ||
| - | Set permissions on the TUN device with: | ||
| - | `chmod 0666 / | ||
| - | |||
| - | - **LXC Configuration Adjustments: | ||
| - | Ensured the configuration included the following settings: | ||
| - | - `lxc.mount.entry = /dev/net dev/net none bind, | ||
| - | - `lxc.apparmor.allow_nesting = 1` | ||
| - | |||
| - | - **Network Configuration Clarification: | ||
| - | Noted that the `lxcbr0` bridge had a standard IP (`10.0.3.x/ | ||
| - | |||
| - | - **`lxc-net` and `dnsmasq` Review: | ||
| - | Confirmed that `lxc-net` was set to use `dnsmasq` for DHCP: | ||
| - | `USE_LXC_BRIDGE=" | ||
| - | No additional configurations in `/ | ||
| - | |||
| - | ===== Resolution and Next Steps ===== | ||
| - | |||
| - | The TUN/TAP issue appears to be due to sandboxing of `/ | ||
| - | * **Restart LXC services** to ensure TUN/TAP stability. | ||
| - | * **Monitor `/ | ||
| - | * Consider testing on **Debian as the host OS** to identify any host OS limitations affecting `/ | ||
| - | |||
| - | This setup and troubleshooting can serve as a reference for similar ZeroTier and TUN/TAP issues within LXC containers. | ||
vpn_site2site_usando_zerotier_con_bridge_en_lxc.1730080591.txt.gz · Last modified: 2024/10/28 01:56 by oso
