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.
Overview
paqet includes built-in testing tools to verify connectivity, debug issues, and monitor traffic. These tools help you confirm your configuration is correct before routing production traffic through the tunnel.Testing Commands
paqet provides two primary testing utilities:paqet ping- Send test packets to verify basic connectivitypaqet dump- Capture and decode packets for debugging
Using paqet ping
Theping command sends a single test packet to the server to verify connectivity.
Basic Usage
The
ping command requires root privileges (sudo) because it uses raw sockets, just like the main run command.What Ping Tests
When you runpaqet ping, it verifies:
- Network interface - Can capture and inject packets on the configured interface
- Packet routing - Packets reach the correct destination IP and port
- KCP transport - Encryption key is correct and handshake succeeds
- Raw socket operation - Low-level packet crafting and injection works
- MAC addresses - Gateway MAC configuration is correct
Using paqet dump
Thedump command captures and decodes packets, similar to tcpdump, but specifically for paqet traffic.
Basic Usage
Start packet capture on server
Monitor incoming packets on the server port:This will show all raw TCP packets arriving on port 9999.
Dump Command Options
Use
dump when you need to verify that packets are physically arriving at the server, even if the application isn’t processing them correctly.Testing SOCKS5 Proxy
Once basic connectivity is verified, test the SOCKS5 proxy with real applications.Testing with curl
Testing with Authentication
If you’ve configured SOCKS5 authentication:Testing Port Forwarding
Verify port forwarding configuration:What to Look For in Successful Connections
Client Logs
Successful client connection shows:Server Logs
Successful server connection shows:Application Connection
Successful application-level connection:The key indicator is
"origin" showing your server’s IP address, not your client’s. This confirms traffic is flowing through the tunnel.Common Test Scenarios
Scenario 1: Fresh Installation
Scenario 2: Intermittent Connection Issues
Scenario 3: Configuration Changes
Test with ping first
After changing network configuration, always test with ping before full deployment:
Verify each change
Test one configuration change at a time:
- Changed interface? Test with ping.
- Changed IP? Test with ping.
- Changed MAC? Test with ping.
Debug Mode
Enable debug logging for detailed connection information:- Packet capture details
- KCP handshake process
- Connection state changes
- Encryption/decryption operations
- Detailed error messages
Performance Testing
Test throughput and latency:For performance testing, consider using
iperf3 with port forwarding mode to measure raw throughput.