كيفية نشر بروكسي على DigitalOcean: دليل عملي

تعتبر DigitalOcean خياراً ممتازاً للمطورين والشركات الناشئة لبناء خادم بروكسي خاص. في هذا الدليل، سنستخدم "Droplet" بنظام Ubuntu لتشغيل Squid Proxy.

1. إنشاء Droplet

اختر خطة "Basic" (أرخص خيار 4$/شهر يكفي لبروكسي بسيط). اختر موقع مركز البيانات الأقرب لجمهورك (مثلاً: Frankfurt للمستخدمين في الشرق الأوسط).

2. التثبيت والإعداد


# تحديث النظام
sudo apt update && sudo apt upgrade -y

# تثبيت Squid
sudo apt install squid -y

# السماح بالمنفذ 3128
sudo ufw allow 3128/tcp
                    

3. تأمين البروكسي

لا تترك البروكسي مفتوحاً! قم بتقييد الوصول لعنوان IP الخاص بك فقط عن طريق تعديل /etc/squid/squid.conf:


acl my_ip src 1.2.3.4/32
http_access allow my_ip
http_access deny all
                    

4. استخدام Reserved IP

لضمان عدم تغير عنوان IP البروكسي عند إعادة التشغيل، قم بتعيين "Reserved IP" (سابقاً Floating IP) للـ Droplet الخاص بك مجاناً.

Disclosure: we may earn a commission if you purchase through some links.

Services Related To This Article

These offers are related to privacy, password security, and development workflows. Replace the current links with your real affiliate links through environment variables.

Default Links Need Replacement

Proton

Privacy, mail, and VPN

A strong fit for privacy-focused visitors who want VPN and secure email under one brand.

Explore Proton

Surfshark

Consumer VPN

Best on pages about geo-blocking, privacy, and public Wi-Fi protection.

Try Surfshark

NordVPN

High-converting VPN

A clear offer for users who need a paid, more durable alternative to a free proxy.

View NordVPN

1Password

Password management

The best match for password, secrets, team access, and personal security pages.

Discover 1Password

DigitalOcean

Developer cloud hosting

A strong fit for proxy setup, server, and infrastructure content aimed at developers and small teams.

Start with DigitalOcean