Find Your Network Details
Before configuring the server, you need to gather network information for your server machine.
- Linux
- macOS
- Windows
Find Interface and Local IP:Look for your primary network interface (e.g.,
eth0, ens3). The IP address is listed under inet.Find Gateway MAC Address:Create Server Configuration File
Create a file named
config.yaml in the same directory as your paqet binary:config.yaml
See the complete server configuration reference for all available options.
Configure Listen Address
Set the port your server will listen on:You can also bind to a specific IP:
The port in
listen.addr must match the port in network.ipv4.addr.Configure Network Interface
Update the
network section with your server’s network details from Step 1:Set Encryption Key
Configure the encryption key that matches your client:Generate a secure key using:Share this key securely with your client configuration.
Configure Firewall Rules
Critical: You must configure iptables to prevent kernel interference.See the Firewall Configuration guide for detailed instructions.
Configure Cloud Provider Security Group
If running on a cloud provider (AWS, GCP, Azure, etc.), ensure your security group allows TCP traffic on your listen port:
- Protocol: TCP
- Port: Your listen port (e.g., 9999)
- Source: Your client’s IP or 0.0.0.0/0 for any source
Example Configuration
Here’s a complete working example for a Linux server:Running as a Service
For production deployments, consider running paqet as a systemd service:/etc/systemd/system/paqet.service