ডেভেলপারদের জন্য Terminal Proxy Workflow
FreeGuard CLI আপনার terminal-কে একটি নিরাপদ development environment-এ পরিণত করে, encrypted VPN tunnels-এর মাধ্যমে traffic route করে। আপনি restricted networks থেকে repositories clone করছেন, regions জুড়ে APIs debug করছেন, বা secure channels-এর মাধ্যমে containers deploy করছেন — যাই করুন না কেন, CLI আপনি ইতিমধ্যে ব্যবহার করা tools-এর সাথে integrate করে — git, ssh, curl, docker, এবং আরও অনেক কিছু।

ডেভেলপারদের জন্য Terminal Proxy Workflow

FreeGuard CLI আপনার terminal-কে একটি নিরাপদ development environment-এ পরিণত করে, encrypted VPN tunnels-এর মাধ্যমে traffic route করে। আপনি restricted networks থেকে repositories clone করছেন, regions জুড়ে APIs debug করছেন, বা secure channels-এর মাধ্যমে containers deploy করছেন — যাই করুন না কেন, CLI আপনি ইতিমধ্যে ব্যবহার করা tools-এর সাথে integrate করে — git, ssh, curl, docker, এবং আরও অনেক কিছু।

কেন ডেভেলপারদের Terminal Proxy দরকার

অনেক development task-এ এমন network access লাগে যা VPN protection থেকে উপকৃত হয়:

  • coffee shop বা airport থেকে internal APIs access করা
  • development চলাকালীন geo-restricted services test করা
  • এমন network-এর মাধ্যমে code push করা যা git traffic throttle বা inspect করে
  • restrictive firewalls-এর মাধ্যমে remote servers-এ connect করা
  • transit-এ CI/CD credentials encrypted রাখা

FreeGuard CLI আপনার terminal ছাড়াই এগুলোর সবকিছু handle করে।


VPN-এর মাধ্যমে Git

সমস্যা

Corporate networks, public Wi-Fi, এবং কিছু ISP 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-কে এটি use করতে 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 remove করুন:

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

বিভিন্ন region থেকে test করতে আপনার 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 client-ই এর সুবিধা পায়:

freeguard connect --server uk-london
http GET https://api.example.com/v1/pricing Accept:application/json

Selective Routing-এর জন্য Proxy Mode

আপনি যদি শুধু কিছু request 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

FreeGuard-এর মাধ্যমে Docker container traffic 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 Build করা

যখন docker build-এর registries থেকে packages download করতে হয় যা blocked বা slow:

freeguard connect --server us-west
docker build --network host -t my-app:latest .
freeguard disconnect

CI/CD Integration

GitHub Actions

build-এর সময় geo-restricted resources access করতে আপনার 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 machine-readable output-এর জন্য --json এবং clean log files-এর জন্য --no-color support করে:

# 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 code ব্যবহার করে, যা script check করতে পারে:

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

দৈনন্দিন ব্যবহারের জন্য Tips

  1. Shell alias — আপনার shell profile-এ alias vpn="freeguard connect" এবং alias vpnoff="freeguard disconnect" যোগ করুন।
  2. Auto-connect — যদি আপনি সবসময় VPN চালু রাখতে চান, তাহলে আপনার .zshrc বা .bashrc-এ freeguard connect যোগ করুন।
  3. Server bookmarks--server flag এড়াতে freeguard config set default-server us-east ব্যবহার করুন।
  4. Prompt-এ Status — আপনার shell prompt-এ VPN status দেখাতে freeguard status --json parse করুন।

পরবর্তী পদক্ষেপ

শেষ আপডেট: March 2026