Skip to content

CLI Usage

nym-vpnc is the command-line client that communicates with the nym-vpnd daemon via gRPC.

Connection

# Connect with default settings
nym-vpnc connect-v2

# Disconnect
nym-vpnc disconnect

# Check connection status
nym-vpnc status

Gateway Management

# View current gateway selection
nym-vpnc gateway get

# List gateways by type (mixnet-entry, mixnet-exit, wg)
nym-vpnc gateway list mixnet-exit

# Set entry/exit gateways by country
nym-vpnc gateway set --entry-country DE --exit-country CH

# Set a specific gateway by ID
nym-vpnc gateway set --exit-id <base58-gateway-id>

# Auto-select with random gateways
nym-vpnc gateway set --entry-random --exit-random

Account

# Import account recovery phrase
nym-vpnc account set "your twenty four word mnemonic phrase here"

# View account info
nym-vpnc account get

# Remove stored credentials
nym-vpnc account forget

# Rotate WireGuard keys
nym-vpnc account rotate-keys

Inbound Services

Expose port-forwarded services to the WAN while the kill-switch is on. See the Inbound Services guide for the full mechanism and recipes.

# List, add, delete
nym-vpnc inbound list
nym-vpnc inbound add tcp:443 --label "HTTPS"
nym-vpnc inbound add udp:51820
nym-vpnc inbound del tcp:443

The exemption uses the WAN-side port. For LAN-hosted services you also need a port forward in Network → Firewall → Port Forwards.

Tunnel Settings

# View tunnel configuration
nym-vpnc tunnel get

# Configure tunnel options
nym-vpnc tunnel set --ipv6 on --two-hop on

# Disable kill-switch (for PBR compatibility)
nym-vpnc tunnel set --killswitch off

# Re-enable kill-switch
nym-vpnc tunnel set --killswitch on

Network Settings

# View current network (mainnet, canary)
nym-vpnc network get

# Set network
nym-vpnc network set mainnet

LAN Policy

# View current LAN policy
nym-vpnc lan get

# Allow LAN device access while connected
nym-vpnc lan set allow

# Block LAN device access while connected
nym-vpnc lan set block

DNS

# View DNS configuration
nym-vpnc dns get

# Set custom DNS servers
nym-vpnc dns set 1.1.1.1 9.9.9.9

# Enable/disable custom DNS
nym-vpnc dns enable
nym-vpnc dns disable

# Clear custom DNS servers
nym-vpnc dns clear

Ad Blocking

# View ad-blocking status
nym-vpnc ad-block get

# Enable/disable ad-blocking
nym-vpnc ad-block set enabled
nym-vpnc ad-block set disabled

Daemon Control

# Check daemon status
nym-vpnc info

# Via init script
/etc/init.d/nym-vpnd start
/etc/init.d/nym-vpnd stop
/etc/init.d/nym-vpnd restart
/etc/init.d/nym-vpnd status

The service is managed by procd with automatic respawn (up to 5 times within a 3600s window). On stop, the init script calls nym-vpnc disconnect to clean up firewall rules and tunnels.

# Enable/disable auto-start on boot
/etc/init.d/nym-vpnd enable
/etc/init.d/nym-vpnd disable

Configuration

Settings are stored in /etc/config/nym-vpn (UCI format, preserved across firmware upgrades). Settings are managed through nym-vpnc or the LuCI interface — direct UCI editing is not recommended.

# View current config
uci show nym-vpn

Logs

# View daemon logs
logread -e nym-vpnd

# Follow logs in real time
logread -e nym-vpnd -f