Giter VIP home page Giter VIP logo

mahsang's Introduction

MahsaNG

What is the idea

  • MahsaNG is client-side of project Segaro_Dream
  • MahsaNG is a decentralized non-profit vpn platform in which everyone can share their configs to help others
  • Donated configs continuously monitored and redistributed to users based on clients feedback in each subnet-ip
  • Our goal is to make a superior vpn platform which is free,stable,scalable,distributed & filter-resistant

Difference to v2rayNG

  • vpn providers can use ADS service to make income instead of direct sell
  • everyone can share their unused vps bandwidth to help others
  • prevent free configs to be stolen and reselled
  • Automatic report for refining config collection at central servers
  • DNS over HTTPS
  • TLS Fragmentor
  • HTTP & WS fake Host
  • Rotating Configs
  • Random Subdomain
  • & much more ...

build from source

  • the code can NOT build standalone apk directly from source
  • some parts of source used for encrypting config is closed to prevent leakage & thus reselling of donated configs
  • classes responsible for authentication with mahsa server is also closed to prevent abusing of mahsa server
  • all other technology used to bypass filtering is willingly published including but not limited to Youtube Direct , TLS & HTTPS & DoH fragmentor & fake Host

build V2rayNG from source

  • you need to place libv2ray.aar in v2rayng/apps/libs folder
  • you can compile it yourself from AndroidLibXrayLite after installing Go & Go mobile
  • or you can download v1.5 from here
  • or find latest libv2ray.aar link in issues section

mahsang's People

Contributors

2dust avatar alirezaivaz avatar amir-yazdanmanesh avatar certmusashi avatar gfw-knocker avatar hadi-norouzi avatar justlovediaodiao avatar pouriaksrvi avatar solokot avatar user09283 avatar ysy950803 avatar yuhan6665 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mahsang's Issues

Question

Hello.
Can we add our config?
Need working IP or does it not matter whether it is working or banned?
Is there any explanation for making a server with CDN that will work with your app?

Hidden Ip in mahsaNG

سلام خدمت دولوپر های عزیز ircf و ...

مطمئن نیستم ولی این قرار بود کانفیک رو مخفی کنه یا حداقل ایپیش رو نشون نده که ساندیس های عزیز نیان فیلتر کنن

سوال درمورد اپلیکیشن و اجرا

سلام.
از دیروز یه مقدار من اختلال حس میکنم روی اپلیکیشن.
پروکسی مودش درست اتصال نداره، کانفیگی که میزنم انگار کل خطم تا یکی‌دو دیقه میپره اما با برنامه v2rayf که فرگمنت داره اونم، اینجور نیست.
شما هم این مشکلو دارید؟ راه حل چیه؟
تنظیمات فرگمنتم هم ایپی تمیز و تست شدس، با فرگمنت بالای ۱۰۰ (MCI)

Change Fragment Function

با تجربه ای که از استفاده از برنامه v2rayf (توسط rrouzbeh) داشتم، به نظرم باید کارکرد سیستم فرگمنت برنامه تغییر کند:

۱- فرگمنت و ایپی‌ تمیز به صورت دو قابلیت مجزا در برنامه باشند. کاربر بتواند هر کدام را میخواهد جداگانه فعال کند.
کاربر ممکن است ایپی‌ تمیز داشته باشد و در کانفیگ خود قرار داشته باشد و فقط بخواهد از قابلیت فرگمنت با این ایپی استفاده کند.
این قابلیت به خصوص وقتی سازنده لینک subscription داشته باشد، به کار می اید. یعنی سازنده، ایپی تمیزهای کانفیگ ها را آپدیت میکند و کاربر با زدن به روزرسانی subscription آن ایپی ها رو دریافت میکند, پس فقط به فرگمنت برنامه نیاز دارد.

۲- زمانی که قابلیت فرگمت و ایپی تمیز فعال است، اتصال از طریق sni کانفیگ انجام شود نه address.
من کانفیگ پشت کلودفلیر را در برنامه قرار دادم. با نسخه کنونی ، وقتی آدرس کانفیگ، یک ایپی تمیز باشد، کار نمیکند. فقط زمانی کار میکند که در آدرس کانفیگ، sni ان را قرار دهم. به نظرم این باید اصلاح شود و برنامه به طور پیشفرض وقتی فرگمنت و ایپی تمیز فعال هستند، به sni متصل شود نه ادرس.

۳- قابلیت تست (real delay all configuration)، با فرگمت فعال صورت بگیرد.
الان وقتی از کانفیگ ها تست میگیرم همه پینگ -1 میدهند، در صورتی که سالم هستند و در برنامه کار میکنند.

۴- قابلیت دریافت آیپی تمیز از یک لیست در یک لینک.
کاربران بتوانند ایپی تمیز ها رو از لیستی که سازنده ایجاد کرده، دریافت کنند. قالب لیست هم لیست vfarid
https://github.com/vfarid/cf-clean-ips/blob/main/list.txt
باشد.

درخواست اضافه کردن fake host به x-ray

آقا این fake host که برای دور زدن این محدودیت جدید نوشتی خیلی خوب کار میکنه، در صورت امکان به همراه آموزش به هسته x-ray اضافه ش کن که همه برنامه ها بتونن ازش استفاده کنند.
ممنون

مشکل در سابسکریپشن نسخه جنریک

من نسخه جنریک رو در اندروید تی‌وی نصب کردم. خیلی خوب کار میکنه
ولی وقتی لینک سابسکریپشن بهش میدم نمیتونه آپدیت کنه و ارور میده
مشکل از نت و یا لینک نیست
چون همون لینک با همون نت توی نسخه اندروید گوشی خیلی خوب اپدیت میده
میشه بررسی کنید مشکل از کجاست
ممنون

سرور و اسکریپت مناسب

با سلام
من چندین هاست تهیه کردم و روی اقدام به نصب اسکریپت سنایی کردم
مشکل اینجاست که بسیار کند هستند
مشخصات آخرین هاست :
Cpu : 2
Ram: 4
Os:ubuntu 20.04 lts
لطفاً من را راهنمایی کنید
من می خواهم با ساخت سرور و در اختیار گذاشتن کانفیگ سهم کوچکی در این پروژه داشته باشم

بهترین تنظیمات فرگمنت برای مبین نت

سلام دوستان تنظیمات فرگمنت مناسب مبین نت رو میخواستم حالت های مختلف رو تست کردم ولی متأسفانه سرعت آپلود پایینه اگر کسی اعداد مناسب رو داره اینجا بفرسته همه استفاده کنن

V3.0 Start Services Failure

After the v3.0 update. nothing works. I tested all IPSs and all configurations possible but the service won't start and it returns: Start Services Failure. Nothing will connect.

Https config

با عرض درود و خسته نباشید، اپلیکیشن خوبی هست واقعا اینکه میتونی تنظیمات فرگمنت رو خودت تنظیم کنی. یکم جای کار داره و با in progress بودنش هم همخونی داره.
فقط یه نکته ای که هست، اینکه کانفیگ یوتیوب اصلا حواب نمیده روی گوشی من. فایل پایتونش بد نیست اما داخل اپلیکیشن MahsaNG اصلا جواب نمیده چون یه گمونم ایپیش فیلتره.
کاش میشد بذارید ایپی این کانفیگو ست کنیم.
ممنون.

Add "export manual configs" function

قابلیت گرفتن خروجی کانفیگ ها برای سازندگان ضروری است.
لطفا مجددا این قابلیت رو به برنامه برگردونید.
برای جلوگیری از‌ نشت کانفیگ های داخلی برنامه، قابلیت خروجی گرفتن کانفیگ ها، فقط کانفیگ هایی که به صورت دستی یا لینک اشتراک اضافه شده اند را لحاظ کند.

Adding `VPN Kill Switch` as a security feature

Suggest adding a VPN Kill Switch as a security feature.


PngItem_7712480 VPN Kill Switch
Once the VPN is turned on, prevent leaks by blocking traffic from going outside the VPN, including during connection loss.

PngItem_7712480 Advanced Kill Switch
Prevent leaks by blocking any traffic from going outside the VPN, even when the VPN is turned off.

PngItem_7712480 App Kill Switch
Applications to kill if a VPN connection unexpectedly drops.
🔘 Google Chrome
🔘 Whatsapp
🔘 Bank
Add more applications


This would automatically disconnect the device from the internet if the VPN connection is lost, dropping out and reconnecting when the VPN connection is restored. Implementing this feature protects the user's public IP address from being accidentally exposed and prevents any browsing data from being sent over an unsecured internet connection.

This is particularly crucial when users are browsing sensitive domains such as online banking or trading.
Additionally, it helps avoid the IP being blocked by these types of services in case of switching IP due to the connection dropout.

Many thanks in advance!

نسخه ی لینوکس

سلام خسته نباشید. بابت ساخت این برنامه ازتون سپاسگزارم. با توجه به استفاده کم کاربران رایانه های رو میزی از سیستم عامل لینوکس، فیلترشکن برای این سیستم عامل به سختی پیدا میشه. اگه ممکنه برای برنامه ی خوبتون یک نسخه دسکتاپ لینوکس با رابط کاربری قرار بدین. ممنون.

Develop MahsaNG for IOS

سلام. اگه مایل باشید میتونم کمک کنم که اپ رو روی آی او اس هم بزنیم.

Obscurity doesn't provide security

متن بسته نگه داشتن قسمتی از برنامه باعث افزایش امنیت نیست و برای کاربران ریسک امنیتی ایجاد میکنه
باید راه حل دیگه ای برای کپی نشدن کانفیگ ها پیدا کنید

نمایش تبلیغ ادموب برای اهداکنندگان

سلام. مساله‌ای که برای اهدا کانفیگ وجود داره اینه که الان اپ مهسا در گوکل پلی هست و همه از همه جای دنیا میتونن از این اپ رایگان استفاده کنند. خب این به طور کلی خوبه ولی بعضی از خیرین شاید بخوان پولی که هزینه میکنن فقط برای ایرانی ها قابل اسفاده باشه. (به خاطر محدودیت بودجه)
نمیگم اپ رو برای خارجی ها ببندین! ولی بهترین راهکار همینه که اهداکننده بتونه تبلیغ ادموب رو در اپ نمایش بده تا با استفاده همه‌ی کاربرها، اعم از ایرانی یا خارجی هزینه‌هاش رو تامین کنه(قبلا اضافه شدن این قابلیت در گروه تلگرام مطرح شده). علاوه بر این، حتما اهداکننده های بیشتری حتی خارج از ایران هم، کانفیگ ارسال میکنند. و با افزایش کاربرها دغدغه ی افزایش ظرفیت رو نخواهیم داشت..
به نظرم پیاده سازی این فیچر کار سختی نیست! نظرتون چیه؟

add openvpn subscribe

It's blocked by the firewall.

engage.cloudflareclient.com
162.159.192.1
2606:4700:d0::a29f:c001

DNS pollution

connectivity.cloudflareclient.com
zero-trust-client.cloudflareclient.com




other

overlay networking

overlay networking since each node is both a server and a client
overlay networking to create a direct encrypted tunnel between two nodes even if they’re both behind firewalls. Each node doesn’t even need to know the other’s IP address before starting the connection.

P2P

idea

ActivityPub, Fediverse, CDN, Website, Router, Android, iOS, Linux, BSD, All use overlay networking

Allow users in censored countries to use your network connection to access the network.

Help people in censored countries bypass censorship by running the bridge: "Domain generation algorithm" "Fast flux"

Request for Source Code of MahsaNG

I noticed that this program is released under the terms of the GNU General Public License (GPL).

I am now requesting the complete corresponding source code for the program called MahsaNG. As it is published under the GPL license, I am entitled to have the source code, which could be used to reproduce the latest release of the software, titled 'v8.0-(1403-3-18)'.

Direct Iran IPs an addresses

سلام

یکی از راه‌هایی که موجب فیلتر شدن کانفیگ‌ها میشه، اون هست که از یک IP خارجی به سایت هایی که صرفا به درد ایرانی ها میخورد، درخواست زیادی می‌رود. این فیلترچی رو به این نتیجه میرسونه که اون IP برای فیلترشکن داره استفاده میشه.
راه حلش این هست که در سرور، IP های ایران در خروجی بلاک شوند و خیلی از سرورها این کار رو انجام می‌دهند. ولی اگر سروراین کار رو انجام نده، شما میتونید در کلاینت این کار رو انجام بدهید.
شما می‌توانید iran.dat را از https://github.com/MasterKia/iran-hosted-domains در کلاینت داشته باشید و custom rule های Direct کردن ترافیک مربوط به آدرس های ایران رو به صورت پیشفرض در کلاینت قرار دهید.
مزیت دیگری که البته اهمیت کمتری دارد، کم شدن ۱۰ درصدی ترافیک سرورها و همچنین بهبود تجربه کاربر برای ترافیک‌های ایران است.

رمزنگاری کانفیگ‌ها

سلام و تشکر برای تلاش‌هاتون
چند وقت پیش امین انواری برنامه v2rayng رو ویرایش کرده بودند و به اسم برنامه sansorchi تو کانال تلگرامشون منتشر کرده بودن. همه چیز خوب پیش می‌رفت تا اینکه عده‌ای اومدن کانفیگ‌های برنامه رو استخراج کردن و تو تلگرام پخش شد که باعث فیلترشدن سرورهاش شد. پیشنهاد میدم از همین ابتدا این موضوع رو هم در نظر بگیرید تا اتفاقی مشابه رخ نده.
لینک اپ سانسورچی در کانال تلگرامشون
https://t.me/ml9Qk0OUpkNzFl/512
توییتر امین انواری
https://twitter.com/AminAnvary

Suggestions to improve WARP

@GFW-knocker

Here are some suggestions to improve WARP in the outbounds:


In the IPV6 section, consider adding a subnet with a prefix length.

"XXXXXXXXXXXXXXXX/128" // Place IPV6 Here

Example

  "address": [
          "172.16.0.2/32",
          "2606:4800:110:8a79:a425:5c48:2e2e:16a7/128" // Place IPV6 Here
        ],

/128 for Individual Hosts:

Advantage: Provides a single, unique address for a specific host/device.
Consideration: No room for additional hosts on the same subnet. It's a point-to-point connection.
Use Case: Appropriate for scenarios where each IPv6 address corresponds to a specific, dedicated device.

Larger Subnet (e.g., /64):

Advantage: Allows for multiple hosts within the same subnet.
Consideration: Subnets smaller than /64 are generally not recommended due to IPv6 design principles.
Use Case: Suitable for scenarios where you have multiple devices on the same network segment.


Consider adding reserved field in a WireGuard configuration, such as:

"reserved": ["X", "X", "X"], // Place Reserved Here

Example

"reserved": [
    224,
    83,
    255
]

Advantages:

Conflict Avoidance: The reserved values help prevent conflicts and unintended use of specific IP addresses that might have special meanings or functions.
Future-Proofing: By reserving certain values, the configuration is prepared for potential future changes or additions to the network without disrupting existing assignments.

Here an example of the complete WireGuard Outbound

// WARP IPv4 Outbound
{
  "protocol": "freedom",
  "settings": {
    "domainStrategy": "UseIPv4"
  },
  "proxySettings": {
    "tag": "wireguard"
  },
  "tag": "warp-IPv4"
},
// WARP IPv6 Outbound
{
  "protocol": "freedom",
  "settings": {
    "domainStrategy": "UseIPv6"
  },
  "proxySettings": {
    "tag": "wireguard"
  },
  "tag": "warp-IPv6"
},
// WireGuard Outbound
{
  "protocol": "wireguard",
  "settings": {
    "secretKey": "XXXXXXXXXXXXXXXXXXXXX", // Place WireGuard Secret Key
    "address": [
      "172.16.0.2/32",
      "XXXXXXXXXXXXXXXX/128" // Place IPV6 Here
    ],
    "workers": 2,
    "domainStrategy": "ForceIP",
    "peers": [
      {
        "publicKey": "XXXXXXXXXXXXXXXXXXXXX", // Place WireGuard Public Key Here
        "allowedIPs": [
          "0.0.0.0/0",
          "::/0"
        ],
        "endpoint": "engage.cloudflareclient.com:2408",
        "keepAlive": 0
      }
    ],
    "reserved": ["X", "X", "X"], // Place Reserved Here
    "mtu": 1280,
    "domainStrategy": "ForceIPv4"
  },
  "tag": "wireguard"
}

P.S.: I understand that the phrase "Thank you" might be a rare sentiment and an uncommon commodity in your department, but we want you to know that we genuinely appreciate your efforts. Even those who use the free internet every day without knowing the risks you take by compromising your own safety and security to ensure we can connect to free Internet.
Thank you for shouldering these burdens with strength and dedication.

"When injustice becomes law, resistance becomes duty."

Custom Rules - Direct URL or IP

سلام، خسته نباشید و خدا قوت
بخش Setting - Routing - Custom Rules - Direct URL or IP اصلا کار نمیده
چه به صورت دستی و چه به صورت اینکه فایل بهش asset کنی و بعد ext:file را بهش بدی
برای bypass کردن سایت‌های داخلی واقعا این قابلیت خیلی کمک کننده است
ممنون

how can i install this app into my router to work as a server

在提出问题前请先自行排除服务器端问题,同时也请通过搜索确认是否有人提出过相同问题。
i don't know how to install this app into my router to work even as a server to my remote devices...
Will you have a plan to make this happen? Thanks for your brilliant work.

预期行为

描述你认为应该发生什么

实际行为

描述实际发生了什么

复现方法

日志信息

通过adb logcat -s com.v2ray.ang GoLog V2rayConfigUtilGoLog Main获取日志。请自行删减日志中可能出现的敏感信息。

如果问题可重现,建议先执行adb logcat -c清空系统日志再执行上述命令,再操作重现问题。

在这里粘贴日志

环境信息

额外信息(可选)

برنامه سریعا پس از اجرا متوقف میشه

نسخه ۷ برنامه توو اندروید ۱۴ بعد از ضربه زدن رو نماد برنامه بلافاصله متوقف میشه،
در ضمن لطفا توضیحات پیش‌نوشته ارسال خطا گیتهاب رو انگلیسی کنید بتونیم بخونیم

پیشنهاد پروژه موازی در ربات تلگرام

من یه پیشنهاد دارم که پایه ش مثل همین پروژه است.
ربات های تلگرام زیادی میبینم که کانالها میذارن و برای اینکه باش کار کنیم کاربر را مجبور میکنند در یک یا چند کانال عضو بشن تا ربات کار کنه براشون و ربات چک میکنه که حتما عضو شده باشند. طبیعتا این یه نوع تبلیغه و پول هم میگیرن.

به نظر من رباتی بسازید که کاربر در ازای عضویت در کانال/کانالهای خاصی ، یک کانفیگ بسیار عالی (ترجیحا ریلیتی) دریافت کنه و اعتبار این کانفیگ 24 ساعت باشه و بعدش از طریق سرور یا از طریق تغییر uuid یا key یا ... قطع بشه و کاربر مجددا روزی یکبار برای دریافت کانفیگ خوب مراجعه کنه به ربات و عضویتش ادامه دار باشه.

مواقعی که کانفیگ زمانش تموم میشه هم مشکلی نیست خود تلگرام پراکسی داره و کانفیگهای رایگان زیاد هست و خود اپلیکیشن مهسا هست و خلاصه همه اینها در حد اینکه یه لحظه با ربات بتونن کار کنند جواب میده.
کانالهایی که من میبینم تو رباتها تبلیغ میدن هم اکثرا پولدار هستند مثلا کانال کریپتو هست و پکیچ فروشی و...

پول تبلیغات هم صرف خرید سرور یا کانفیگ از افراد دارای سرور و... بشه.
اگه بخواین خودتون واسطه پول نباشید هم میتونید به تبلیغ دهنده بگید مستقیم مبلغ را برای شخصی که سرور داره بفرسته.
.
در حالت پیشرفته تر نمیدونم چقدر از نظر فنی امکانش هست ولی ایده اینه که از طریق خود اپ مهسا ، ارتباط با ربات داخل تلگرام برقرار بشه و عضویت کانالها تایید بشه و کانفیگ خوب داخل اپ بیاد مثل وضعیت فعلی..

در وضعیت پیشرفته تر فالو کردن اکانت خاصی از اینستاگرم ، بازدید از صفحه خاصی از وب به مدت مشخص (که همین الان چندین سایت هست براش) ، بازدید و ویو زدن به 10 پست آخر یک کانال تلگرام ، دیدن یک ویدیو یوتیوب همراه تبلیغاتش و... میتونه اضافه بشه.

xray جدید ورژن 8

دورود. xray جدید ورژن 8 رو میشه به صورت جداگونه دانلود کرد یا build گرفت؟

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.