聊聊proxy和VPN的解决方案 Qv2ray & Trajan
Contents
Proxy
Ubuntu 电脑不小心挂了。重新安装了系统,发现之前的ssr不好用了,网上找了半天找到了Q2vray, 看着不错,试用一下。可以直接在Ubuntu商店安装。
界面长这样。
在我们常用的PC系统上,比如Windows/Mac/Linux等系统平台,V2ray官方并没有发布图形化的桌面客户端。
V2rayN和Qv2ray等一些第三方工具,在V2ray官方内核的基础上,为我们提供了图形化界面支持,使用起来会更加方便。
其中Qv2ray除了支持V2ray的vmess协议外,还可以通过安装插件的方式,额外增加对SS/SSR/Trojan等代理协议的支持,可作为V2ray/SS/SSR/Trojan客户端使用。
SSR 发现最近不好用了。 正好试试Qv2ray,初体验还不错。能看到流量等信息。
Qv2ray
install Qv2ray in ubuntu store
install v2ray core V2ray官方内核下载(必选)
Qv2ray自身相当于一个外壳,并不包含V2ray内核。在作为V2ray客户端使用时,需要另外下载V2ray官方内核搭配使用。
V2ray内核请到官网根据自己的系统选择下载最新版(建议挂代理):https://github.com/v2ray/v2ray-core/releases
plugin Qv2ray 插件下载(可选)
默认情况下,Qv2ray并不支持V2ray以外的代理协议,因此在作为SS/SSR/Trojan等客户端使用前,需要在Qv2ray中添加相应插件(注意插件版本号和Qv2ray版本号要对应)。
Qv2ray Shadowsocks插件下载:https://github.com/Qv2ray/QvPlugin-SS/releases/
Qv2ray SSR插件下载:https://github.com/Qv2ray/QvPlugin-SSR/releases/
Qv2ray Trojan插件下载:https://github.com/Qv2ray/QvPlugin-Trojan/releases
Qv2ray Trojan-go插件下载:https://github.com/Qv2ray/QvPlugin-Trojan-Go/releases/
Qv2ray NaiveProxy插件下载::https://github.com/Qv2ray/QvPlugin-NaiveProxy/releases/
trijan
- Trojan-Qt5 支持的代理协议较多,基本覆盖了目前主流的代理工具,可以同时作为它们的客户端使用,具体包括:
- Socks5
- HTTP
- SS(Shadowsocks)
- SSR(ShadowsocksR)
- Vmess(V2ray)
- Trojan
- Trojan-go
- Snell
Trojan-Qt5 其它特点如下:
- 图形化界面,方便操作
- 多系统平台支持
- 支持多服务器连接
- 支持GFWList PAC分流
- 支持自定义规则分流
- 支持流量统计/重置
- 支持多种方式添加代理服务器
SSR-Qt5
download from below link:
https://github.com/qingshuisiyuan/electron-ssr-backup/releases
wget https://github.com/qingshuisiyuan/electron-ssr-backup/releases/download/v0.2.6/electron-ssr-0.2.6.deb
dpkg -i electron-ssr-0.2.6.deb
sudo apt install proxychains
Proxy Setup
Skip this step if you are not using a proxy server
In order to download and compile some components from next step, it is required that your PC network proxy is setup properly. Below instructions show how the network proxy is setup assuming a proxy server named “http://proxy.company.com:80” for the domain “company.com”. Modify these appropriately for your network.
Proxy for wget
- To set the “wget” proxy add below lines in ~/.wgetrc
http_proxy=http://proxy.company.com:80
https_proxy=http://proxy.company.com:80
ftp_proxy=http://proxy.company.com:80
noproxy=ti.com
Proxy for http access
- Setup HTTP proxy by adding below lines in your ~/.bashrc
export HTTPS_PROXY=http://proxy.company.com:80
export https_proxy=http://proxy.company.com:80
export HTTP_PROXY=http://proxy.company.com:80
export http_proxy=http://proxy.company.com:80
export ftp_proxy=http://proxy.company.com:80
export FTP_PROXY=http://proxy.company.com:80
export no_proxy=ti.com
Proxy for “apt-get”
- Add below line in the file /etc/apt/apt.conf
`Acquire::http::proxy “http://proxy.company.com:80”;“
Proxy for “git”
-
Install corkscrew
sudo apt-get install corkscrew
-
Create a file ~/.gitconfig and add below content to it
[user]
email = <myemail>@company.com
name = <myname>
[core]
gitproxy = none for company.com
gitproxy = /home/<username>/git-proxy.sh
[http]
proxy = http://proxy.company.com:80
[https]
proxy = http://proxy.company.com:80
- Create a file ~/git-proxy.sh and add below lines in it
\#!/bin/sh
exec /usr/bin/corkscrew proxy.company.com 80 $*
-
Make ~/git-proxy.sh as executable
chmod +x ~/git-proxy.sh
Proxy for “curl”
- Add below line in ~/.curlrc file
proxy=http://proxy.company.com:80