使用frp+ss访问内网机器服务

1.在使用frp进行内网穿透的基础上,在内网机器的frpc.ini配置中添加

[web]
type = tcp
local_ip = master
local_port = 内网端口
remote_port = 外网机器端口

启动

./frpc -c frpc.ini

2.在内网机器上启动ss-server

修改配置/etc/shadow$ocks-libev/config.json,必须是0.0.0.0

{
    "server":"0.0.0.0",
    "server_port":内网端口,
    "local_port":1080,
    "password":"密码",
    "timeout":60,
    "method":"chacha20-ietf-poly1305"
}

启动

ss-server -c /etc/shadow$ocks-libev/config.json

3.配置代理

 

这样就能访问内网机器上的服务了

 

posted @ 2020-05-02 16:57  tonglin0325  阅读(1323)  评论(0编辑  收藏  举报