- Add utun VPN daemon with config parsing, control socket, routing, and TUN interface - Refactor net_emulator/u_async to support multiple independent instances - Replace linked-list timeout management with heap-based implementation - Fix timeout processing bug (process timeouts after select) - Add comprehensive random timeout and instance isolation tests - Update Makefile to build utun and new test targets
29 lines
773 B
Plaintext
29 lines
773 B
Plaintext
# Example configuration with control socket enabled
|
|
[global]
|
|
my_private_key=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
|
|
my_public_key=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
|
|
control_ip=127.0.0.1 # Listen on localhost only
|
|
control_port=5555 # UDP port for monitoring
|
|
|
|
# TUN interface configuration
|
|
[tun]
|
|
ifname=tun12
|
|
ip_addr=10.0.0.1/24
|
|
mtu=1400
|
|
|
|
# Routing configuration
|
|
[routing]
|
|
allowed_subnet=10.0.0.0/8
|
|
allowed_subnet=172.16.0.0/12
|
|
allowed_subnet=192.168.0.0/16
|
|
|
|
# Connection configuration (example)
|
|
[[connection]]
|
|
name=node1
|
|
remote_ip=192.168.1.100
|
|
remote_port=12345
|
|
local_ip=0.0.0.0
|
|
local_port=0
|
|
mode=client
|
|
|
|
# Add more connections as needed |