4

远程搭建反向穿透RVPN

 2 years ago
source link: https://kb5000.github.io/2019/11/19/%E8%BF%9C%E7%A8%8B%E6%90%AD%E5%BB%BA%E5%8F%8D%E5%90%91%E7%A9%BF%E9%80%8FRVPN/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

远程搭建反向穿透RVPN

2019-11-19

为了在非内网环境下访问校网,同时规避掉原来速度慢且极为臃肿的RVPN,这里搭建了一个基于SSH的RVPN,当然了,性能可能较差,只能供个人使用。

核心命令:利用SSH的DNAT功能,在客户端建立一个SOCKS5代理,从而使网络流量走SSH隧道。

ssh -NfD 1088 [email protected]

这里,N代表不打开shell,我们只进行网络代理,不需要shell;f代表让ssh自动到后台运行;而D则是建立一个动态端口转发隧道,也就是打开了SOCKS5隧道,这里将隧道建立在了1088端口。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK