Skip to content

Protect cloud-deployed proxies from GFW detection and probing by limiting access to specific geolocations | مسدود ساز اتصال خروجی پروکسی به مناطق جغرافیایی خاص

Notifications You must be signed in to change notification settings

elemen3/GFIProxyProtector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

GFWProxyProtector

به کمک این اسکریپت میتوانید ماژول xt_geoip را برای هسته ی لینوکس نصب و فعال کنید. این ماژول سیستم عامل را قادر به کنترل اتصالات شبکه بر اساس خصوصیات جغرافیایی می‌کند. با این روش دیگر اهمیتی ندارد از چه نرم افزار پروکسی یا وی پی ان بر روی سرور استفاده می‌کنید چون نهایتا تمام اتصالات توسط هسته ی سیستم عامل لینوکس و iptables بررسی خواهند شد.

برای مثال این اسکریپت پس از فعالسازی ماژول به کمک دستور زیر مانع اتصالات خروجی به سمت آی‌پی های ایرانی و چینی می‌شود:

iptables -A OUTPUT -m geoip --dst-cc IR,CN -j DROP

در صورت مسدودسازی آی‌پی های چینی، هرگونه تلاش اتصال به سرور از جانب این آی‌پی ها در فایل /var/log/kern.log با پیشوند GFW ثبت خواهد شد.

نحوه اجرا

git clone https://github.com/0xLem0nade/GFIProxyProtector.git
cd GFIProxyProtector
chmod +x run.sh
./run.sh

منابع

About

Protect cloud-deployed proxies from GFW detection and probing by limiting access to specific geolocations | مسدود ساز اتصال خروجی پروکسی به مناطق جغرافیایی خاص

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published