VPN tunnel for accessing foreign websites (Google, GitHub, Docker Hub, etc.) through a cloud VPS (47.85.45.122) via WireGuard + SOCKS5 proxy. Use when: (1) N...
编程
Protonvpn Openvpn
试用Manage ProtonVPN OpenVPN connections — connect, disconnect, rotate, check status
它能做什么
Manage ProtonVPN OpenVPN connections — connect, disconnect, rotate, check status
技能文档
ProtonVPN OpenVPN Skill
Manage ProtonVPN OpenVPN connections for privacy, geo-testing, and IP rotation workflows.
When to Use
Use this skill when:
- Connecting to a specific ProtonVPN country server
- Disconnecting from VPN
- Checking current VPN status and IP location
- Rotating through available VPN configs for IP diversity
- Testing geo-dependent features or bypassing regional blocks
Prerequisites
- OpenVPN installed (
openvpnbinary in PATH) - ProtonVPN config files in
/etc/openvpn/client/ - Auth credentials file at
/etc/openvpn/client/auth.txt(chmod 600) - Passwordless sudo for
openvpnandkillcommands (recommended)
Available Configs
| Config File | Country | Code |
|---|---|---|
us.protonvpn.udp.ovpn | United States | us |
se.protonvpn.udp.ovpn | Sweden | se |
nl.protonvpn.udp.ovpn | Netherlands | nl |
cz.protonvpn.udp.ovpn | Czech Republic | cz |
in.protonvpn.udp.ovpn | India (routes via Singapore) | in |
Commands
Connect
sudo openvpn --config /etc/openvpn/client/.protonvpn.udp.ovpn --daemon --log-append /tmp/openvpn.log --writepid /tmp/openvpn.pid
Wait 5 seconds for connection, then verify:
sleep 5 && curl -s --max-time 10 https://ipinfo.io/json | jq -r '"\(.country) | \(.city), \(.region) | \(.ip) | \(.org)"'
Disconnect
sudo kill $(cat /tmp/openvpn.pid 2>/dev/null) 2>/dev/null || sudo killall openvpn
Status
# Check if tun0 exists
ip addr show tun0 2>/dev/null && echo "VPN interface: UP" || echo "VPN interface: DOWN"
# Check current IP/location
curl -s --max-time 10 https://ipinfo.io/json | jq -r '"\(.country) | \(.city), \(.region) | \(.ip) | \(.org)"' 2>/dev/null || echo "No VPN connection"
Rotate
Disconnect current, then connect to next config in rotation:
# 1. Disconnect
sudo kill $(cat /tmp/openvpn.pid 2>/dev/null) 2>/dev/null; sleep 2
# 2. Pick next config (cycle through: us → se → nl → cz → in → us)
# Use a state file to track current position: /tmp/vpn-rotation-state
# 3. Connect to next
sudo openvpn --config /etc/openvpn/client/.protonvpn.udp.ovpn --daemon --log-append /tmp/openvpn.log --writepid /tmp/openvpn.pid
sleep 5
# 4. Verify
curl -s --max-time 10 https://ipinfo.io/json | jq -r '"\(.country) | \(.city), \(.region) | \(.ip) | \(.org)"'
Output Parsing
| Field | Source | Example |
|---|---|---|
| Country | ipinfo.io .country | US, SE, NL |
| City | ipinfo.io .city | Los Angeles, Stockholm |
| IP | ipinfo.io .ip | 193.37.254.69 |
| Provider | ipinfo.io .org | M247 Ltd |
| Interface | ip addr show tun0 | tun0: |
Error Handling
- If connection fails: check
/tmp/openvpn.logfor auth errors or TLS handshake failures - If
ipinfo.ioreturns wrong country: DNS leak — check resolv.conf - If
tun0doesn't appear: OpenVPN daemon crashed — check logs
Security Notes
- Credentials file must be
chmod 600 - Config files must reference
auth-user-pass /etc/openvpn/client/auth.txt - Never commit credentials to Git
- Use
--daemonfor background operation; use--writepidfor clean shutdown
Workflows
Geo-Testing
# Connect to target country
vpn-connect us
# Run tests
# ...
# Disconnect
vpn-disconnect
IP Rotation (Scraping)
# Rotate every N requests
vpn-rotate
# Make requests
# ...
Privacy Mode
# Connect and stay connected
vpn-connect nl
# All traffic now routed through Netherlands
相关技能
Combined network + gateway status with VPN info, IP location, and system health
Opens Brave browser directly to ChatGPT for instant AI conversations. Perfect for quick access to OpenAI's chat interface.
Standalone advanced network diagnostics for OpenClaw to continuously test end-to-end connectivity from OpenClaw agent to Telegram Bot API and approximate del...
Connect to remote Linux servers through SSH and execute commands non-interactively. Covers password authentication, key authentication, file transfer, and cr...
Wallet, cards, OTP inbox, Freeman chat, eSIM, VPN, and crypto invoices for agents