Open-source project
patterniha/MITM-DomainFronting avatar
patterniha/MITM-DomainFronting

MITM-DomainFronting: a trusted root certificate, a different server name, and a promise that it is not a tunnel

Receiving unencrypted data with MITM, Then send it with DomainFronting

2,983 stars225 forksBatchfileGPL-3.0

At a glance

What is it?
A method for reaching a short list of filtered services through Xray, built by intercepting the browser locally with a self-signed certificate and then presenting a different server name on the way out. The documentation is written in Persian, the repository is four files, its only executable content is a batch file that makes a certificate, and the author is explicit about both the limits and the cost.
Who is it for?
Use this if you need one of a short list of named services and you already run an Xray client, and read the first paragraph before anything else, because the author says plainly it is not a tunnel and does not give general internet access. Two things to weigh.
Can I use it commercially?
Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
Is it still maintained?
Yes. The repository last received commits 2 days ago.
What is it written in?
Mainly Batchfile, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • patterniha/MITM-DomainFronting2,983 ★ · +85
Star history
Repository2026-10-012026-11-24
patterniha/MITM-DomainFronting2.9k3k

85 Stars in the last 54 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The first paragraph says this is not a tunnel and covers a fixed list

The document opens by ruling out the interpretation most people would bring. It says this method is not intended to make your configuration alive or to give you full access to the internet, and that its purpose is instead to make certain specific services reachable directly, without needing a server or even a worker. Then it gives the list. At the date it carries, the method is reported to reach YouTube, Instagram, WhatsApp, Facebook, Reddit and some sites that sit behind a filtering layer. The author adds that when any further service becomes reachable this way the file will be updated. So this is a targeted reachability method with a named and maintained target list, not a general proxy, and the second sentence is the one that tells you whether it is useful to you.

The mechanism is a local certificate and a different name on the way out

The name of the repository is the mechanism, and the file spells it out in two clauses. First the identity of the real server is forged, so that unencrypted data is received from the browser. Then that data is sent to the real server with a fake server name indication. Read together: the browser is made to believe it is talking to the service it intends to reach, which is achieved by trusting a certificate the operator generated, and the outbound connection then carries a different name than the one the browser asked for. The second half is what the technique is named for. The practical consequence for the reader is that the trust relationship has moved onto the local machine, which is the cost the rest of the document keeps returning to.

Installing a trusted root certificate is the price, and the file says so three times

The setup requires generating a personal certificate with a batch file that produces two files, a certificate and a private key. That certificate then has to be introduced to the system as a trusted root, either to the whole operating system or to one specific browser, and the file describes both routes at the level of which store the certificate lands in. What it does repeatedly, in three separate places, is the warning: use only your own certificate, never use somebody else's, and never give your private key to anyone. The repetition is justified by what has been asked of the reader. A certificate trusted at the root level of a machine is trusted to issue further certificates, and any program on that machine that relies on the system trust store now has a certificate it will accept without asking. Removing the method means untrusting that certificate.

Two platforms, two different third-party clients, one configuration file

There is no executable of this project's own to install. The Windows path uses a separate client project, and the Android path uses a different one from the same author, and both are named with their own release pages. The configuration is a single JSON file that gets imported into whichever client is in use. Two client-specific settings are called out as required rather than optional. On Windows the core type has to be set to the Xray core and the local proxy port field has to be left empty. On Android a hardware-accelerated tunnel feature has to be enabled and the default port left alone. So the method is not self-contained: it is a configuration file whose two host applications each need one specific setting before the same file will do anything.

On an unrooted phone only browsers are covered, and the file repeats that limit

The Android section ends with a constraint that reappears in the notes section afterwards, so it is stated twice. Without root, the method works through browsers only, and standalone applications generally do not support it. The file gives the concrete consequence: for anything inside another application, such as a meeting tool or a file storage service, you have to use the browser instead. The author also notes that the certificate installation steps vary slightly between phone models, which is an admission that the path is not uniform across the hardware it claims to support. The project claims Windows, Linux and Mac as well as Android without root, and it says the initial configuration is lengthy, with only a simple on and off needed afterwards.

Versions are bare integers and the last three landed within ten days

The release list uses plain incrementing numbers with no major, minor or patch structure: twenty one, twenty two and twenty three. The dates are dense. The first was published on 2026-05-23, the second about a day and a half later, and the third a little over a day after that, with the last push to the default branch dated 2026-07-28, roughly two months after the newest release. An integer scheme means a script cannot tell a feature from a fix, and it means the ordering of two releases is carried entirely by their dates. It also means there is no version to pin that carries any information about content.

The repository is four files and its only executable content is a certificate generator

The top level holds a gitignore, a licence, the readme and a configuration directory. There is no source tree, and the project's recorded primary language is a batch file, which is consistent with the certificate generator being the one piece of executable content the repository carries. The origin story is also in the file: the author first wrote this in a separate repository of their own, and it was then added into the Xray core through work done on an issue in that project. So the method now ships inside a widely used core and can be driven by an ordinary configuration, which is why this repository is a wrapper rather than the implementation. The document also asks for support by name, having spent effort first writing the original code and then getting it into the core.

Editorial conclusion

Use this if you need one of a short list of named services and you already run an Xray client, and read the first paragraph before anything else, because the author says plainly it is not a tunnel and does not give general internet access. Two things to weigh. The setup asks you to install a certificate as a trusted root, which is the real cost and is not reversible by deleting a file. And on an unrooted phone the method reaches browsers only, so anything you do inside another application will not go through it. The certificate rules are worth following literally, since the documentation repeats them three times for a reason.

Frequently asked questions

What is patterniha/MITM-DomainFronting?

It is a method for reaching a short list of filtered services through the Xray core. The browser is intercepted locally with a self-signed certificate the operator generates, and the outbound connection then presents a different server name. The author states it is not a tunnel and does not provide general internet access.

Which services does MITM-DomainFronting reach?

At the date the documentation carries, it reports access to YouTube, Instagram, WhatsApp, Facebook, Reddit and some sites behind a filtering layer. The author says the file will be updated when further services become reachable this way.

What certificate do I need for MITM-DomainFronting?

Your own, generated with the certificate generator the file ships, which produces a certificate and a private key. The documentation repeats three times that you must not take a certificate from anyone else and must not give your private key to anyone, and the certificate must be installed as a trusted root in the operating system or in one browser.

Does MITM-DomainFronting work in apps on an unrooted Android phone?

No. The documentation states that without root the method works in browsers only, and that standalone applications generally do not support it, so anything you need inside another application has to be done through the browser instead. It also notes that the certificate installation steps vary between phone models.

What does MITM-DomainFronting need installed?

No executable of its own. It needs a separate third-party client, a different one on Windows and one on Android, plus a single imported JSON configuration. Each client also needs one specific setting changed before the configuration will do anything.

Official sources

  1. Issues
  2. License: GPL-3.0
  3. patterniha/MITM-DomainFronting on GitHub
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/patterniha-mitm-domainfronting.svg)](https://hysenlabs.com/projects/patterniha-mitm-domainfronting)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/patterniha-mitm-domainfronting.svg)](https://hysenlabs.com/projects/patterniha-mitm-domainfronting)

Was this useful?