Code Monkey home page Code Monkey logo

trojan's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trojan's Issues

半小时一直是这个状态,应该如何处理??

半小时一直是这个状态,应该如何处理??
vps配置是单核256mb

进入WEB管理,新建用户,提示dial tcp 127.0.0.1:3306: connect: connection refused 如何解决?

[mysql] 2020/03/18 01:27:38 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:27:38 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:41 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:41 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:41 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:44 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:44 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:45 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:47 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:47 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:47 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:50 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:50 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:50 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:53 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:53 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:53 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:55 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:55 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:55 packets.go:36: unexpected EOF

在安装docker版的mysql时出现问题 系统debian10

Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
errors pretty printing info
docker install success!

docker run --name trojan-mysql --restart=always -p 55487:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=kXrwj -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7

iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain INPUT

iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain INPUT

iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain OUTPUT

iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain OUTPUT
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
mysql启动中, 请稍等...

用户相关

web页面添加用户失败,用户展示也失败。命令行可以添加用户、也可以显示用户列表。

image

GCP su 安裝報錯 -- 已解決

欢迎使用trojan管理程序
1.trojan管理 2.用户管理
3.安装管理 4.web管理
5.查看配置 6.生成客户端配置文件
请选择: 3
1.更新trojan
2.证书申请
3.安装mysql
请选择: 3
1.安装docker版mysql
2.输入自定义mysql连接
请选择: 1
docker run --name trojan-mysql --restart=always -p 30324:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=
LEDmW -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7
f72dcb414d4abc5449212b655a3093b08c065ab98f63aefcfc85282f050ba721
mysql启动中, 请稍等...
[mysql] 2020/03/24 11:34:11 packets.go:36: unexpected EOF
[mysql] 2020/03/24 11:34:11 packets.go:36: unexpected EOF
[mysql] 2020/03/24 11:34:11 packets.go:36: unexpected EOF

報錯截屏
https://i.imgur.com/ghQ6Lq0.png

域名

1.域名是否要一级域名 格式有没有要求
www.fff.com
fff.com
2.是否clouflare Proxy status设置为DNS only即可
3.crt文件是否支持pem格式

有个错


请选择: 4
● trojan.service - trojan
   Loaded: loaded (/etc/systemd/system/trojan.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Fri 2020-03-20 18:36:01 UTC; 453ms ago
     Docs: https://trojan-gfw.github.io/trojan/config
           https://trojan-gfw.github.io/trojan/
  Process: 10428 ExecStart=/usr/bin/trojan/trojan /usr/local/etc/trojan/config.json (code=exited, status=1/FAILURE)
 Main PID: 10428 (code=exited, status=1/FAILURE)

Mar 20 18:36:01 instance-20200320-2037 systemd[1]: trojan.service: Main process exited, code=exited, status=1/FAILURE
Mar 20 18:36:01 instance-20200320-2037 trojan[10428]: Welcome to trojan 1.14.1
Mar 20 18:36:01 instance-20200320-2037 trojan[10428]: [2020-03-20 18:36:01] [FATAL] fatal: use_private_key_file: no start line
Mar 20 18:36:01 instance-20200320-2037 trojan[10428]: [2020-03-20 18:36:01] [FATAL] exiting. . .
Mar 20 18:36:01 instance-20200320-2037 systemd[1]: trojan.service: Unit entered failed state.
Mar 20 18:36:01 instance-20200320-2037 systemd[1]: trojan.service: Failed with result 'exit-code'.


添加新功能

多用户管理还是集成web界面比较好管理,命令行太糙了

提一个小小的错误

readme里面二进制运行文件的代码块里面chomd是不是指chmod,如果我看错了还请原谅...
chomd +x trojan
./trojan

请问可以让trojan和v2ray共存吗?

两个都是用的您提供的一键安装脚本. 目前在同一个VPS上, 使用不同二级域名可以同时安装, 但无法同时启动, 只能一个停用一个运行.

重启VPS后web页面提示服务器端错误,后台trojan启动失败

操作系统: centOS7

问题现象:
首次安装或卸载重装后一切功能正常

重启VPS后,web页面提示服务器端错误

后台查看trojan状态提示:
● trojan.service - trojan
Loaded: loaded (/etc/systemd/system/trojan.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2020-03-21 23:07:10 EDT; 54ms ago
Docs: https://trojan-gfw.github.io/trojan/config
https://trojan-gfw.github.io/trojan/
Process: 3881 ExecStart=/usr/bin/trojan/trojan /usr/local/etc/trojan/config.json (code=exited, status=1/FAILURE)
Main PID: 3881 (code=exited, status=1/FAILURE)

Mar 21 23:07:10 byhome systemd[1]: trojan.service: main process exited, code=exited, status=1/FAILURE
Mar 21 23:07:10 byhome systemd[1]: Unit trojan.service entered failed state.
Mar 21 23:07:10 byhome systemd[1]: trojan.service failed.

重启trojan错误相同

大佬的这个是未完工状态吗?

代码跑完以后,分享链接是非常短的一个(相比于v2ray的链接),但是复制了这个分享链接以后没地方去导入呢?导入到v2ray以后是不出现东西的

Docker版的如何有效更改mysql配置?

问题背景:服务器配置较小,无法安装docker版的mysql,运行不动,所以想连另一台服务器上的mysql,指定不同的数据库。

能否在安装Trojan的时候,给出指定账号、数据库名的选项?
我在安装完Trojan后去配置文件修改mysql配置,结果导致无法科学上网,网页打开倒是正常。

墙外美国洛杉矶vps,一键安装都不行了,是不是下载源挂了。

[root@HostKvm-625635 ~]# source <(curl -sL https://git.io/trojan-install)
正在安装trojan管理程序..
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.plustech.de
  • extras: ftp.wrz.de
  • updates: mirror.plustech.de
    Package socat-1.7.3.2-2.el7.x86_64 already installed and latest version
    Package 1:bash-completion-2.1-6.el7.noarch already installed and latest version
    Nothing to do
    正在下载管理程序版本...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    curl: (35) Peer reports incompatible or unsupported protocol version.
    chmod: cannot access '/usr/local/bin/trojan': No such file or directory
    -bash: trojan: command not found
    安装trojan管理程序成功!

运行命令trojan可进行trojan管理

-bash: /usr/local/bin/trojan: No such file or directory

关于自定义的问题

我想问一下配置的证书路径在哪里,以及我想修改一下主页面,可否提供一下主页面的文件路路径

账号密码问题

我想问一下,万一两个用户的密码相同,怎么配置?

希望在数据库的用户名能修改

搭建的时候遇到自定义数据库名必须为root的问题,这个权限有点高,且有些远程数据库不能以root为用户名,所以希望数据库用户名能自定义

部署疑问

有没有不部署mysql,且能统计流量的方式

关于输入自定义mysql连接

请问这个是支持远程访问其它vps的mysql数据吗?
如果是的话 访问 IP:3306 默认密码 trojan
提示 连接mysql失败, 请重新输入
能指点下原因吗?

容器內回車 trojan 報錯

以下報錯在huaweicloud GZ VM上面安裝
mysql/mysql-server:5.7 正常
jrohy/trojan 正常
web 正常可以登入

docker exec -it trojan bash 之後

[root@ecs-8749 /]# trojan
本机未安装trojan, 正在自动安装...

bash: iptables: command not found
bash: iptables: command not found
bash: iptables: command not found
bash: iptables: command not found
Failed to restart trojan.service: Unit not found.
Failed to execute operation: No such file or directory
open /usr/local/etc/trojan/config.json: no such file or directory
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x89ad83]

goroutine 1 [running]:
trojan/core.WriterPassword(0x0, 0x0, 0x0, 0x1)
/home/go/trojan/core/server.go:97 +0x33
trojan/cmd.check()
/home/go/trojan/cmd/root.go:33 +0xbd
trojan/cmd.mainMenu()
/home/go/trojan/cmd/root.go:40 +0x34
trojan/cmd.glob..func5(0x12910c0, 0x12c7810, 0x0, 0x0)
/home/go/trojan/cmd/root.go:16 +0x20
github.com/spf13/cobra.(*Command).execute(0x12910c0, 0xc0000921b0, 0x0, 0x0, 0x12910c0, 0xc0000921b0)
/home/go/pkg/mod/github.com/spf13/[email protected]/command.go:844 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x12910c0, 0x443a4a, 0x1250ac0, 0xc000000180)
/home/go/pkg/mod/github.com/spf13/[email protected]/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
/home/go/pkg/mod/github.com/spf13/[email protected]/command.go:885
trojan/cmd.Execute()
/home/go/trojan/cmd/root.go:23 +0x31
main.main()
/home/go/trojan/main.go:6 +0x20

多域名 443 端口配置

服务器使用nginx处理其他两个域名服务,均使用ssl,可是升级后trojan web 现在默认占用了443,应该如何配置多域名?(建议作为可配置项)

到了后面,安装docker mysql出错

5.7: Pulling from mysql/mysql-server

c7127dfa6d78: Pulling fs layer

cb7ddde5230b: Pulling fs layer

1528bee07386: Pulling fs layer

cca3f8362bb0: Pulling fs layer

cca3f8362bb0: Waiting

1528bee07386: Verifying Checksum

1528bee07386: Download complete
cca3f8362bb0: Verifying Checksum
cca3f8362bb0: Download complete
c7127dfa6d78: Verifying Checksum
c7127dfa6d78: Download complete
cb7ddde5230b: Verifying Checksum
cb7ddde5230b: Download complete
c7127dfa6d78: Pull complete
cb7ddde5230b: Pull complete
1528bee07386: Pull complete
cca3f8362bb0: Pull complete
Digest: sha256:5a5c0841346322ed514a48a7c2ab5409a8106e35718f3195467e7cf52343f25a
Status: Downloaded newer image for mysql/mysql-server:5.7
d2dc6ff7739e3e46e4ec52c0807c69d2f134af27462b755908432b641dc8351f
mysql启动中, 请稍等...
[mysql] 2020/03/01 08:02:20 packets.go:36: unexpected EOF
[mysql] 2020/03/01 08:02:20 packets.go:36: unexpected EOF

nat的vps安装的

请问能否出一个手动配置的教程?

原因是我目前的服务器上已经有Trojan, 使用前置Nginx 然后用SNI预读分流给V2ran和trojan的,所以配置文件被我搞得有点乱, 所以用一键脚本的话可能会有点问题, 所以想问问能否出一个手动配置的教程? 谢谢.

添加用户Error1045

系统: debian9
现象: 使用控制台添加随机用户报错: Error 1045: Access denied for user 'trojan'@'172.17.0.1' (using password: NO)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.