Railway

Deploy Teleproxy

Self-hosted Telegram MTProxy with advanced Fake-TLS and anti-DPI features

Deploy Teleproxy

Just deployed

/opt/teleproxy/data

Deploy and Host Teleproxy on Railway

High-performance Telegram MTProto proxy with Fake-TLS, dynamic record sizing, and strong DPI resistance. A modern self-hosted alternative to the official MTProxy.

Telegrm proxy

About Hosting Teleproxy

Teleproxy is a modern, high-performance implementation of Telegram's MTProto proxy protocol. Unlike the official MTProxy, Teleproxy offers significantly better resistance against Deep Packet Inspection (DPI) through its advanced Fake-TLS implementation, dynamic record sizing, and anti-replay protection.

This Railway template deploys Teleproxy as a lightweight container with sensible defaults. It supports automatic secret generation, Fake-TLS camouflage using a chosen domain, advertisement tags via @MTProxybot, and multiple worker processes for better performance. The container also includes built-in Prometheus metrics for monitoring.

Hosting Teleproxy on Railway allows you to run a private, censorship-resistant Telegram proxy without managing a VPS or dealing with complex server configuration.

Common Use Cases

  • Self-hosted Telegram proxy with strong anti-DPI capabilities
  • Private MTProxy for personal or group use in restricted networks
  • High-performance alternative to the official Telegram MTProxy
  • Proxy with Fake-TLS to bypass advanced censorship systems
  • Monetizable proxy using advertisement tag from @MTProxybot

Dependencies for Teleproxy Hosting

This template uses the official Teleproxy Docker image:

ghcr.io/teleproxy/teleproxy:latest

Deployment Dependencies

  • Railway TCP Proxy enabled on port 443
  • Persistent volume mounted at /opt/teleproxy/data (recommended)
  • No database or Redis required

Teleproxy automatically downloads the latest Telegram proxy configuration on startup and refreshes it periodically.

Comparison

FeatureOfficial MTProxyTeleproxyNotes
Fake-TLS (EE Mode)BasicAdvanced (TLS 1.3 + dynamic sizing)Teleproxy much stronger
DPI ResistanceModerateExcellentTeleproxy wins
Dynamic Record SizingNoYesHarder to detect
Anti-Replay ProtectionWeakStrongBetter security
Multiple SecretsYesYes (up to 16 with limits)More flexible
Prometheus MetricsNoYesBetter monitoring
Docker Image Size~57 MB~8 MBMuch lighter
Active DevelopmentNo (outdated)YesActively maintained
Ease of use on RailwayGoodExcellentBetter defaults

EE_DOMAIN Options & Recommendations

EE_DOMAIN is used to enable Fake-TLS mode, making your proxy traffic look like normal HTTPS traffic to the chosen domain. This is one of Teleproxy's strongest features against DPI.

Recommended Domains

DomainRecommendationProsConsScore
www.microsoft.comHighly RecommendedVery stable, widely used, good TLS supportSlightly more monitored in some regions9/10
www.cloudflare.comHighly RecommendedExcellent TLS, very common, good performanceCan be blocked in some strict networks9/10
www.google.comGoodExtremely common, fastHeavily monitored in some countries8/10
www.apple.comGoodClean, good reputationSlightly less common than others7/10
www.amazon.comAcceptableLarge company, stableCan be more restricted in some regions6/10

Recommendation: Use www.microsoft.com or www.cloudflare.com as default.

Note: You can change the EE_DOMAIN value after deployment. The domain must support TLS 1.3.

Why Deploy Teleproxy on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Teleproxy on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Rocky Linux
[Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
24
View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
71
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
51