Configuration File Structure
All paqet configuration is defined in YAML format with the following top-level structure:Role Field Requirement
The role determines which configuration sections are active:- Client mode: Requires
socks5orforwardsections, plusserverconnection details - Server mode: Requires
listensection for incoming connections
network and transport configuration.
Specifying Configuration
Use the-c flag to specify your configuration file when starting paqet:
Configuration Sections
The configuration file is organized into several sections:Logging
Control log output levels (none, debug, info, warn, error, fatal)
Network
Network interface, IPv4/IPv6 addresses, MAC addresses, TCP flags, and PCAP settings
Transport
Protocol selection, connection pooling, buffer sizes, and KCP configuration
Encryption
Encryption algorithms and keys for secure communication
Client-Specific Sections
- socks5: SOCKS5 proxy server configuration
- forward: Port forwarding rules
- server: Connection details for the paqet server
Server-Specific Sections
- listen: Server listening address and port
Configuration Examples
Complete configuration examples are provided:Configuration Validation
paqet validates all configuration on startup and will report detailed error messages if any issues are found:Many configuration parameters have sensible defaults and can be omitted. See the client and server reference pages for default values.
Next Steps
Client Configuration
Configure paqet client with SOCKS5 and forwarding
Server Configuration
Set up paqet server for incoming connections
Transport Settings
Optimize KCP protocol for your network
Encryption
Secure your connection with encryption