Giter VIP home page Giter VIP logo

proxysu / proxysu Goto Github PK

View Code? Open in Web Editor NEW
5.4K 117.0 1.5K 30.99 MB

Xray,V2ray,Trojan,NaiveProxy, Trojan-Go, ShadowsocksR(SSR),Shadowsocks-libev及相关插件,MTProto+TLS 一键安装工具,windows下用(一键科学上网)

License: GNU General Public License v3.0

C# 100.00%
shadowrocket v2ray windows-v2ray proxy vpn websocket-tls v2rayng trojan shadowsocksr trojan-go naiveproxy shadowsocks ssr ssr-tls-caddy shadowsocks-libev v2ray-tls mtproto-proxy mtproto-tls ipv6 xray

proxysu's Introduction

ProxySU

V2ray, Xray, Trojan, NaiveProxy, Trojan-Go, MTProto Go, Brook,BBR install tools for windows。
V2ray,Xray, Trojan,NaiveProxy, Trojan-Go, MTProto Go, Brook 及相关插件。支持纯ipv6主机一键安装代理。
BBR一键开启(仅支持CentOS8/Debian9/10/Ubuntu18.04及以上),支持语言:English、简体中文、正体(繁体)中文,波斯语。

编译环境Visual Studio 2019 使用WPF界面。可一键安装 V2ray/Xray, Shadowsocks, Trojan, Trojan-Go, NaiveProxy, MTProto Go, Brook 后续还会再添加其他。

零基础用户,强烈建议看一下Xray官网小小白白话文-自建教程
更多相关资源与工具请看本项目Wiki资源和工具

photo_2021-05-31_17-23-29 photo_2021-05-31_17-24-29

免责声明:ProxySU属于自用分享工具,请勿用于违背良知与道德之事,否则后果自负。

再次声明:

ProxySU本着技术中立的原则,没有任何立场,也不持任何见解,更不涉及任何政治因素。ProxySU仅仅主张人的知情权,这是一项天赋人权,也是各国宪法所保障的最基本人权。知情权包含对同一事物正负两方面评价的知情,至于相信哪个,由人自己选择。正如李文亮医生临终所言:一个正常的社会是不应该只有一种声音的。如果真的存在对某一事物只有一种声音的评价,无论其评价是正面还是负面,都是要慎重对待,并需要重新审视的。
代理版本的选择

多数情况下,ProxySU安装代理工具的Latest版。

支持的VPS系统为:
  • CentOS 7/8
  • Debian 9/10 (推荐 10)
  • Ubuntu 18及以上

(注意:如果系统启用了SELinux且工作在Enforcing模式下时,需要将Enforcing更改为Permissive模式,否则使用WebSocket+TLS+Web时,Caddy的service无法开机启动,这种情形一般出现在Centos7/8中,程序在安装过程中将自动处理。)

ProxySU使用教程

一键搭建科学上网工具ProxySU------------网友 Alvin9999 制作。
Youtube视频教程---------------------------网友 jc-nf那坨 制作,需要先翻墙后观看。

使用提醒及常见问题:

有些vps主机商会对vps所使用的资源进行限制,可能会造成Caddy启动失败,提示“failed to create new OS thread ”错误,在一些免费vps类型上经常出现。可以切换为不使用web伪装的代理模式(不填伪装网址的就是了)。

vps主机配置推荐内存在256M及以上,过低的内存配置,可能导致某些代理方案不能成功运行。

纯IPV6主机,安装过程中,将临时设置NAT64网关。仅用于布署代理,布署完成后,则会删除,若设置伪装网站,该网址需要可以使用ipv6访问,否则将无效。注意,纯IPV6 的主机无法直接访问纯IPV4的网络。(不推荐使用纯ipv6主机做为代理节点)

ProxySU的安装流程,是假设在全新系统下,没有装过以上代理软件,如果已经安装过,最好将系统重装一下,会减少很多的麻烦。
ProxySU将安装代理软件的最新版本,为了最好的兼容,请确保客户端也是当前最新版本。

在实际使用中,发现Centos7,debian8,ubunutu16.04等版本,安装出错的机率很大,不建议使用以上版本。低于以上版本的,无法使用ProxySU.

Nat类型的vps主机,因为无法独占80,443端口,使用tls模式的代理,可能不能申请证书,安装会失败。

ProxySU在开发过程中,一般都是在vultr的vps中测试,测试系统版本为:Debian 10。由于同一个版本的Linux系统,不同的VPS商,云服务商也不完全相同。实在没有精力去逐一测试。如果安装失败,可以先尝试以下方法解决:

1.如果以前装过翻墙软件,请重装一下vps系统后,再试。
2.更换为其他版本的linux发行版,推荐使用 Debian 9与Debian 10系统,再试。

以上两种方法不能解决,请各位网友及时发issues,或者到TG群组,反馈。

在以上平台反馈求助时,请尽可能将安装出错的日志保存下来,并提供,将有利于查找错误原因。
在反馈问题前,可以先看一下 <<常见问题集锦>>,是否可以解决。

关于兼容的密钥格式

ProxySU调用SSH.NET库登录远程主机,目前SSH.NET只支持以下格式的密钥:

  • RSA in OpenSSL PEM and ssh.com format
  • DSA in OpenSSL PEM and ssh.com format
  • ECDSA 256/384/521 in OpenSSL PEM format
  • ECDSA 256/384/521, ED25519 and RSA in OpenSSH key format
    可以使用以下密码方法之一对私钥进行加密:
  • DES-EDE3-CBC
  • DES-EDE3-CFB
  • DES-CBC
  • AES-128-CBC
  • AES-192-CBC
  • AES-256-CBC
    见官方说明:
    https://github.com/sshnet/SSH.NET#public-key-authentication
    如果当前拥有的密钥格式不是以上几种,可以下载puttygen工具,将其转换成上面的格式。
    puttygen使用教程可以看这里
关于Let's Encrypt证书

ProxySU所使用的acme.sh与Caddy,都是申请的Let's Encrypt免费证书。三个月需要续期,都是自动完成续期的,无需用户操作。但是Let's Encrypt证书有一些限制,请知晓,如下:

Let's Encrypt证书申请频率的限制

同一个主域名一周之内只能申请50个证书
每个账号下每个域名每小时申请验证失败的次数为5次
每周只能创建5个重复的证书,即使是通过不同的账号进行创建
每个账号同一个IP地址每3小时最多可以创建10个证书
每个多域名(SAN) SSL证书(不是通配符域名证书)最多只能包含100个子域
更新证书没有次数的限制,但是更新证书会受到上述重复证书的限制
如果提示证书申请失败,可以尝试更换域名再试(添加或换不同的二级域名,也算是新域名)
同一IP地址,在短时间内过于频繁的申请证书,也会被限制,此时更换域名也无法申请成功,只能等待一段时间,或者更换Ip.
(网友分享)

上传自有证书

需要将crt和key文件打包成zip,在安装界面选择“上传自有证书”

关于卸载功能

有网友要求,可以卸载其他方法安装的,经过考虑,还是不这样做。1,容易引起争议。2,不容易卸载干净,在用ProxySU安装时可能还会出错。所以第一次使用ProxySU建议使用全新系统,如果以前安装过代理程序,请尽可能将系统重装一下,可以减少很多安装的错误和冲突。

License

(GPL-V3)

运行文件下载

  • 正式版(正式发布的版本,新功能完善后发布)
    下载

Windows系统需要安装net4.8或以上

Microsoft .NET Framework 4.8 or higher

使用的C# 库

SSH.NET --------------- https://github.com/sshnet/SSH.NET
Newtonsoft.Json ------ https://github.com/JamesNK/Newtonsoft.Json
QRcoder --------------- https://github.com/codebude/QRCoder

程序安全

为了布署方便,程序使用root账户登录主机,出于慎重,请不要在运行重要程序及用于生产的主机上使用。程序所有源码开源,所使用的库都是github开源项目,可以保障最大的使用安全,程序不夹带任何私货、恶意代码及后门,也不会收集任何个人资料,不是在本项目地址下载的,不做任何保障,请尽可能从本项目地址下载。

程序使用问题反馈

在使用遇到问题时,请先看一下常见问题集锦,如果还不能解决,可以到以上平台询问,个人精力有限,尽力解答。

proxysu's People

Contributors

danielblackbeard avatar miscusi2023 avatar nagasurya avatar next-autumn avatar proxysu avatar sascascasc avatar

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  avatar  avatar  avatar  avatar  avatar  avatar

proxysu's Issues

建议重复安装时允许证书复用

重复安装时申请证书部分会这样
申请域名证书......
/root/.acme.sh/acme.sh --issue --standalone -d xxxx
[Tue Oct 6 17:35:36 MSK 2020] Domains not changed.
[Tue Oct 6 17:35:36 MSK 2020] Skip, Next renewal time is: Sat Dec 5 14:31:14 UTC 2020
[Tue Oct 6 17:35:36 MSK 2020] Add '--force' to force to renew.

证书申请失败!原因未知,请向开发者提问!

尝试多次安装Caddy失败!

证书申请成功!
安装证书到V2ray......
mkdir -p /usr/local/etc/v2ray/ssl

/root/.acme.sh/acme.sh --installcert -d vv2.sunnyadam.tk --certpath /usr/local/etc/v2ray/ssl/v2ray_ssl.crt --keypath /usr/local/etc/v2ray/ssl/v2ray_ssl.key --capath /usr/local/etc/v2ray/ssl/v2ray_ssl.crt --reloadcmd "systemctl restart v2ray"
[Thu Oct 8 01:29:45 UTC 2020] Installing cert to:/usr/local/etc/v2ray/ssl/v2ray_ssl.crt
[Thu Oct 8 01:29:45 UTC 2020] Installing CA to:/usr/local/etc/v2ray/ssl/v2ray_ssl.crt
[Thu Oct 8 01:29:45 UTC 2020] Installing key to:/usr/local/etc/v2ray/ssl/v2ray_ssl.key
[Thu Oct 8 01:29:45 UTC 2020] Run reload cmd: systemctl restart v2ray
[Thu Oct 8 01:29:45 UTC 2020] Reload success

if [ ! -f "/usr/local/etc/v2ray/ssl/v2ray_ssl.key" ]; then echo "0"; else echo "1"; fi | head -n 1
1

证书成功安装到V2Ray!
chmod 644 /usr/local/etc/v2ray/ssl/v2ray_ssl.key

安装Caddy......
echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" | tee -a /etc/apt/sources.list.d/caddy-fury.list
deb [trusted=yes] https://apt.fury.io/caddy/ /

apt install -y apt-transport-https
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version (1.8.2.1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

apt -qq update
5 packages can be upgraded. Run 'apt list --upgradable' to see them.

apt -y -qq install caddy
caddy is already the newest version (2.2.0).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

find / -name caddy
/usr/share/caddy
/etc/bash_completion.d/caddy
/etc/caddy
/var/lib/caddy
/var/lib/caddy/.config/caddy

安装Caddy失败!

debian10 安装trojan-go后报错,permission denied

如题,安装完trojan-go之后发现无法使用,登录vps查看错误日志,如下
trojan-go.service: Failed to execute command: Permission denied
trojan-go.service: Failed at step EXEC spawning /usr/bin/trojan-go: Permission denied

VLESS-H2C-Caddy2 中 caddy2 配置文件 如何设置反代一个正常网站

参考至https://github.com/v2fly/v2ray-examples/tree/master/VLESS-H2C-Caddy2
v2ray client <--- H2 ---> caddy2 <--- H2C ---> v2ray server

caddy2 配置文件内容

test.myweb.club {

reverse_proxy https://lovelive-as-global.com

reverse_proxy /374c71672ced/ 127.0.0.1:22157 {
transport http {
versions h2c
}
}
}

我想要访问我的域名,内容是反代 https://lovelive-as-global.com 这个网站。

加了 reverse_proxy https://lovelive-as-global.com
v2ray无法正常工作,访问我的域名也打不开要代理的网站。

删除 reverse_proxy https://lovelive-as-global.com
v2ray正常工作。

caddy无法启动成功

无论trojan-go,trojan都不行,代码如下:

uname -m
x86_64

command -v apt

command -v dnf

command -v yum
/usr/bin/yum

command -v zypper

command -v systemctl
/usr/bin/systemctl

command -v getenforce
/usr/sbin/getenforce

检测结果:OK!
getenforce
Disabled

正在检测域名是否解析到当前VPS的IP上......
curl -4 ip.sb
ip

ping 域名 -c 1 | grep -oE -m1 "([0-9]{1,3}.){3}[0-9]{1,3}"
ip

解析正确!OK!
检测端口占用情况......
lsof -n -P -i :80 | grep LISTEN

lsof -n -P -i :443 | grep LISTEN

检测结果:未被占用!
系统环境检测完毕,符合安装要求,开始布署......
开启防火墙相应端口......
firewall-cmd --zone=public --add-port=80/tcp --permanent
�[91mFirewallD is not running�[00m

firewall-cmd --zone=public --add-port=443/tcp --permanent
�[91mFirewallD is not running�[00m

yes | firewall-cmd --reload
�[91mFirewallD is not running�[00m

yum -q makecache

yum -y -q install xz-utils

正在安装Trojan......
curl -o /tmp/trojan-quickstart.sh https://raw.githubusercontent.com/trojan-gfw/trojan-quickstart/master/trojan-quickstart.sh

yes | bash /tmp/trojan-quickstart.sh
Entering temp directory /tmp/tmp.YnZUF17AyC...
Downloading trojan 1.16.0...
Unpacking trojan 1.16.0...
Installing trojan 1.16.0 to /usr/local/bin/trojan...
Installing trojan server config to /usr/local/etc/trojan/config.json...
Installing trojan systemd service to /etc/systemd/system/trojan.service...
Reloading systemd daemon...
Deleting temp directory /tmp/tmp.YnZUF17AyC...
Done!

find / -name trojan
/usr/local/bin/trojan
/usr/local/etc/trojan

Trojan安装成功!
systemctl enable trojan

mv /usr/local/etc/trojan/config.json /usr/local/etc/trojan/config.json.1

安装完毕,上传配置文件......
正在安装acme.sh......
yum -q makecache

yum -y -q install socat
Package socat-1.7.3.2-2.el7.x86_64 already installed and latest version

curl https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | INSTALLONLINE=1 sh
[Fri Sep 4 15:15:54 PDT 2020] Installing from online archive.
[Fri Sep 4 15:15:54 PDT 2020] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[Fri Sep 4 15:15:57 PDT 2020] Extracting master.tar.gz
[Fri Sep 4 15:15:57 PDT 2020] Installing to /root/.acme.sh
[Fri Sep 4 15:15:57 PDT 2020] Installed to /root/.acme.sh/acme.sh
[Fri Sep 4 15:15:57 PDT 2020] Installing alias to '/root/.bashrc'
[Fri Sep 4 15:15:57 PDT 2020] OK, Close and reopen your terminal to start using acme.sh
[Fri Sep 4 15:15:57 PDT 2020] Installing alias to '/root/.cshrc'
[Fri Sep 4 15:15:57 PDT 2020] Installing alias to '/root/.tcshrc'
[Fri Sep 4 15:15:57 PDT 2020] Installing cron job
56 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
[Fri Sep 4 15:15:57 PDT 2020] Good, bash is found, so change the shebang to use bash as preferred.
[Fri Sep 4 15:15:58 PDT 2020] OK
[Fri Sep 4 15:15:58 PDT 2020] Install success!

acme.sh安装成功!
cd ~/.acme.sh/

alias acme.sh=~/.acme.sh/acme.sh

申请域名证书......
/root/.acme.sh/acme.sh --issue --standalone -d 域名
[Fri Sep 4 15:16:04 PDT 2020] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Fri Sep 4 15:16:04 PDT 2020] Standalone mode.
[Fri Sep 4 15:16:04 PDT 2020] Creating domain key
[Fri Sep 4 15:16:04 PDT 2020] The domain key is here: /root/.acme.sh/域名/域名.key
[Fri Sep 4 15:16:04 PDT 2020] Single domain='域名'
[Fri Sep 4 15:16:04 PDT 2020] Getting domain auth token for each domain
[Fri Sep 4 15:16:06 PDT 2020] Getting webroot for domain='域名'
[Fri Sep 4 15:16:06 PDT 2020] Verifying: 域名
[Fri Sep 4 15:16:06 PDT 2020] Standalone mode server
[Fri Sep 4 15:16:10 PDT 2020] Pending
[Fri Sep 4 15:16:12 PDT 2020] Pending
[Fri Sep 4 15:16:15 PDT 2020] Pending
[Fri Sep 4 15:16:17 PDT 2020] Pending
[Fri Sep 4 15:16:20 PDT 2020] Pending
[Fri Sep 4 15:16:22 PDT 2020] Pending
[Fri Sep 4 15:16:24 PDT 2020] Pending
[Fri Sep 4 15:16:26 PDT 2020] Pending
[Fri Sep 4 15:16:29 PDT 2020] Pending
[Fri Sep 4 15:16:31 PDT 2020] Pending
[Fri Sep 4 15:16:34 PDT 2020] Pending
[Fri Sep 4 15:16:36 PDT 2020] Pending
[Fri Sep 4 15:16:39 PDT 2020] Success
[Fri Sep 4 15:16:39 PDT 2020] Verify finished, start to sign.
[Fri Sep 4 15:16:39 PDT 2020] Lets finalize the order.
[Fri Sep 4 15:16:39 PDT 2020] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/95759182/5013942854'
[Fri Sep 4 15:16:40 PDT 2020] Downloading cert.
[Fri Sep 4 15:16:40 PDT 2020] Le_LinkCert='https://acme-v02.api.letsencrypt.org/acme/cert/0461cf8059c0119b04f042ef74d92c3797c1'
[Fri Sep 4 15:16:40 PDT 2020] Cert success.
-----BEGIN CERTIFICATE-----
MIIFYDCCBEigAwIBAgISBGHPgFnAEZsE8ELvdNksN5fBMA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0yMDA5MDQwNjE4MzJaFw0y
MDEyMDMwNjE4MzJaMB8xHTAbBgNVBAMTFHRyMTAxLmZyZWVkb20xMDMueHl6MIIB
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4A98mNjjQopSv9avNLU+Fzo1
NWkXvjnmrccqG7m2l/asxuVPM6/2GWOEvLsVaOhp1zQlk25Ksgt5BX5ju6hp49C1
/QCIeTsEPc6C8r/GPYfMCGHD40R43V/iNIppJTHLZ8eigNOS3Ph0d95YhCpeSyOK
tFRBGx/XdOaRiiNacJUQCNke7vqkAPTMLALjuWJTtYZ2LdZ3acLd01G5T4Xa/+ev
TVcDtSOxvhyTe/8Dqjfb21XyWxS+IUH9W39W1dw/NFm9SXMN9L4UC1VVHlytPFWl
L8qwTBE8/R8NOn0POHKpNLH0f+H1Cvwhm9/71Z0DAeFqGuoj1FnoNfXUTsSVNwID
AQABo4ICaTCCAmUwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMB
BggrBgEFBQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBSGkhtr9iY56VNMHaK3
fS9c60H9UDAfBgNVHSMEGDAWgBSoSmpjBH3duubRObemRWXv86jsoTBvBggrBgEF
BQcBAQRjMGEwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmludC14My5sZXRzZW5j
cnlwdC5vcmcwLwYIKwYBBQUHMAKGI2h0dHA6Ly9jZXJ0LmludC14My5sZXRzZW5j
cnlwdC5vcmcvMB8GA1UdEQQYMBaCFHRyMTAxLmZyZWVkb20xMDMueHl6MEwGA1Ud
IARFMEMwCAYGZ4EMAQIBMDcGCysGAQQBgt8TAQEBMCgwJgYIKwYBBQUHAgEWGmh0
dHA6Ly9jcHMubGV0c2VuY3J5cHQub3JnMIIBBAYKKwYBBAHWeQIEAgSB9QSB8gDw
AHYA8JWkWfIA0YJAEC0vk4iOrUv+HUfjmeHQNKawqKqOsnMAAAF0V/sqyQAABAMA
RzBFAiEArOgP9cmb0mNuirR90bZdHp4AfSTMWOGF7BJT0/M1IecCIBec5weU9KfC
Wnb67AQL79K178yqmQFl5Kt7cP8OJLNLAHYAB7dcG+V9aP/xsMYdIxXHuuZXfFeU
t2ruvGE6GmnTohwAAAF0V/srZAAABAMARzBFAiEA4IXuSsvVXLed1AKfmtQnvVXW
jEPmTgvBy01CNtZVn3wCIAMQkeUR6yhKADyiHZBxFd/4MJ8SOHzPb+DmiuRjNQXg
MA0GCSqGSIb3DQEBCwUAA4IBAQAstgu53zSOdMrrx2eIb6eGRglexDRqV75fRmDO
uTInR2V/CqFm31ofGYj3pGzgadqZX2qoG3kb/g0+XcbpYsnEw3RNeoGfjRHxYUIa
9Sukl5ZDDC3Zmwag639pyFP7MESt4gDRdoj5IVhpx7swMhyfJWyB6vffCMDCVUNi
A/u+v2KAGtxQ3tNH0afKBhJKgl6O5mDtIGzLcKA3klkKyKd6RFg8WO7Ag9dws8JJ
9PrnDW3nP9zyHyTA/LibYpUIkch6f6BVI/cAmp0xEpwaqtq753d3ib8v/JJo4J8H
8ICxM5Ypigz3xZqGtC3OBtO5bIoYwa7HmPG/MUozWc6+o6Lk
-----END CERTIFICATE-----
[Fri Sep 4 15:16:40 PDT 2020] Your cert is in /root/.acme.sh/域名/域名.cer
[Fri Sep 4 15:16:40 PDT 2020] Your cert key is in /root/.acme.sh/域名/域名.key
[Fri Sep 4 15:16:40 PDT 2020] The intermediate CA cert is in /root/.acme.sh/域名/ca.cer
[Fri Sep 4 15:16:40 PDT 2020] And the full chain certs is there: /root/.acme.sh/域名/fullchain.cer

证书申请成功!
安装证书到Trojan......
/root/.acme.sh/acme.sh --installcert -d 域名 --certpath /usr/local/etc/trojan/trojan_ssl.crt --keypath /usr/local/etc/trojan/trojan_ssl.key --capath /usr/local/etc/trojan/trojan_ssl.crt --reloadcmd "systemctl restart trojan"
[Fri Sep 4 15:16:44 PDT 2020] Installing cert to:/usr/local/etc/trojan/trojan_ssl.crt
[Fri Sep 4 15:16:44 PDT 2020] Installing CA to:/usr/local/etc/trojan/trojan_ssl.crt
[Fri Sep 4 15:16:44 PDT 2020] Installing key to:/usr/local/etc/trojan/trojan_ssl.key
[Fri Sep 4 15:16:44 PDT 2020] Run reload cmd: systemctl restart trojan

if [ ! -f "/usr/local/etc/trojan/trojan_ssl.key" ]; then echo "0"; else echo "1"; fi | head -n 1
1

证书成功安装到Trojan!
chmod 644 /usr/local/etc/trojan/trojan_ssl.key

安装Caddy......
yum install yum-plugin-copr -y
Loaded plugins: copr, fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirrors.umflint.edu
  • extras: repos-lax.psychz.net
  • updates: centos3.zswap.net
    Package yum-plugin-copr-1.1.31-54.el7_8.noarch already installed and latest version
    Nothing to do

yum copr enable @caddy/caddy -y
Loaded plugins: copr, fastestmirror
copr done

yum -y -q install caddy
Package caddy-2.2.0~rc1-1.el7.x86_64 already installed and latest version

find / -name caddy
/etc/caddy
/var/lib/caddy
/usr/bin/caddy
/usr/share/bash-completion/completions/caddy
/usr/share/caddy

Caddy安装成功!
systemctl enable caddy

上传Caddy配置文件......
mv /etc/caddy/Caddyfile /etc/caddy/Caddyfile.bak

sed -i 's/##domain##/域名/' /etc/caddy/Caddyfile

Caddy配置文件上传成功,OK!
正在启动Caddy......
systemctl restart caddy

ps aux | grep caddy
root 11059 0.0 0.0 113288 3164 ? Ss 15:17 0:00 bash -c ps aux | grep caddy
root 11065 0.0 0.0 112812 2288 ? S 15:17 0:00 grep caddy

Caddy启动失败!
正在启动Caddy(第二次尝试)!
systemctl restart caddy

ps aux | grep caddy
root 11090 0.0 0.0 113288 3104 ? Ss 15:17 0:00 bash -c ps aux | grep caddy
root 11096 0.0 0.0 112812 2296 ? S 15:17 0:00 grep caddy

Caddy启动失败(第二次)!退出安装!

很棒的项目!

很棒的项目!不仅方便,搭建后的代理速度还很快!感恩!

caddy添加网页模板

trojan无法正常使用

用新ip+新域名+最新客户端都无法正常使用。端口正常,伪装域名可以打开。

V2ray一键安装出错

显示安装失败.脚本运行出错。
日志如下:

yes | bash /tmp/go.sh -f
info: Installing V2Ray v4.28.2 for x86_64
Downloading V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.28.2/v2ray-linux-64.zip
Downloading verification file for V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.28.2/v2ray-linux-64.zip.dgst
error: Check failed! Please check your network or try again.

vps 是jp节点的vultr服务器,之前部署过ssr,v2ray。

证书申请失败!原因未知,请向开发者提问!

添加VLESS VMESS XTLS TLS WS 复合方案
Trojan-Go + WebSocket + TLS + Web

CentOS7.5 Debian 9.3/10 Ubuntu18.04

申请域名证书......
/root/.acme.sh/acme.sh --issue --standalone -d mg1.usa1005.tk
[Wed Oct 7 17:05:16 UTC 2020] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Wed Oct 7 17:05:16 UTC 2020] Standalone mode.
[Wed Oct 7 17:05:17 UTC 2020] Create account key ok.
[Wed Oct 7 17:05:17 UTC 2020] Registering account: https://acme-v02.api.letsencrypt.org/directory
[Wed Oct 7 17:05:17 UTC 2020] Registered
[Wed Oct 7 17:05:17 UTC 2020] ACCOUNT_THUMBPRINT='Q6cP3VXpG9yBXiQzLdX1meBo3eINXwxbz2Tk_LyjPwg'
[Wed Oct 7 17:05:17 UTC 2020] Creating domain key
[Wed Oct 7 17:05:17 UTC 2020] The domain key is here: /root/.acme.sh/mg1.usa1005.tk/mg1.usa1005.tk.key
[Wed Oct 7 17:05:17 UTC 2020] Single domain='mg1.usa1005.tk'
[Wed Oct 7 17:05:17 UTC 2020] Getting domain auth token for each domain
[Wed Oct 7 17:05:18 UTC 2020] Getting webroot for domain='mg1.usa1005.tk'
[Wed Oct 7 17:05:18 UTC 2020] Verifying: mg1.usa1005.tk
[Wed Oct 7 17:05:18 UTC 2020] Standalone mode server

证书申请失败!原因未知,请向开发者提问!

若使用CDN,请先关闭

按照trojan 或者 trojan-go无论哪个模式,都出现错误。
弹出窗口显示:域名未能正确解析到VPS的IP上,若解析设置正确,请等待生效后重试。如果域名使用了CDN,请先关闭。

请问如何关闭CDN?
我使用的是搬瓦工 Debian10 ,刚刚重装的系统,这个VPS之前使用过v2ray+CDN,请问如何关闭CDN?
我把CDN里的 小黄云 点灰色了,还是没有用呀。
求指点

后继有人!

很欣慰,这个国家的人才真多!请保护包自己,不要泄露任何个人信息,

顺利装完,无法使用。

在centos-7-x64上部署 VLESS+WebSocket+TLS+Web, 过程非常顺利,没有出现任何错误,不过电脑和手机都无法正常使用,错误如下:

[Warning] failed to handler mux client connection > v2ray.com/core/proxy/vless/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://某域名/4324):  > remote error: tls: internal error] > v2ray.com/core/common/retry: all retry attempts failed

ipv6搭建出现错误

debian10,安装v2ray的ws+tls,是纯ipv6小鸡,lxc架构.
错误日志:
find / -name v2ray
find: ‘/dev/.lxd-mounts’: Permission denied
find: ‘/sys/kernel/debug’: Permission denied
find: ‘/sys/dev/block’: Permission denied
find: ‘/sys/fs/pstore’: Permission denied
find: ‘/sys/fs/fuse/connections/47’: Permission denied
find: ‘/proc/tty/driver’: Permission denied

ipv6主机无法安装

解析正确!OK!
系统环境检测完毕,符合安装要求,开始布署......
正在安装V2Ray......
curl -o /tmp/go.sh https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to raw.githubusercontent.com port 443: Network is unreachable

yes | bash /tmp/go.sh -f
error: Failed to get release list, please check your network.

rm -f /tmp/go.sh

find / -name v2ray
/tmp/v2ray
/usr/local/etc/v2ray

安装失败,脚本运行出错!
发生错误,安装中断......

Win10下使用直接闪退

使用的最新版本:v2.3.1
1.VPS 为亚马逊aws 的lightsail
2.使用了密钥登陆
3.设置了管理模式运行

反馈问题:点击安装V2ray,直接 闪退,

Ubuntu 16.04.7 LTS安装v2ray WS+TLS失败

ProxySU版本:v2.3.1
安装选项:V2Ray WebSocket+TLS+Web
错误信息如下:

The following packages have unmet dependencies:
libarchive-tools : Depends: libarchive13 (= 3.2.1-2~ubuntu16.04.1) but 3.1.2-11ubuntu0.16.04.8 is to be installed
error: Installation of libarchive-tools failed, please check your network.

english version , please

Hello.

Many people around the world would like to use your program.

could you add a english version, please. or a tap where the client can chose Chinese or English, please

最近安装一直停留在 正在为NaiveProxy升级服务端

等待很久也一直在这页面正在登录远程主机......
主机登录成功!
检测是否运行在root权限下...
id -u
0

检测结果:OK!
检测系统是否已经安装Caddy......
find / -name caddy
/usr/share/caddy
/usr/bin/caddy
/root/caddy
/etc/bash_completion.d/caddy
/etc/caddy
/var/lib/caddy

请先行卸载Caddy或重装VPS系统!
检测系统是否符合安装要求......
uname -m
x86_64

command -v apt
/usr/bin/apt

command -v dnf

command -v yum

command -v zypper

command -v systemctl
/bin/systemctl

command -v getenforce

检测结果:OK!
正在安装依赖的软件......
apt -qq update
184 packages can be upgraded. Run 'apt list --upgradable' to see them.

apt -y -qq install curl libnss3 xz-utils lsof unzip
lsof is already the newest version.
xz-utils is already the newest version.
curl is already the newest version.
libnss3 is already the newest version.
unzip is already the newest version.
The following packages were automatically installed and are no longer required:
libuuid-perl linux-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.

安装完毕!OK!
正在检测域名是否解析到当前VPS的IP上......
curl -4 ip.sb
107.x.x.x

ping xxxxx -c 1 | grep -oE -m1 "([0-9]{1,3}.){3}[0-9]{1,3}"
107.x.x.x

解析正确!OK!
检测端口占用情况......
lsof -n -P -i :80 | grep LISTEN

lsof -n -P -i :443 | grep LISTEN

检测结果:未被占用!
系统环境检测完毕,符合安装要求,开始布署......
开启防火墙相应端口......
正在安装Caddy.....
echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" | tee -a /etc/apt/sources.list.d/caddy-fury.list
deb [trusted=yes] https://apt.fury.io/caddy/ /

apt install -y apt-transport-https
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version.
The following packages were automatically installed and are no longer required:
libuuid-perl linux-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.

apt -qq update
184 packages can be upgraded. Run 'apt list --upgradable' to see them.

apt -y -qq install caddy
caddy is already the newest version.
The following packages were automatically installed and are no longer required:
libuuid-perl linux-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.

find / -name caddy
/usr/share/caddy
/usr/bin/caddy
/root/caddy
/etc/bash_completion.d/caddy
/etc/caddy
/var/lib/caddy

Caddy安装成功!
systemctl enable caddy

正在为NaiveProxy升级服务端
curl -o /tmp/caddy.zip https://raw.githubusercontent.com/proxysu/Resources/master/Caddy2/caddy20200816.zip

unzip /tmp/caddy.zip

然后就没下文了。

VLESS+TCP+XTLS+Web 模式安装后,开启CDN无法使用

域名是腾讯云的,DNS改到了Cloudflare解析,证书也是Cloudflare的。安装时不能开启CDN ,安装好之后使用V2rayN,正常使用;回到Cloudflare,开启CDN后,无法正常使用了,测速提示【远程服务器返回错误:(503)服务器不可用】。

建议用WPF的MVVC来做一份

我看了代码做了好多判断,用mvvc来设计一下的话,可以省掉好些代码,而且可读性更好。建议作者这么来做一下,以后更新方便些。
给个赞!

申请证书总是失败

申请域名证书......
/root/.acme.sh/acme.sh --issue --standalone -d yuchan.ml
[Mon Oct 5 17:18:56 UTC 2020] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Mon Oct 5 17:18:56 UTC 2020] Standalone mode.
[Mon Oct 5 17:18:56 UTC 2020] Single domain='yuchan.ml'
[Mon Oct 5 17:18:56 UTC 2020] Getting domain auth token for each domain
[Mon Oct 5 17:18:59 UTC 2020] Getting webroot for domain='yuchan.ml'
[Mon Oct 5 17:18:59 UTC 2020] Verifying: yuchan.ml
[Mon Oct 5 17:18:59 UTC 2020] Standalone mode server
[Mon Oct 5 17:19:04 UTC 2020] Pending
[Mon Oct 5 17:19:07 UTC 2020] Pending
[Mon Oct 5 17:19:10 UTC 2020] Pending

证书申请失败!原因未知,请向开发者提问!

能否在trojan-go的安装设置中增加多路复用的选项

首先感谢大佬提供这么好用的软件。
问题如下:
现在多路复用还需要手动修改一下配置文件,且重启后trojan-go总是需要手动systemctl restart一下。能否在安装时增加一项多路复用的可选配置。这样可以使得配置更加便捷,更加方便像我这类小白用户的使用。

New Issues

image
未能找到以下路径,安装都不了

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.