利用 rathole 搭建TCP隧道实现内网穿透及问题解决

环境以及使用的工具

公网主机: Alibaba Cloud Linux 3.2104 LTS 64位
内网主机: Windows 11
工具: rathole

内网穿透

略,后面找个时间写

问题解决

openssl

从 Release 中下载对应的包,解压,编写配置文件,准备执行发现报错
在这里插入图片描述

[root@ali rathole-linux]# ./rathole server.toml 
./rathole: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

应该是openssl的问题,于是去安装openssl 3,安装可以参考下这篇文章
在 Rocky/Alma/CentOS/RHEL 8 上安装 OpenSSL 3.x

然后再创建软链接

ln -s /usr/local/openssl/lib64/libssl.so.3  /usr/lib64/libssl.so.3
ln -s /usr/local/openssl/lib64/libcrypto.so.3  /usr/lib64/libcrypto.so.3
ldconfig

安装 GLIBC

在这里插入图片描述
接下来出现了新的报错

[root@ali rathole-linux]# ./rathole server.toml 
./rathole: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./rathole)
./rathole: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./rathole)

不建议升级Glibc,笔者在重装3次系统后,选择了更换Ubuntu系统
在这里插入图片描述
如果要升级可以参考下这篇文章如何正确升级 Centos7 的 Glibc

参考

多种方式解决交叉编译中glibc版本不兼容导致的编译问题(libc.so.6: version `GLIBC_xxx‘ not found问题)
glibc编译时报错:configure: error:*** LD_LIBRARY_PATH shouldn‘t contain the current directory when ***
linux安装指定版本glibc,适配降级

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值