You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,64 @@ WantedBy=multi-user.target
152
152
- Port publishing must include IPv6 (Docker binds to IPv6 only if daemon IPv6 is enabled). See Docker docs for `daemon.json` (`"ipv6": true`, `"fixed-cidr-v6": "…/64"`).
153
153
- The provided image’s default entrypoint does not add `-6`. To use IPv6, either run MTProxy on the host, or build/override the container command to include `-6`.
154
154
155
+
## VPN Compatibility
156
+
157
+
MTProxy works with VPN by default. However, if you experience connectivity issues when your VPN is active, check your configuration.
158
+
159
+
### Default Behavior (VPN-friendly)
160
+
161
+
By default, MTProxy:
162
+
- Listens on all network interfaces (`0.0.0.0` for IPv4, `::` for IPv6)
163
+
- Routes outbound connections automatically through the system's default route (including VPN tunnels)
164
+
165
+
**This means you don't need any special configuration for VPN compatibility.**
166
+
167
+
### The `--address` Option
168
+
169
+
The `--address` option binds **outbound connections** (connections from the proxy to Telegram servers) to a specific IP address.
170
+
171
+
**When to use `--address`:**
172
+
- Multi-homed servers with multiple public IPs where you need to control which IP is used for outbound connections
173
+
- NAT scenarios where the local address differs from the global address (use with `--nat-info`)
174
+
- Specific routing requirements
175
+
176
+
**When NOT to use `--address`:**
177
+
- ❌ When running a VPN on the same server
178
+
- ❌ On most single-IP servers (let the system route automatically)
179
+
- ❌ When you want traffic to go through a VPN tunnel
0 commit comments