MTProxy icon indicating copy to clipboard operation
MTProxy copied to clipboard

Display different proxy sponsor for different secret on 1 VPS

Open denisemenov opened this issue 8 years ago • 3 comments

I have a VPS with 3 secret keys for different user groups:

  • the first group without a proxy sponsor
  • the second group with my personal channel
  • the third group for a commercial project with its own channel

I thought that it can be used with multiple "-P", like it it used with multiple "-S", but Telegram always shows only one sponsored channel for all groups. Is I need to use different VPS to display different channels for different groups, or did I do something wrong?

denisemenov avatar Jul 03 '18 13:07 denisemenov

buy some domain, create different subdomains with same A records, and add proxies with those domains.

stek29 avatar Jul 03 '18 17:07 stek29

I already have different domains with subdomains, but that did not help me. I registered them using @mtproxybot and added the tags to the run command. But when I change the proxy server in the Telegram app, the channel does not change. For example:

tg://proxy?server=first.mtproto.proxy&port=443&secret=305276***
tg://proxy?server=second.mtproto.proxy&port=443&secret=d0e063***
tg://proxy?server=third.mtproto.proxy&port=443&secret=5d6373***

Systemd service file:

[Unit]
Description=MTProxy
After=network.target

[Service]
Type=simple
ExecStart=/root/MTProxy/objs/bin/mtproto-proxy -u nobody -p 8888 -H 443 -S 305276*** -P  938e02*** -S d0e063*** -P  b0c9bd*** -S 5d6373*** -P  b8b80*** --aes-pwd /root/MTProxy/proxy-secret /root/MTProxy/proxy-multi.conf -M 1
Restart=on-failure

[Install]
WantedBy=multi-user.target

I tried to use sequential tagging, but it did not change channels:

ExecStart=/root/MTProxy/objs/bin/mtproto-proxy -u nobody -p 8888 -H 443 -S 305276*** -S d0e063*** -S 5d6373*** -P  938e02*** -P  b0c9bd*** -P  b8b80*** --aes-pwd /root/MTProxy/proxy-secret

denisemenov avatar Jul 03 '18 22:07 denisemenov

any solution? just first p is working

sae13 avatar Aug 02 '18 15:08 sae13