# mekotofeuka/mtproto_fix_by_meko architecture

> Architecture diagram of the GitHub repository mekotofeuka/mtproto_fix_by_meko, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mekotofeuka/mtproto_fix_by_meko
- Repository: https://github.com/mekotofeuka/mtproto_fix_by_meko

## Overview

MEKO is a server-side VPN and proxy manager, centered on installing and operating MTProto fixes and proxy services through an interactive menu or automated installer. The main workflow is administrator → installation/menu → fix or proxy configuration → running server service; the README also describes VPN node/panel operations, server optimization, and SNI/PQ checks. Several shell subsystems are represented by their exact enclosing directories because their source was not sampled; relationships between them are therefore shown only where the README documents them.

Main entry points: [`main.sh`](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/main.sh) (Main menu), [`proxys/proxymenu.sh`](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/proxymenu.sh) (Proxy management), [`install.sh`](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/install.sh) (Installer), [`proxy_checker.py`](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxy_checker.py) (SNI/PQ checker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and setup"]
  node_installer["Installer<br/>[install.sh]"]
  node_auto_install["Automated setup<br/>[install_auto.sh]"]
  node_main_menu["Main menu<br/>[main.sh]"]
end

subgraph group_fix["Fix and diagnostics"]
  node_fix_rules["MTProto fix rules<br/>[rules.sh]"]
  node_fix_security["Fix security<br/>[security.sh]"]
  node_sni_checker["SNI/PQ checker<br/>[proxy_checker.py]"]
end

subgraph group_services["Proxy services"]
  node_proxy_menu["Proxy management<br/>[proxymenu.sh]"]
  node_telemt["Telemt management<br/>[telemt1.sh]"]
  node_mtg["MTG management<br/>[mtgv2_1.sh]"]
  node_zig["MTProto.zig management<br/>[mtprotozig1.sh]"]
  node_caddy["Caddy PQ proxy<br/>[caddy_pq.sh]"]
end

subgraph group_operations["Server operations"]
  node_vpn_installer["VPN setup<br/>[install_vpn.sh]"]
  node_remote_nodes["Remote node management<br/>[node_manager.sh]"]
  node_server_tuning["Server optimization<br/>[shaping.sh]"]
  node_backup["Panel backup<br/>[backup_panel.sh]"]
end

node_admin(("Administrator"))
node_openssl["OpenSSL"]

node_admin -->|"starts setup"| node_installer
node_admin -->|"opens menu"| node_main_menu
node_installer -->|"supports automation"| node_auto_install
node_main_menu -->|"applies fix"| node_fix_rules
node_main_menu -->|"manages proxies"| node_proxy_menu
node_main_menu -.->|"offers SNI check"| node_sni_checker
node_main_menu -->|"offers optimization"| node_server_tuning
node_main_menu -->|"manages VPN"| node_vpn_installer
node_proxy_menu -.->|"manages Telemt"| node_telemt
node_proxy_menu -.->|"manages MTG"| node_mtg
node_proxy_menu -.->|"manages MTProto.zig"| node_zig
node_proxy_menu -.->|"offers PQ proxy"| node_caddy
node_main_menu -->|"manages nodes"| node_remote_nodes
node_main_menu -.->|"backs up panels"| node_backup
node_sni_checker -->|"runs TLS checks"| node_openssl

click node_installer "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/install.sh"
click node_auto_install "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/install_auto.sh"
click node_main_menu "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/main.sh"
click node_fix_rules "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/data/rules.sh"
click node_fix_security "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/data/security.sh"
click node_sni_checker "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxy_checker.py"
click node_proxy_menu "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/proxymenu.sh"
click node_telemt "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/telemt1.sh"
click node_mtg "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/mtgv2_1.sh"
click node_zig "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/mtprotozig1.sh"
click node_caddy "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/caddy_pq.sh"
click node_vpn_installer "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/install_vpn.sh"
click node_remote_nodes "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/remote_ctl/node_manager.sh"
click node_server_tuning "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/data/shaping.sh"
click node_backup "https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/data/backup_panel.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_installer,node_auto_install,node_main_menu toneBlue
class node_fix_rules,node_fix_security,node_sni_checker toneAmber
class node_proxy_menu,node_telemt,node_mtg,node_zig,node_caddy toneMint
class node_vpn_installer,node_remote_nodes,node_server_tuning,node_backup toneRose
class node_admin,node_openssl toneIndigo
```

## Components

### Entry and setup

- [Installer](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/install.sh): `install.sh`
- [Automated setup](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/install_auto.sh): `install_auto.sh`
- [Main menu](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/main.sh): `main.sh`

### Fix and diagnostics

- [MTProto fix rules](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/data/rules.sh): `data/rules.sh`
- [Fix security](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/data/security.sh): `data/security.sh`
- [SNI/PQ checker](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxy_checker.py): `proxy_checker.py`

### Proxy services

- [Proxy management](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/proxymenu.sh): `proxys/proxymenu.sh`
- [Telemt management](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/telemt1.sh): `proxys/telemt1.sh`
- [MTG management](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/mtgv2_1.sh): `proxys/mtgv2_1.sh`
- [MTProto.zig management](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/mtprotozig1.sh): `proxys/mtprotozig1.sh`
- [Caddy PQ proxy](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/proxys/caddy_pq.sh): `proxys/caddy_pq.sh`

### Server operations

- [VPN setup](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/install_vpn.sh): `install_vpn.sh`
- [Remote node management](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/remote_ctl/node_manager.sh): `remote_ctl/node_manager.sh`
- [Server optimization](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/data/shaping.sh): `data/shaping.sh`
- [Panel backup](https://github.com/mekotofeuka/mtproto_fix_by_meko/blob/main/data/backup_panel.sh): `data/backup_panel.sh`

### Other components

- **Administrator**
- **OpenSSL**

## Connections

- Administrator → Installer: starts setup (evidence: `README.md`)
- Administrator → Main menu: opens menu (evidence: `README.md`)
- Installer → Automated setup: supports automation (evidence: `README.md`)
- Main menu → MTProto fix rules: applies fix (evidence: `README.md`)
- Main menu → Proxy management: manages proxies (evidence: `README.md`)
- Main menu → SNI/PQ checker: offers SNI check
- Main menu → Server optimization: offers optimization (evidence: `README.md`)
- Main menu → VPN setup: manages VPN (evidence: `README.md`)
- Proxy management → Telemt management: manages Telemt
- Proxy management → MTG management: manages MTG
- Proxy management → MTProto.zig management: manages MTProto.zig
- Proxy management → Caddy PQ proxy: offers PQ proxy
- Main menu → Remote node management: manages nodes (evidence: `README.md`)
- Main menu → Panel backup: backs up panels
- SNI/PQ checker → OpenSSL: runs TLS checks (evidence: `proxy_checker.py`)
