🔒📹 Alin Li · كاميرات منزلية آمنة

الوصول إلى الكاميرات Anywhere,
Without Opening Your Network

يكشف معظم الناس كاميرات منازلهم للإنترنت بإعادة توجيه المنافذ — فيتركون الشبكة كاملةً عرضة للاختراق. ينشئ Tailscale نفقًا خاصًا مشفّرًا، فلا ترى كاميراتك إلا أجهزتك. بلا منافذ مفتوحة. بلا مخاطر. مفتوح المصدر بنسبة 100%.

The Problem 🚨Set It Up ⚡
🚨 المشكلة

لماذا يُعد تحويل المنافذ خطرًا

The way most people access cameras remotely is a security disaster.

🔓 ما يفعله معظم الناس (خطأ)

You install a camera at home. You want to see it from work or while traveling. The internet says: «ما عليك إلا إعداد تحويل المنافذ في الموجّه!» You open port 8080, point it at your camera's IP, and now you can see your camera from anywhere at http://your-public-ip:8080.

The problem? You just punched a hole in your firewall. That hole is visible to EVERY hacker, bot, and scanner on the internet — all 4+ billion IP addresses. Shodan.io (a search engine for internet-connected devices) indexes millions of exposed cameras within hours. Your camera — and potentially your entire home network — is now accessible to anyone who finds that open port.

🔴 إعادة توجيه المنافذ (خطير)

❌ Opens a hole in your firewall visible to the ENTIRE internet

❌ Bots scan for open ports 24/7 — they WILL find yours

❌ Camera login pages are often weak (default passwords)

❌ Camera firmware has known vulnerabilities

❌ Attackers can pivot from camera to your entire network

❌ Your public IP exposes your location

❌ No encryption by default on most cameras

❌ Shodan indexes your camera within hours

🟢 Tailscale (آمن)

✅ ZERO ports opened — firewall stays completely closed

✅ Nothing visible to internet scanners

✅ Only YOUR devices on YOUR Tailscale network can connect

✅ End-to-end WireGuard encryption

✅ Even if camera has vulnerabilities — it's not exposed

✅ Your IP address stays hidden

✅ Every connection is authenticated + encrypted

✅ Invisible to Shodan and all scanners

🚨 قصص رعب حقيقية

In 2020, researchers found 15,000+ كاميرا Hikvision مكشوفة with default passwords accessible on Shodan. In 2023, a family discovered their baby monitor was being watched by strangers — the camera was port-forwarded with the factory password. In 2021, a Ring camera hack allowed attackers to speak to a child through the speaker. إعادة توجيه منافذ كاميراتك تشبه ترك باب منزلك الأمامي مفتوحًا والأمل في ألا يدخل أحد.

🔓 إعادة توجيه المنافذ مقابل 🔒 Tailscale — مقارنة مرئية

❌ PORT FORWARDING (Anyone can try to connect)

🌐 Internet
4 مليارات عنوان IP
→
🔓 موجّه
المنفذ 8080 مفتوح
→
📹 كاميرا
Exposed!

✅ TAILSCALE (Only YOUR devices can connect)

📱 هاتفك
Tailscale app
→
🔒 نفق WireGuard
Encrypted, private
→
🍓 Pi/Server
Tailscale node
→
📹 كاميرا
Private LAN only
🤔 ما هو TAILSCALE؟

Tailscale — إنترنتك الخاص

🔒 Tailscale = شبكة خاصة تعمل في كل مكان

Tailscale is a mesh VPN built on WireGuard (أسرع بروتوكولات VPN وأكثرها أمانًا، وهو مدمج في نواة Linux). ينشئ شبكة خاصة ومشفّرة بين جميع أجهزتك — هاتفك وحاسوبك المحمول وخادمك المنزلي وRaspberry Pi — أينما كانت في العالم.

Unlike traditional VPNs (which route all traffic through one server), Tailscale creates direct, peer-to-peer connections between your devices. Your phone in a coffee shop connects directly to your home Raspberry Pi — encrypted, fast, and with zero configuration on your router.

🔒

WireGuard Encryption

تشفير بمستوى عسكري، مدمج في نواة Linux

🌐

Works Anywhere

Behind NATs, firewalls, cellular — doesn't matter

⚡

Zero Config Router

بلا إعادة توجيه منافذ أو قواعد جدار ناري. لا شيء.

🆓

Free for Personal Use

Up to 100 devices, 3 users — $0/month

🔓

عميل مفتوح المصدر

Client code is open source on GitHub (BSD license)

📱

جميع المنصات

Linux, Windows, macOS, iOS, Android, Raspberry Pi

🤝

نظير إلى نظير

Direct device-to-device connections, no relay

🔑

MagicDNS

الوصول إلى الأجهزة بالاسم (مثل "pi-camera") بدل عنوان IP

💡 Open Source Status

Tailscale's client is open source (github.com/tailscale/tailscale، ترخيص BSD). خادم التنسيق احتكاري، لكن يوجد بديل مفتوح المصدر بالكامل يُسمّى Headscale — a self-hosted Tailscale control server. For maximum independence: Tailscale client + Headscale server = 100% open source, 100% self-hosted, zero dependency on any company.

🏗️ THE ARCHITECTURE

كيف يعمل هذا الإعداد

📐 الإعداد الكامل — أين يوضع كل شيء

Here's the architecture for securely accessing home cameras from anywhere:

📹
Camera(s)
على شبكتك المحلية المنزلية
IP: 192.168.1.x
RTSP stream or web UI
🍓
Raspberry Pi / Linux PC
Runs Tailscale + Frigate/NVR
على الشبكة المحلية نفسها التي تتصل بها الكاميرات
يعمل «جسرًا» لك
🔒
Tailscale Network
WireGuard encrypted tunnel
Private mesh VPN
Connects all YOUR devices
📱💻
Your Devices
هاتف، حاسوب محمول، جهاز لوحي
Running Tailscale app
الوصول من أي مكان

Key insight: The cameras NEVER touch the internet. They sit on your local network. The Raspberry Pi (with Tailscale) is the ONLY device that bridges your private Tailscale network to your local camera network. Your router's firewall stays completely closed.

⚡ STEP-BY-STEP SETUP

دليل الإعداد الكامل

From zero to secure camera access in about 30 minutes.

1

📝 أنشئ حساب Tailscale

⏱️ 2 minutes
1
Go to tailscale.com and sign up (free account — up to 100 devices)
2
Sign in with Google, Microsoft, GitHub, or email
3
Your Tailnet (شبكة خاصة) تُنشأ تلقائيًا — ويكون اسمها مثل your-name.ts.net
💡 Free Tier

Tailscale's free plan includes 100 جهاز و3 مستخدمين — more than enough for a home setup. No credit card needed.

2

🍓 Install Tailscale on Your Home Server / Raspberry Pi

⏱️ 5 minutes

This is the machine on your home network that can see the cameras. It becomes the "bridge" between Tailscale and your cameras.

Install Tailscale on Raspberry Pi / Linux
# مثبّت بسطر واحد (يعمل على Raspberry Pi OS وUbuntu وDebian وMint) $ curl -fsSL https://tailscale.com/install.sh | sh # شغّل Tailscale وأجرِ المصادقة $ sudo tailscale up # سيظهر عنوان URL — افتحه في متصفحك للمصادقة # بعد المصادقة، يحصل Pi على عنوان Tailscale IP (مثل 100.x.y.z) # تحقّق من الاتصال: $ tailscale status # ينبغي أن ترى Pi الخاص بك في القائمة بعنوان IP مثل 100.x.y.z
🔑 فعّل موجّه الشبكة الفرعية (الخطوة الأساسية)

This is what lets your remote devices access the cameras' LOCAL IPs through Tailscale:

Enable subnet routing — access your entire home LAN
# فعّل تمرير IP (مطلوب لتوجيه الشبكات الفرعية) $ echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf $ echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf $ sudo sysctl -p /etc/sysctl.d/99-tailscale.conf # أعلن الشبكة الفرعية لشبكتك المنزلية # استبدل 192.168.1.0/24 بنطاق شبكتك المنزلية $ sudo tailscale up --advertise-routes=192.168.1.0/24 # انتقل الآن إلى لوحة إدارة Tailscale → الأجهزة → Pi الخاص بك # → عدّل إعدادات المسار → وافق على مسار الشبكة الفرعية

بعد الموافقة على مسار الشبكة الفرعية في لوحة إدارة Tailscale، يمكن لأي جهاز في شبكة Tailscale الوصول إلى أي عنوان IP في شبكتك المنزلية المحلية (192.168.1.x) — including your cameras — as if they were physically at home!

3

📱 ثبّت Tailscale على هاتفك وحاسوبك المحمول

⏱️ 3 minutes per device
📱
Android
Google Play Store → "Tailscale"
🍎
iOS
App Store → "Tailscale"
💻
Windows / macOS
tailscale.com/download
🐧
Linux
Same install script as above

Install the app, sign in with the same account, and enable "Use Tailscale subnets" (أو "Accept routes" على سطح المكتب). أصبح هاتفك أو حاسوبك المحمول الآن متصلًا بشبكة Tailscale الخاصة بك.

4

📹 ادخل إلى كاميراتك من أي مكان!

⏱️ Done!

الآن، من أي جهاز يعمل عليه Tailscale — حتى من فندق بدولة أخرى — يمكنك الوصول لكاميراتك بعناوين IP المنزلية المحلية:

الوصول إلى الكاميرات عن بُعد (كما لو كنت في المنزل!)
# في متصفح هاتفك (مع تفعيل Tailscale VPN): http://192.168.1.50 # واجهة الويب للكاميرا 1 http://192.168.1.51 # واجهة الويب للكاميرا 2 # عند تشغيل Frigate NVR على Pi: http://192.168.1.100:5000 # لوحة تحكم Frigate (كل الكاميرات) # أو باستخدام Tailscale MagicDNS (إن كان مفعّلًا): http://pi-camera:5000 # الوصول بالاسم، لا بعنوان IP! # تدفقات RTSP (لـ VLC أو تطبيقات الكاميرات): rtsp://192.168.1.50:554/stream1 # بث RTSP مباشر # 🎉 أنت تشاهد كاميرات منزلك من أي مكان في العالم # عبر نفق مشفّر — دون فتح أي منفذ على موجّهك!
🎉 That's It!

You're now accessing your cameras securely from anywhere. The traffic is encrypted with WireGuard. No ports are open on your router. No cloud service sees your video. Nobody except devices on YOUR Tailscale network can connect. You've achieved something that corporations pay thousands for — for $0.

🚀 متقدّم

أفضل إعداد: Frigate NVR + Tailscale

تسجيل كاميرات بالذكاء الاصطناعي + وصول آمن عن بُعد = التركيبة المثالية.

🧠 لماذا يُعد Frigate + Tailscale الإعداد المثالي

Frigate (frigate.video) هو مسجّل فيديو شبكي مفتوح المصدر (NVR) مزوّد بـ كشف الأجسام بالذكاء الاصطناعي. يعمل على Raspberry Pi أو أي حاسوب Linux، ويؤدي ما يلي:

• Records video from all your cameras 24/7
• Uses AI to detect people, cars, animals (محليًا — بلا سحابة!)
• Sends alerts only when it detects something interesting (not every tree branch)
• Stores recordings on a local hard drive
• Beautiful web dashboard to view all cameras

Combined with Tailscale, you get: كاميرات بالذكاء الاصطناعي + وصول آمن عن بُعد + دون اعتماد على السحابة + دون رسوم اشتراك. دون اشتراك Ring، أو رسوم Google Nest، أو وصول الشركات إلى فيديوهاتك.

Docker Compose: Frigate + Tailscale on Raspberry Pi
# docker-compose.yml version: "3.9" services: frigate: image: ghcr.io/blakeblackshear/frigate:stable container_name: frigate restart: unless-stopped privileged: true volumes: - ./config:/config - ./storage:/media/frigate - /etc/localtime:/etc/localtime:ro ports: - "5000:5000" # واجهة الويب - "8554:8554" # إعادة بث RTSP environment: - FRIGATE_RTSP_PASSWORD=YourCameraPassword # يُثبّت Tailscale على المضيف، لا داخل Docker # ليصبح Frigate على 192.168.1.100:5000 متاحًا عبر Tailscale # من أي مكان في العالم! # شغّل كل شيء: $ docker compose up -d # الوصول: http://192.168.1.100:5000 (محليًا) # أو: http://pi-camera:5000 (عبر Tailscale من أي مكان!)
🔓 استضافة ذاتية 100%

Headscale — الخيار المفتوح المصدر بالكامل

🔓 Headscale = خادم تحكّم Tailscale باستضافة ذاتية

Tailscale's client is open source, but their coordination server is proprietary. If you want zero dependency on Tailscale's company، استخدم Headscale — a fully open-source, self-hosted implementation of Tailscale's control server.

Tailscale client + Headscale server = 100% open source mesh VPN. لا شركة معنية. لا تُرسل بيانات لأحد. سيادة كاملة.

Install Headscale (self-hosted control server)
# نزّل Headscale وثبّته $ wget https://github.com/juanfont/headscale/releases/latest/download/headscale_linux_amd64 $ sudo mv headscale_linux_amd64 /usr/local/bin/headscale $ sudo chmod +x /usr/local/bin/headscale # أنشئ الإعدادات وشغّل $ sudo headscale serve # وصّل عملاء Tailscale بخادمك أنت بدلًا من خادم Tailscale: $ tailscale up --login-server https://your-headscale-server.com # لديك الآن شبكة VPN متداخلة مستضافة ذاتيًا بالكامل!
💡 When to Use Headscale

Use Tailscale's free tier if you just want it to work with zero effort. Use Headscale if you want 100% independence from any company, if you're running this for an organization, or if you're philosophically committed to full open source. Both use the same WireGuard encryption — equally secure.

🏠 SCENARIOS

What Can You Do With This Setup?

📹

Watch Cameras from Work

افتح Tailscale على هاتفك ← انتقل إلى عنوان IP الخاص بالكاميرا ← شاهد البث المباشر. لا توجد خدمة سحابية وسيطة. لا يستطيع قسم تقنية المعلومات لدى جهة عملك رؤية حركة بيانات الكاميرا (فهي مشفرة من طرف إلى طرف).

✈️

Check Cameras While Traveling

هل تقضي إجازة في بلد آخر؟ افتح Tailscale ← اتصل ← شاهد كاميرات منزلك كما لو كنت على أريكتك. يعمل عبر Wi-Fi الفندق وWi-Fi المطار وشبكة الهاتف — في كل مكان.

🔔

Get AI Alerts

Frigate detects a person in your driveway at 2 AM → sends notification to your phone → you open the camera feed instantly through Tailscale. Only alerts for people/cars, not every cat or shadow.

👨‍👩‍👧

Share with Family

أضف زوجك أو زوجتك إلى شبكة Tailscale الخاصة بك (تتيح الخطة المجانية 3 مستخدمين). سيتمكن أيضًا من مشاهدة الكاميرات من هاتفه. لا كلمات مرور مشتركة؛ لكل شخص وصول موثّق خاص به.

💾

الوصول إلى التسجيلات عن بُعد

Frigate records 24/7 to a local hard drive. Through Tailscale, you can browse past recordings from anywhere — scrub through the timeline, download clips, review events.

🖥️

الوصول إلى جميع خدمات المنزل

Tailscale doesn't just work for cameras — access your NAS, Nextcloud, Pi-hole dashboard, Home Assistant, Plex/Jellyfin, SSH — anything on your home network, securely from anywhere.

🔒 التحصين الأمني

Extra Security Tips for Camera Systems

🔑 1. غيّر دائمًا كلمات مرور الكاميرات الافتراضية

Factory passwords (admin/admin, admin/12345) are the #1 reason cameras get hacked. Even behind Tailscale, change EVERY camera's default password to something strong (12+ characters). This is defense in depth — multiple layers of security.

🔄 2. حدّث البرمجيات الثابتة للكاميرا

Camera manufacturers release firmware updates that fix security vulnerabilities. Check for updates every 3–6 months. Hikvision, Reolink, Dahua, and others have had critical vulnerabilities patched in updates. An unpatched camera is a liability.

🌐 3. Create a Separate Camera VLAN (Advanced)

For maximum isolation: put cameras on a separate network (VLAN) that has NO internet access. Cameras only need to talk to your NVR (Frigate), not to the internet. This way, even if a camera is compromised, it can't reach the internet or your other devices.

🔐 4. استخدم قوائم تحكّم الوصول ACL في Tailscale

In the Tailscale admin panel, set up ACLs to control which devices can access which services. Example: your phone can access cameras, but your work laptop cannot. Your spouse can view cameras but not SSH into the server.

🚫 5. احجب الميزات السحابية للكاميرا

تحاول كاميرات كثيرة «الاتصال بالوطن» — فترسل البيانات لخوادم المصنّع (في الصين أو الولايات المتحدة أو غيرهما). إن كنت تستخدم Frigate كمسجّل NVR، فلا تحتاج ميزات سحابة الكاميرا. احجب كل اتصال صادر بالإنترنت للكاميرات في الموجّه/الجدار الناري. ينبغي أن تتواصل الكاميرات مع Pi فقط.

💾 6. شفّر تخزين الكاميرات

If recordings are stored on an external drive, encrypt it (LUKS on Linux). If someone steals the Pi or the hard drive, they can't access your recordings without the encryption password.

«لَا تَجَسَّسُوا»
«ولا تجسسوا» — القرآن 49:12

Security cameras protect YOUR home and family. They must NEVER be used to spy on neighbors, record areas beyond your property, or invade anyone's privacy. In Islam, the privacy of others is sacred — even when technology makes it easy to violate. Secure your cameras ethically: protect your family, respect others.

🔒📹✨

Your Cameras. Your Network. Your Privacy.

You've built something powerful: AI-powered cameras accessible from anywhere in the world, through an encrypted tunnel, with zero ports open, zero cloud dependency, and zero subscription fees. No corporation sees your video. No hacker can reach your cameras. Your home security is truly YOURS.

🔒
Encrypted
🚫
لا منافذ مفتوحة
☁️
بلا سحابة
$0
Free forever

«وَأَلَنَّا لَهُ الْحَدِيدَ • أَنِ اعْمَلْ سَابِغَاتٍ»

«وأَلَنّا له الحديد — أن اعمل سابغات». Tailscale + Frigate = درعك الرقمي. حماية منزلك بدقة وأخلاق. ✨