家用 ubuntu 服务器运行 steem 机器人,使用 v2ray 连接薅羊毛($100)来的 墙外梯子
昨天薅羊毛搭建了一个墙外梯子,《薅羊毛$100美金,搞一个自用梯子》.
digitalocean 新用户注册送 $100 美金 ,感觉速度比 老牌 vultr 强,特别是晚上的速度.
现在要家里的 ubuntu 服务器运行 steem 机器人,需要能能够访问steem API节点:https://api.steemit.com
先从墙外梯子( v2ray 服务器)上获取配置信息
比如,从梯子上查看 v2ray 服务器端的信息:
# v2ray
欢迎使用 V2ray.fun 管理程序 Author:雨落无声
1.服务管理
2.更改配置
3.查看服务端信息
4.下载客户端配置文件
请输入数字选择功能(按回车键退出):
请选择: 3
服务器IP:167.xx.yy.52
主端口:9889
UUID:d6195fd6-40e9-11ea-bf6f-02b0999902aa
加密方式:aes-128-gcm
传输方式:mKCP 伪装 微信视频流量
TLS:关闭
在家用 ubuntu 上安装 v2ray 客户端
通常这个机器是不能访问外网的(或者网速特别慢).
如果能访问外网,可以直接安装v2ray 客户端 :bash <(curl -L -s https://install.direct/go.sh)
否则,先通过其他方法下载官方 v2ray 客户端 安装文件,进行安装:
wget https://install.direct/go.sh
wget https://github.com/v2ray/v2ray-core/releases/download/v4.18.0/v2ray-linux-64.zip
sudo bash go.sh --local ./v2ray-linux-64.zip
安装后,创建配置文件
创建配置文件命令:sudo vi /etc/v2ray/config.json
{
"dns" : {
"servers" : [
"localhost"
]
},
"inbounds" : [
{
"listen" : "127.0.0.1",
"port" : 1081,
"protocol" : "socks",
"tag" : "socksinbound",
"settings" : {
"auth" : "noauth",
"udp" : true,
"ip" : "127.0.0.1"
}
},
{
"listen" : "127.0.0.1",
"port" : 8001,
"protocol" : "http",
"tag" : "httpinbound",
"settings" : {
"timeout" : 0
}
}
],
"outbounds" : [
{
"tag" : "direct",
"protocol" : "freedom",
"settings" : {
}
},
{
"sendThrough" : "0.0.0.0",
"mux" : {
"enabled" : false,
"concurrency" : 8
},
"protocol" : "vmess",
"settings" : {
"vnext" : [
{
"address" : "167.xx.yy.52",
"users" : [
{
"id" : "d6195fd6-40e9-11ea-bf6f-02b0999902aa",
"alterId" : 64,
"security" : "aes-128-gcm",
"level" : 0
}
],
"port" : 9889
}
]
},
"tag" : "s.v",
"streamSettings" : {
"wsSettings" : {
"path" : "",
"headers" : {
}
},
"quicSettings" : {
"key" : "",
"security" : "none",
"header" : {
"type" : "none"
}
},
"tlsSettings" : {
"allowInsecure" : false,
"alpn" : [
"http\/1.1"
],
"serverName" : "server.cc",
"allowInsecureCiphers" : false
},
"httpSettings" : {
"path" : ""
},
"kcpSettings" : {
"header" : {
"type" : "wechat-video"
},
"mtu" : 1350,
"congestion" : false,
"tti" : 20,
"uplinkCapacity" : 5,
"writeBufferSize" : 1,
"readBufferSize" : 1,
"downlinkCapacity" : 20
},
"tcpSettings" : {
"header" : {
"type" : "none"
}
},
"security" : "none",
"network" : "kcp"
}
}
],
"routing" : {
"name" : "bypasscn_private_apple",
"domainStrategy" : "IPIfNonMatch",
"rules" : [
{
"type" : "field",
"outboundTag" : "direct",
"domain" : [
"localhost",
"domain:me.com",
"domain:lookup-api.apple.com",
"domain:icloud-content.com",
"domain:icloud.com",
"domain:cdn-apple.com",
"domain:apple-cloudkit.com",
"domain:apple.com",
"domain:apple.co",
"domain:aaplimg.com",
"domain:guzzoni.apple.com",
"geosite:cn"
]
},
{
"type" : "field",
"outboundTag" : "direct",
"ip" : [
"geoip:private",
"geoip:cn"
]
},
{
"type" : "field",
"outboundTag" : "s.v",
"port" : "0-65535"
}
]
},
"log" : {
"error" : "\/var\/folders\/_8\/p_k3r1jd1sbcm9czcb9jtcn80000gn\/T\/cenmrev.v2rayx.log\/error.log",
"loglevel" : "none",
"access" : "\/var\/folders\/_8\/p_k3r1jd1sbcm9czcb9jtcn80000gn\/T\/cenmrev.v2rayx.log\/access.log"
}
}
启动 v2ray 客户端的代理服务:sudo service v2ray restart
用 steemit.com 测试一下(steemit.com 已经被墙):
单次使用代理
执行命令:
curl -s -x http://127.0.0.1:8001 --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_properties", "params":[], "id":1}' https://api.steemit.com
成功返回信息:
{"id":1,"jsonrpc":"2.0","result":{"head_block_number":40323711,"head_block_id":"02674a7f46105de590021a0bb9001cf7735249d0","time":"2020-01-28T12:46:06","current_witness":"clayop","total_pow":514415,"num_pow_witnesses":172,"virtual_supply":"375410327.665 STEEM","current_supply":"337869348.572 STEEM","confidential_supply":"0.000 STEEM","init_sbd_supply":"0.000 SBD","current_sbd_supply":"7293310.990 SBD","confidential_sbd_supply":"0.000 SBD","total_vesting_fund_steem":"209464913.838 STEEM","total_vesting_shares":"411409519963.798045 VESTS","total_reward_fund_steem":"0.000 STEEM","total_reward_shares2":"0","pending_rewarded_vesting_shares":"934309770.784938 VESTS","pending_rewarded_vesting_steem":"467716.076 STEEM","sbd_interest_rate":0,"sbd_print_rate":0,"maximum_block_size":65536,"required_actions_partition_percent":0,"current_aslot":40460122,"recent_slots_filled":"340282366920938463463374607431768211455","participation_count":128,"last_irreversible_block_num":40323695,"vote_power_reserve_rate":10,"delegation_return_period":432000,"reverse_auction_seconds":300,"available_account_subsidies":17988382,"sbd_stop_percent":1000,"sbd_start_percent":900,"next_maintenance_time":"2020-01-28T13:27:18","last_budget_time":"2020-01-28T12:27:18","content_reward_percent":6500,"vesting_reward_percent":1500,"sps_fund_percent":1000,"sps_interval_ledger":"21.000 SBD","downvote_pool_percent":2500}}
全局代理方式
执行结果一样:
export http_proxy="http://127.0.0.1:8001"
export https_proxy="http://127.0.0.1:8001"
curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_properties", "params":[], "id":1}' https://api.steemit.com
大牛一个,鉴定完毕!
我所有的梯子都挂了.
你的梯子呢?可安好:)
!shop
你好鸭,anonymity.inlet!
@lvziyun给您叫了一份外卖!
由 @team-cn 新手村 迎着沙尘暴 坐着火箭 给您送来
过年咯~
吃饱了吗?跟我猜拳吧! 石头,剪刀,布~
如果您对我的服务满意,请不要吝啬您的点赞~
@onepagex