Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
x-ui
Commits
73ae5d25
Commit
73ae5d25
authored
Feb 03, 2026
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update run.sh
parent
10e94f23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
107 deletions
+0
-107
run.sh
run.sh
+0
-107
No files found.
run.sh
View file @
73ae5d25
...
...
@@ -58,110 +58,3 @@ pm2 save
echo
"==> x-ui setup completed successfully."
############################################
# PART 2 — MTProxy with Fake-TLS (translate.goo)
############################################
echo
echo
"============================================"
echo
" Starting MTProxy installation and setup..."
echo
"============================================"
### MTProxy configuration
SECRET_HEX
=
"e9a4f23b1d768c04a8d7f39120ca5b6e"
SPONSOR_TAG
=
"f2f3927f0e461d74d7f06bbddfacd8a7"
FAKETLS_DOMAIN
=
"media.steampowered.com"
PROXY_PORT
=
"9443"
STATS_PORT
=
"8888"
MTProxy_USER
=
"mtproxy"
MTProxy_DIR
=
"/etc/mtproxy"
MTProxy_BIN
=
"/usr/local/bin/mtproto-proxy"
SERVICE_FILE
=
"/etc/systemd/system/mtproxy.service"
echo
"==> Installing MTProxy dependencies..."
apt
install
-y
build-essential libssl-dev zlib1g-dev xxd
echo
"==> Building MTProxy (if not already installed)..."
if
[
!
-x
"
$MTProxy_BIN
"
]
;
then
cd
/opt
if
[
!
-d
"MTProxy"
]
;
then
git clone https://github.com/TelegramMessenger/MTProxy
fi
cd
MTProxy
make
cp
objs/bin/mtproto-proxy
"
$MTProxy_BIN
"
else
echo
"MTProxy binary already exists."
fi
echo
"==> Creating MTProxy system user (if needed)..."
if
!
id
"
$MTProxy_USER
"
&>/dev/null
;
then
useradd
-r
-M
-s
/usr/sbin/nologin
"
$MTProxy_USER
"
fi
echo
"==> Preparing MTProxy configuration directory..."
mkdir
-p
"
$MTProxy_DIR
"
cd
"
$MTProxy_DIR
"
echo
"==> Downloading Telegram proxy secrets..."
curl
-s
https://core.telegram.org/getProxySecret
-o
proxy-secret
curl
-s
https://core.telegram.org/getProxyConfig
-o
proxy-multi.conf
chown
-R
"
$MTProxy_USER
"
:
"
$MTProxy_USER
"
"
$MTProxy_DIR
"
echo
"==> Creating or updating systemd service for MTProxy..."
cat
>
"
$SERVICE_FILE
"
<<
EOF
[Unit]
Description=Telegram MTProxy with Fake-TLS
After=network.target
[Service]
Type=simple
WorkingDirectory=
$MTProxy_DIR
ExecStart=
$MTProxy_BIN
\\
-u
$MTProxy_USER
\\
-p
$STATS_PORT
\\
-H
$PROXY_PORT
\\
-D
$FAKETLS_DOMAIN
\\
-S
$SECRET_HEX
\\
-P
$SPONSOR_TAG
\\
--aes-pwd proxy-secret proxy-multi.conf
\\
-M 3
Restart=on-failure
LimitNOFILE=100000
[Install]
WantedBy=multi-user.target
EOF
echo
"==> Reloading systemd and restarting MTProxy..."
systemctl daemon-reload
systemctl
enable
mtproxy.service
systemctl restart mtproxy.service
echo
"==> MTProxy service status:"
systemctl status mtproxy.service
--no-pager
||
true
############################################
# FINAL INFO
############################################
FAKETLS_HEX
=
$(
echo
-n
"
$FAKETLS_DOMAIN
"
| xxd
-ps
)
SERVER_IP
=
$(
hostname
-I
|
awk
'{print $1}'
)
echo
echo
"============================================"
echo
" ALL SERVICES INSTALLED SUCCESSFULLY"
echo
"============================================"
echo
"MTProxy Port:
$PROXY_PORT
"
echo
"Hex Secret:
$SECRET_HEX
"
echo
"Sponsor Tag:
$SPONSOR_TAG
"
echo
"Fake-TLS Domain:
$FAKETLS_DOMAIN
"
echo
echo
"Telegram MTProxy link example:"
echo
"https://t.me/proxy?server=
$SERVER_IP
&port=
$PROXY_PORT
&secret=ee
${
SECRET_HEX
}${
FAKETLS_HEX
}
"
echo
echo
"You may replace the IP with your own domain name."
echo
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment