ping command sends a single raw TCP packet with a custom payload to test connectivity between client and server.
Syntax
Description
This command is used to verify that your paqet client can successfully send raw TCP packets to the server. It’s useful for testing network configuration, firewall rules, and interface settings before running the full client.The
ping command requires a client configuration file. It uses the network interface and server address specified in your config.Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--config | -c | config.yaml | Path to the client configuration file |
--payload | PING | The string payload to send in the packet |
Usage Examples
Basic ping test
Ping with custom payload
What Success Looks Like
What Failure Looks Like
Interface not found
Permission denied
Configuration error
When to Use Ping
Use theping command to:
- Test configuration: Verify your client config is correct before starting the full client
- Debug connectivity: Check if packets can reach the server through your network
- Verify interface: Confirm the network interface specified in config exists and works
- Test firewall rules: Ensure firewall isn’t blocking raw TCP packets to the server
The ping command only sends a packet; it doesn’t wait for a response. To verify the server received the packet, check the server logs or use the
dump command on the server side.Troubleshooting
If ping fails:- Check interface name: Run
paqet ifaceto list available interfaces - Verify permissions: Ensure you’re running with sudo/root
- Check config: Verify the server address and port are correct
- Test network: Ensure basic network connectivity to the server exists