Open timqian opened 7 years ago
better shadowsocks https://github.com/shadowsocks/ShadowsocksX-NG
v2ray on aws
# install on ubuntu
wget https://install.direct/go.sh
sudo bash go.sh # remember the PORT and UUID
# start
sudo systemctl start v2ray
# see config file on ubuntu
cat /etc/v2ray/config.json
open the PORT for inbound to the instance
sample json
{
"inbounds": [
{
"port": 1080, // 监听端口
"protocol": "socks", // 入口协议为 SOCKS 5
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"settings": {
"auth": "noauth" //socks的认证设置,noauth 代表不认证,由于 socks 通常在客户端使用,所以这里不认证
}
}
],
"outbounds": [
{
"protocol": "vmess", // 出口协议
"settings": {
"vnext": [
{
"address": "serveraddr.com", // 服务器地址,请修改为你自己的服务器 IP 或域名
"port": 16823, // 服务器端口
"users": [
{
"id": "", // 用户 ID,必须与服务器端配置相同
"alterId": 64 // 此处的值也应当与服务器相同
}
]
}
]
}
}
]
}
configure local SOCKS Host to: 127.0.0.1:1080
v2ray clients
最近增加了 clashX + trojan 的使用, 速度还可以. 可以在 clash 文档里找到更多相关协议
clash doc: https://github.com/Dreamacro/clash/wiki/configuration config clash using trojan: https://hijk.pp.ua/clashx-config-trojan-tutorial/
Server
After launch an unbuntu instance in AWS do the following things:
Shadowsocks
start service
Open 8338 port for inbound to instance
Ref:
官方使用说明 trouble shooting ~已失效~