ellermister / mtproxy Goto Github PK
View Code? Open in Web Editor NEWMTProxyTLS一键安装绿色脚本
License: MIT License
MTProxyTLS一键安装绿色脚本
License: MIT License
完全不支持
Docker镜像php7.4环境如何开启GD库?
我们在实践过程中,白名单确实存活时间较久。
不过我们也发现,直接点击链接加入白名单直接暴露,墙的检测好像也可以加入白名单然后禁封ip。
目前我们的解决方案是重新写了加入白名单的add.php文件,打开链接后需要再次手动点击按钮加入白名单。
。。。。。。。。。持续测试中。
另外我们想加入个随机验证码功能,用户填写正确的验证码后,再点击手动加入白名单按钮可能更加有效的防止墙自动把它的ip加入系统。
但是该docker镜像中的php7.4没有开启gd库。如何开启gd库?
请问Docker 的端口,账号,密码是多少?我想进去修改下那个白名单的PHP文件,不想跟别人一样。
只能自己去容器里面改么,有没有-e参数改的呢
你好,请问openvz是无法使用这个脚本的吗?
生成链接Secret位数很多,而telegram bot要求:
Incorrect secret value. It must contain 32 hex characters like
00112233445566778899aabbccddeeff.
后续升级使用什么命令?
安装脚本直接停止:
Installed for mtg
./mtg run ee88a7d5b98e728e51312db665f15f1265617a7572652e6d6963726f736f66742e636f6d -b 0.0.0.0:4445 --multiplex-per-connection 500 --prefer-ip=ipv6 -t 127.0.0.1:4446
TMProxy+TLS代理: 已停止
直接运行命令报错如下:
root@myhost:/home/mtproxy# ./mtg run ee88a7d5b98e728e51312db665f15f1265617a7572652e6d6963726f736f66742e636f6d -b 0.0.0.0:4445 --multiplex-per-connection 500 --prefer-ip=ipv6 -t 127.0.0.1:4446
fatal error: cannot resolve any public address
机器是AWS的Lightsail,系统为Debian11,网络环境为仅ipv4,已关闭ipv6,系统DNS为8.8.8.8
这个周期不固定,一般几天到半个月不定这样子,看了容器日志,没发现啥明显的问题,每次连不上都只能手动重启容器,然后就能连上了
作者是跑路了吗为啥群没有了啊
这是什么原因呢?我远程看端口都打开了
mkdir /home/mtproxy && cd /home/mtproxy
curl -s -o mtproxy.sh https://raw.githubusercontent.com/ellermister/mtproxy/master/mtproxy.sh && chmod +x mtproxy.sh && bash mtproxy.sh
docker 安装,反反复复试了好几遍
在 ip_white_list="IP" 时,访问 http:ip/add.php 显示添加成功,docker logs 有显示,但还是不能使用, docker restart 尝试过;
在 ip_white_list="IPSEG" 时,http:ip/add.php 是直接打不开 503状态,代理不能使用;
只有 ip_white_list="OFF" 时才能链接,然后查看 docker logs 没有显示问题;
所以 这是我一个人的问题嘛 5555
不知道是TG炸了还是脚本的问题,好几个VPS搭建的代理都不可用
已解决
手机都是IP v6了
这个可以在heroku上增加一键部署的功能吗
想要自定义连接的密钥,可以不要随机生成的或自己修改配置吗?
用的是nginx的stream模块来反代,mtproxy本身的端口不需要开放到公网
提示:mtproxy.sh: line 345: 11931 Segmentation fault ./mtproto-proxy -u nobody -p $web_port -H $port -S $secret --aes-pwd proxy-secret proxy-multi.conf -M $workerman $tag_arg --domain $domain $nat_info > /dev/null 2>&1
调试模式内容如下(密钥内容已省略):
./mtproto-proxy -u nobody -p 8293 -H 8292 -S 6******************************f --aes-pwd proxy-secret proxy-multi.conf -M 1 --domain azure.microsoft.com
[3057][2020-12-13 13:40:43.677278 local] Invoking engine mtproxy-0.01 compiled at Aug 26 2020 11:44:23 by gcc 8.3.0 64-bit after commit dc0c7f3de40530053189c572936ae4fd1567269b
[3057][2020-12-13 13:40:43.677564 local] config_filename = 'proxy-multi.conf'
[pid 3057] [time 1607838043]
------- Stack Backtrace -------
[0x43ba99]
[0x43bbe0]
[0x5d1670]
/lib/x86_64-linux-gnu/libc.so.6(__nss_readline+0x74)[0x7f69a11170c4]
/lib/x86_64-linux-gnu/libnss_files.so.2(+0x47fd)[0x7f69a11c47fd]
/lib/x86_64-linux-gnu/libnss_files.so.2(_nss_files_gethostbyname3_r+0x87)[0x7f69a11c59a7]
/lib/x86_64-linux-gnu/libnss_files.so.2(_nss_files_gethostbyname_r+0x24)[0x7f69a11c5ab4]
[0x64719f]
[0x6466df]
[0x410770]
[0x40e409]
[0x40fbd8]
[0x40a88f]
[0x436c00]
[0x5d7811]
[0x402e8a]
[pid 3057] [time 1607838043] -------------------------------
[pid 3057] [time 1607838043] mtproxy-0.01 compiled at Aug 26 2020 11:44:23 by gcc 8.3.0 64-bit after commit dc0c7f3de40530053189c572936ae4fd1567269b[pid 3057] [time 1607838043]
fix有点简单粗暴希望可以优化
#创建系统服务
cat > /etc/systemd/system/mtp.service <<EOF
[Unit]
Description=mtp
After=network.target
[Service]
Type=forking
ExecStart=/bin/bash /home/mtproxy/mtproxy.sh start
ExecReload=/bin/bash /home/mtproxy/mtproxy.sh restart
ExecStop=/bin/bash /home/mtproxy/mtproxy.sh stop
[Install]
WantedBy=multi-user.target
EOF
#启动服务并设置开机自启
systemctl start mtp
systemctl enable mtp
docker和一键脚本都是这样。已经测试多个系统。
v4,v6分别测试过。
脚本模式跑过ubuntu。
docker在我所有不同机器上都是如下报错。
用你的原配置和我改过端口的配置,都是如此。还修改过1用官方2用第三方。以及用不用自定义密钥。都是这样。试了官方docker和脚本没有问题。
sed: -e expression #1, char 25: unknown option to `s'
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/40-mtproxy-start.sh
sed: -e expression #1, char 25: unknown option to `s'
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/40-mtproxy-start.sh
sed: -e expression #1, char 25: unknown option to `s'
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/40-mtproxy-start.sh
sed: -e expression #1, char 25: unknown option to `s'
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/40-mtproxy-start.sh
sed: -e expression #1, char 25: unknown option to `s'
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/40-mtproxy-start.sh
sed: -e expression #1, char 25: unknown option to `s'
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/40-mtproxy-start.sh
sed: -e expression #1, char 25: unknown option to `s'
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.con
使用docker开启白名单模式后,通过任意客户端访问8080端口第一次以后,之后无论是什么ip的客户端访问其都显示“already added”
经查看log发现是其ip记录都为docker内网ip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.