Language: English | Русский
Deploy VLESS (Xray-core) or Telegram MTProto (mtg) proxy on OptikLink servers.
Works with OptikLink KeepAlive or standalone.
All options are set in settings.txt:
IP =
PORT =
MODE =
PROTOCOL =
TLS =
UUID =
PATH =
SNI =
ALLOW_INSECURE =
MT_SECRET =
MT_DOMAIN =
MT_PREFER_IP =
MT_TIME_SKEW =
NAME =
LOG_FILE =
Empty fields are filled automatically.
| Parameter | Default | Description |
|---|---|---|
IP |
auto-detect | Server IP |
PORT |
6202 |
Port |
MODE |
vless |
vless or mtproto |
NAME |
Optiklink |
Display name |
LOG_FILE |
false |
Write bot.log (rotates ~1 MB) |
| Parameter | Default | Description |
|---|---|---|
PROTOCOL |
ws |
ws or xhttp |
TLS |
true |
Self-signed certificate |
UUID |
new UUID | Empty → generate new |
PATH |
/vless / /xhttp |
Transport path |
SNI |
optiklink.local |
TLS SNI |
ALLOW_INSECURE |
false |
Skip cert check on client |
Recommended: PROTOCOL = ws, TLS = true, ALLOW_INSECURE = true.
| Parameter | Default | Description |
|---|---|---|
MT_SECRET |
auto | Fake-TLS secret (empty → generate) |
MT_DOMAIN |
www.google.com |
Fake-TLS camouflage host |
MT_PREFER_IP |
prefer-ipv4 |
prefer-ipv4 / prefer-ipv6 / only-ipv4 / only-ipv6 |
MT_TIME_SKEW |
30s |
Allowed clock drift |
If you change MT_DOMAIN, clear MT_SECRET so a new secret is generated.
python3 bot.pyThe script downloads Xray or mtg if needed, builds the config and prints the connection link(s) to the console and links.txt.
| File | Purpose |
|---|---|
settings.txt |
User settings |
bot.py |
Main script |
links.txt |
Connection link(s) |
xray_config.json |
Xray config (VLESS) |
mtg_config.toml |
mtg config (MTProto) |
server.crt / server.key |
TLS certificate (VLESS) |
bot.log |
Optional log (LOG_FILE = true) |
- OptikLink usually provides a single port — choose one mode (
vlessormtproto). - After changing VLESS settings, clear
UUIDto generate a new identifier. - In v2rayNG,
allowInsecurefrom the share link may not apply; enable skip certificate verification manually. - If
bot.loggrew large, delete it and keepLOG_FILE = false.