内网穿透常用的隧道代理工具

1.ftp网络穿透简易教程

下载地址

https://github.com/fatedier/frp/blob/dev/README_zh.md

用途

1.端口映射

暂时用不到。也很简单,主要修改客户端配置文件。
参考frpc_full.ini文件。

[common]
server_addr = VPSIP
server_port = 7000

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
[rdp]
type = tcp
local_ip = 127.0.0.1           
local_port = 3389
remote_port = 7001  
[smb]
type = tcp
local_ip = 127.0.0.1
local_port = 445
remote_port = 7002

2.内网穿透(隧道)

frps

VPS:服务端
frps.ini文件为

[common]
bind_port = 7230
server_addr = VPSIP
token = mytoken2d4a814454792b1fd0fed29
dashboard_port = 7500
dashboard_addr = 101.133.213.20
dashboard_pwd = passwttttord
dashboard_user = apssdmin

第一行是必须的,token为了客户端与服务端传输安全。
dashboard为web页面,不配置可以节省资源。
运行

服务端:
nohup ./frps -c frps.ini >/dev/null 2>&1 &

简略版

[common]
bind_port = 7000

frpc

frpc.ini配置文件为

[common]
server_addr = VPSIP
server_port = 7230
token = mytoken2d4a814454792b1fd0fed29

[plugin_socks5]
type = tcp
remote_port = 6005
plugin = socks5
plugin_user = a3bTc
plugin_passwd = a0b6c

plugin=socks5 配置socks5代理
即:
客户端或者webshell中运行 nohup ./frpc -c frpc.ini >/dev/null 2>&1 &
得到代理

socks5://a3bTc:a0b6c@IP:6005

2.SSH

本机执行

ssh -CfN -D 10089 -T  -o "ServerAliveInterval 60" -o "ServerAliveCountMax 120"  root@aliyun.target.com

获得正向代理socks5://127.0.0.1:10089

服务器执行

ssh -CfN -D 0.0.0.0:7777 -T  -o "ServerAliveInterval 60" -o "ServerAliveCountMax 120" root@VPSHOST -p 22

获取服务器的代理socks5://VPSIP:7777

其他 以后再写吧

posted @ 2022-03-28 16:05  壹個人坐在角落  阅读(178)  评论(0编辑  收藏  举报