frp用stcp模式使用socks5代理
直接把socks5代理服务器映射到公网端口上还是会存在被爆破扫描的风险,可以拓展继续用stcp模式将本地端口和内网frpc服务绑定上,让frp把socks5软件访问本地端口的请求转发到内网frpc里。
服务器
服务器端配置配置不变,注意防火墙或者宝塔之类的放行。
如果之前没接触过frp,可以看看之前的文章:
用FRP做内网穿透使用远程桌面连接家里的windows电脑内网Frpc配置
vi frpc.ini
<以上代码可复制粘贴,可往左滑>
[common]
server_addr = 219.154.81.168
server_port = 7778
token=Xa3BJf2l5enmN6Z7A8mv
[test_sock5]
type = stcp
sk = 4u4rUif0vm9zn6dZ
plugin = socks5
plugin_user = 123
plugin_passwd = abc
use_encryption = true
use_compression = true
<以上代码可复制粘贴,可往左滑>
frpc.exe -c frpc.ini
<以上代码可复制粘贴,可往左滑>
外部访问模式的Frpc配置
vi frpc.ini
<以上代码可复制粘贴,可往左滑>
[secret_socks5_visitor]
type = stcp
role = visitor
sk = 4u4rUif0vm9zn6dZ
server_name = test_sock5
bind_addr = 127.0.0.1
bind_port = 1181
use_encryption = true
use_compression = true
<以上代码可复制粘贴,可往左滑>
frpc.exe -c frpc.ini
<以上代码可复制粘贴,可往左滑>
原理
使用frp的stcp模式,内网中的frpc使用socks5插件自建一个简单的socks5服务端,然后通过frps转发出去到外部访问的frpc所在的机器上,从而实现外部访问本地的端口走内网流量。
官方站点:www.linuxprobe.com
Linux命令大全:www.linuxcool.com
刘遄老师QQ:5604922
Linux技术交流群:193666693
(新群,火热加群中……)
想要学习Linux系统的读者可以点击"阅读原文"按钮来了解书籍《Linux就该这么学》,同时也非常适合专业的运维人员阅读,成为辅助您工作的高价值工具书!
阅读原文 最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。