The client configuration file defines how paqet operates in client mode, including SOCKS5 proxy settings, port forwarding, network interface configuration, and server connection details.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/hanselime/paqet/llms.txt
Use this file to discover all available pages before exploring further.
Role Configuration
Must be set to
"client" for client mode.Logging
Log level for output. Options:
none, debug, info, warn, error, fatalSOCKS5 Proxy Configuration
Thesocks5 section defines SOCKS5 proxy servers that the client will expose. You can configure multiple SOCKS5 listeners.
Array of SOCKS5 proxy configurations
Local address and port to listen for SOCKS5 connections (e.g.,
"127.0.0.1:1080")Optional username for SOCKS5 authentication
Optional password for SOCKS5 authentication
Port Forwarding Configuration
Theforward section defines port forwarding rules. This can be used alongside or instead of SOCKS5.
Array of port forwarding configurations
Local address and port to listen on (e.g.,
"127.0.0.1:8080")Target address and port to forward to via the server (e.g.,
"127.0.0.1:80")Protocol to use. Options:
tcp, udpNetwork Interface Settings
Network interface name to use (e.g.,
en0, eth0, wlan0)Windows only: Npcap device GUID in format
\\Device\\NPF_{...}IPv4 Configuration
Local IPv4 address and port (e.g.,
"192.168.1.100:0"). Use port 0 for random port assignment.MAC address of the gateway/router in format
aa:bb:cc:dd:ee:ffIPv6 Configuration
Local IPv6 address and port (e.g.,
"[2001:db8::1]:0"). Optional.MAC address of the gateway/router for IPv6
TCP Configuration
TCP flags for local packets (Push+Ack by default)
TCP flags for remote packets (Push+Ack by default)
PCAP Settings
PCAP socket buffer size in bytes (default: 4MB for client)
Server Connection Settings
Address and port of the paqet server to connect to (e.g.,
"10.0.0.100:9999")Transport Configuration
Transport protocol to use. Currently only
"kcp" is supported.Number of parallel connections (1-256). Must be 1 if client port is explicitly set (non-zero).
TCP buffer size in bytes
UDP buffer size in bytes
KCP Settings
See Transport Configuration for detailed KCP protocol settings.KCP mode preset. Options:
normal, fast, fast2, fast3, manualMaximum transmission unit in bytes (50-1500)
Receive window size for client
Send window size for client
Encryption key (must match server). Generate using
paqet secret.Encryption algorithm. See Encryption Configuration.
SMUX buffer size in bytes (4MB)
Stream buffer size in bytes (2MB)
SMUX keepalive interval in seconds
SMUX keepalive timeout in seconds
Complete Example
Parameters marked with
# CHANGE ME: must be customized for your environment.