Defer configuration by default and manage vpn-router.conf with ucf
Add platform = none as the shipped default so installing the package changes nothing on the machine until a platform is chosen. Add a mode setting (manual/interfaces/auto) controlling how much of the network configuration is supplied versus detected from the system. Manage /etc/vpn-router/vpn-router.conf with ucf instead of writing it once, so dpkg-reconfigure can safely reapply debconf answers without clobbering local edits. Extend NAT/forward rules to all local subnets, not just the first.
This commit is contained in:
1 parent
083ad9a596
commit
7cb2f1b8dd
14 files changed
+439
-124
No files matched your search
+5
-2
@@ -1,8 +1,11 @@
|
||||
#!/usr/bin/python3
|
||||
"""Render configuration files and provision PKI from vpn-router.conf.
|
||||
|
||||
Run directly to regenerate the configuration files without touching the
|
||||
running system. 'setup' calls the same code before applying the rest.
|
||||
Run directly to regenerate them without starting, stopping or reloading
|
||||
anything. This still writes to /etc/swanctl, /etc/systemd/resolved.conf.d and
|
||||
/etc/wireguard, and may create the certificate authority and add it to the host
|
||||
trust store; what it leaves alone is routes, firewall rules and services.
|
||||
'setup' calls the same code before applying those.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
Reference in new issue
Block a user