डेवलपर्स के लिए Terminal Proxy Workflow
FreeGuard CLI आपके terminal को एक सुरक्षित development environment में बदल देता है, क्योंकि यह traffic को encrypted VPN tunnels के माध्यम से route करता है। चाहे आप restricted networks से repositories clone कर रहे हों, regions across APIs debug कर रहे हों, या secure channels के जरिए containers deploy कर रहे हों, CLI उन tools में integrate हो जाता है जिनका आप पहले से उपयोग करते हैं — git, ssh, curl, docker, और अधिक।
डेवलपर्स को Terminal Proxy की आवश्यकता क्यों होती है
कई development tasks में network access शामिल होता है, जिसे VPN protection से लाभ मिलता है:
- coffee shops या airports से internal APIs तक पहुँच
- development के दौरान geo-restricted services का परीक्षण
- ऐसे networks के माध्यम से code push करना जो git traffic को throttle या inspect करते हैं
- restrictive firewalls के जरिए remote servers से connect करना
- CI/CD credentials को transit के दौरान encrypted रखना
FreeGuard CLI यह सब कुछ आपके terminal से बाहर निकले बिना संभालता है।
VPN के माध्यम से Git
समस्या
Corporate networks, public Wi-Fi, और कुछ ISPs git operations को throttle या block करते हैं। SSH-based git connections को deep packet inspection द्वारा flag किया जा सकता है। HTTPS clones transparent proxies द्वारा intercept किए जा सकते हैं।
समाधान
अपने git operations से पहले FreeGuard से connect करें:
freeguard connect --server us-east
git clone [email protected]:your-org/private-repo.git
git fetch --all
git push origin feature-branch
freeguard disconnect
अधिक automated approach के लिए, इसे script में wrap करें:
#!/bin/bash
freeguard connect --server us-east --json | jq -r '.status'
trap "freeguard disconnect" EXIT
git pull origin main
npm run build
git push origin main
trap यह सुनिश्चित करता है कि script बीच में fail होने पर भी VPN disconnect हो जाए।
Proxy-aware Git
FreeGuard CLI एक local SOCKS5 या HTTP proxy भी expose कर सकता है। git को इसका उपयोग करने के लिए configure करें:
# Set proxy for git globally
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
# Or per-repository
git config http.proxy socks5://127.0.0.1:1080
काम पूरा होने पर proxy config हटाएँ:
git config --global --unset http.proxy
git config --global --unset https.proxy
VPN के साथ SSH Tunneling
Remote Server Access
जब आपको untrusted networks से servers में SSH करना हो, तो VPN आपके SSH traffic के machine से बाहर निकलने से पहले ही encryption की एक layer जोड़ता है:
freeguard connect --server us-west
ssh [email protected]
VPN के माध्यम से ProxyJump
multi-hop access के लिए FreeGuard को SSH ProxyJump के साथ combine करें:
# Connect to VPN first
freeguard connect
# Then jump through a bastion host
ssh -J [email protected] [email protected]
Port Forwarding
VPN tunnel के माध्यम से remote ports forward करें:
freeguard connect --server eu-west
ssh -L 5432:db.internal:5432 [email protected]
# Now connect to localhost:5432 to reach the remote database
API Development
curl के साथ Testing
अलग-अलग regions से परीक्षण करने के लिए अपने API requests को VPN के माध्यम से route करें:
freeguard connect --server jp-tokyo
# Test geo-specific API responses
curl -s https://api.example.com/v1/content | jq '.region'
# Output: "ap-northeast-1"
freeguard connect --server de-frankfurt
curl -s https://api.example.com/v1/content | jq '.region'
# Output: "eu-central-1"
httpie का उपयोग
httpie उसी तरह काम करता है। FreeGuard CLI system level पर operate करता है, इसलिए सभी HTTP clients को लाभ मिलता है:
freeguard connect --server uk-london
http GET https://api.example.com/v1/pricing Accept:application/json
Selective Routing के लिए Proxy Mode
यदि आप केवल कुछ requests को VPN के माध्यम से भेजना चाहते हैं, तो local proxy का उपयोग करें:
# Start FreeGuard with local proxy
freeguard connect
# Route specific requests through the proxy
curl --proxy socks5://127.0.0.1:1080 https://api.example.com/endpoint
# Direct requests bypass VPN
curl https://internal.company.com/api
Docker Containers + VPN
VPN के माध्यम से Container Network
Docker container traffic को FreeGuard के माध्यम से route करें:
# Connect host to VPN
freeguard connect --server us-east
# Containers using host network will route through VPN
docker run --network host my-app:latest
Docker Compose Integration
अपने development stack में VPN connectivity जोड़ें:
#!/bin/bash
# dev-start.sh
freeguard connect --server us-east --json | jq -r '.status'
docker compose up -d
echo "Development stack is running through VPN"
Restrictive Networks के पीछे Images बनाना
जब docker build को उन registries से packages डाउनलोड करने होते हैं जो blocked या slow हैं:
freeguard connect --server us-west
docker build --network host -t my-app:latest .
freeguard disconnect
CI/CD Integration
GitHub Actions
builds के दौरान geo-restricted resources तक पहुँचने के लिए अपने CI pipeline में FreeGuard CLI का उपयोग करें:
- name: Connect VPN
run: |
curl -fsSL https://cli.freeguard.com/install.sh | bash
freeguard login --method token --token ${{ secrets.FREEGUARD_TOKEN }}
freeguard connect --server us-east --json
Script-Friendly Output
हर FreeGuard CLI command मशीन-पठनीय output के लिए --json और साफ log files के लिए --no-color का समर्थन करता है:
# Get connection status as JSON
freeguard status --json
# {"connected": true, "server": "us-east-1", "protocol": "hysteria2", "uptime": 3600}
# List servers as JSON for programmatic selection
freeguard servers --json --region us | jq '.[0].id'
Exit Codes
CLI standard exit codes का उपयोग करता है, जिन्हें scripts जाँच सकती हैं:
| Exit Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Authentication required |
| 3 | Connection failed |
| 4 | Server not found |
freeguard connect --server us-east
if [ $? -eq 0 ]; then
echo "VPN connected, starting deployment..."
./deploy.sh
fi
दैनिक उपयोग के लिए सुझाव
- Shell alias — अपने shell profile में
alias vpn="freeguard connect"औरalias vpnoff="freeguard disconnect"जोड़ें। - Auto-connect — यदि आप हमेशा VPN on रखना चाहते हैं, तो अपने
.zshrcया.bashrcमेंfreeguard connectजोड़ें। - Server bookmarks —
--serverflag को छोड़ने के लिएfreeguard config set default-server us-eastका उपयोग करें। - Status in prompt — अपने shell prompt में VPN status दिखाने के लिए
freeguard status --jsonparse करें।
अगले कदम
- FreeGuard CLI — installation और full command reference
- CLI command documentation — हर command और flag के लिए detailed reference
- Deploy on headless servers — FreeGuard CLI को system service के रूप में चलाएँ
- Pricing — developer-friendly plans
Last updated: March 2026