HowTo - Running a Mtproto proxy
0. download and install
install go(lang)
wget https://go.dev/dl/go1.17.6.linux-amd64.tar.gz
tar -C /usr/local -xvf go1.17.6.linux-amd64.tar.gz
might need sudo ;)
export PATH=$PATH:/usr/local/go/bin
check go version
>> go version go1.17.6 linux/amd64
then lets download the source code of the mtproto implementation
git clone https://github.com/9seconds/mtg.git
cd mtg
make static
if u want to make it "global" to ur system:
sudo cp mtg /usr/local/bin
1. setting up mtproto proxy
generate mtproto secret
./mtg generate-secret [your_ip_or_domain]
>> 7vo-EdcHk0SNkj0tAa37xYzibmJ5dGNzLnh5eb
make configuration file
nvim mtg.toml
this tells proxy to run in port 1984 with secret
copy it to /etc
sudo cp mtg.toml /etc/mtg.toml
creating proxy service
nvim /etc/systemd/system/mtg.service
might need sudo :P
then;
get proxy information
mtg access /etc/mtg.toml
help freedom
>
send it to your friends, make a collaborative proxy; fight for your freedom of expression, fight for your freedom to fight back.
>
use the 'tg_url' value above to share it
>
'tme_qrcode' is a qrcode image, create flyers and distribute it on the streets, bus stops, subway stations, etc
"men in their prime, if they have convictions, are tasked to act on them."