Coder Social home page Coder Social logo

wlfvpn / gfiproxyprotector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redpilllabs/gfiproxyprotector

0.0 0.0 0.0 31 KB

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

Shell 83.35% Perl 16.65%

gfiproxyprotector's Introduction

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

منابع

gfiproxyprotector's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.