- Interface model with per-interface subnet/port/keys; import/adopt existing wg-quick configs (key-less imported peers, optional key rotation), cascade delete - Split wireguard.py into a package (keys via cryptography X25519, status, addressing, conf parse/render, sync, host tuning) - ECharts horizontal topology view (interface -> peers -> site subnets) - Advanced options: MTU, MSS clamping, FwMark/Table, custom PostUp/PostDown, per-peer keepalive override - Runtime settings (sample interval/retention, online threshold, UI refresh) with traffic sample pruning; host tuning (UDP buffers, backlog, GRO forwarding) - Precompiled Tailwind CSS replacing Play CDN runtime (fixes FOUC); stable table layout and diffed polling renders - Host network mode in compose; NAT/isolation iptables moved into app sync Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
76 lines
1.5 KiB
Python
76 lines
1.5 KiB
Python
from .addressing import (
|
|
next_free_address,
|
|
server_address,
|
|
subnets_overlap,
|
|
validate_address,
|
|
validate_cidr_list,
|
|
validate_interface_name,
|
|
validate_subnet,
|
|
)
|
|
from .conf import (
|
|
ParsedConfig,
|
|
ParsedPeer,
|
|
backup_config,
|
|
config_path,
|
|
discover_configs,
|
|
parse_config,
|
|
render_client_config,
|
|
render_server_config,
|
|
server_allowed_ips,
|
|
write_server_config,
|
|
)
|
|
from .keys import generate_keypair, genkey, genpsk, pubkey
|
|
from .status import InterfaceStatus, PeerStatus, get_status, system_interfaces
|
|
from .sync import (
|
|
interface_down,
|
|
interface_up,
|
|
is_managed,
|
|
sync_isolation,
|
|
sync_mss_clamp,
|
|
sync_mtu,
|
|
sync_nat,
|
|
sync_peers,
|
|
sync_routes,
|
|
)
|
|
from . import status as status_module
|
|
from . import tuning
|
|
|
|
__all__ = [
|
|
"InterfaceStatus",
|
|
"ParsedConfig",
|
|
"ParsedPeer",
|
|
"PeerStatus",
|
|
"backup_config",
|
|
"config_path",
|
|
"discover_configs",
|
|
"generate_keypair",
|
|
"genkey",
|
|
"genpsk",
|
|
"get_status",
|
|
"interface_down",
|
|
"interface_up",
|
|
"is_managed",
|
|
"next_free_address",
|
|
"parse_config",
|
|
"pubkey",
|
|
"render_client_config",
|
|
"render_server_config",
|
|
"server_address",
|
|
"server_allowed_ips",
|
|
"subnets_overlap",
|
|
"status_module",
|
|
"sync_isolation",
|
|
"sync_mss_clamp",
|
|
"sync_mtu",
|
|
"sync_nat",
|
|
"sync_peers",
|
|
"sync_routes",
|
|
"system_interfaces",
|
|
"tuning",
|
|
"validate_address",
|
|
"validate_cidr_list",
|
|
"validate_interface_name",
|
|
"validate_subnet",
|
|
"write_server_config",
|
|
]
|