Frp+go Mmproxy实现透明代理式内网穿透
frp+go-mmproxy 实现透明代理的内网穿透 事前声明:该方法只在 Linux 系统有效,并且需要 linux 内核 2.6.28 或更高版本 参考: [Feature Request] Make client IP accessible to upstream by spoofing source IP · 议题 #4184 · fatedier/frp mmproxy - Creative Linux routing to preserve client IP addresses in L7 proxies frp 是一个常用的内网穿透软件,支持多种协议,可以让 NAT 环境下的服务暴露到公网指定端口,以穿透 sshd 为例,配置 frpc.toml: [[proxies]] name= "ssh" type="tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 23456 然后用 frps 对应公网的 ip 和端口访问:在内网机的 var/log/auth.log 中查看登录记录: Accepted publickey for fsj2009yx from 127.0.0.1 port 38866 ssh2: 可以看到经过 frpc 代理转发后,源客户端 IP 被隐藏了,变成配置中的 localIP 地址 ...