说明:tinyPortMapper
是一个易安装配置的端口转发工具,可转发UDP
和TCP
流量,其实和博主之前发的Socat
差不多,查看:Socat一键安装脚本,都只能一次转发单个端口。虽然没啥明显区别,但此类工具不嫌多,就拿出来说下。
脚本
系统要求:支持CentOS 6+
、Debian 7+
、Ubuntu 14+
。
脚本说明:脚本默认开启UDP
、TCP
转发,带开机自启功能,且一次只能转发单个端口,如果想转发多个端口请重复运行本脚本。
使用root
运行以下命令:
wget https://toot.su/drive/pic/tinyPortMapper.sh && bash tinyPortMapper.sh
按要求输入以下信息:
#如果你要用本地服务器的2222端口转发IP为1.2.3.4服务器的8888端口,那就依次填入指定参数。
请输入本地端口:2222
请输入远程端口:8888
请输入远程IP:1.2.3.4
输入后直到配置完成。
卸载
1、删除tinyPortMapper
rm -rf /tinyPortMapper
2、清空开机自启
#CentOS系统,编辑/etc/rc.d/rc.local,删除tinyPortMapper启动命令。
#Debian/Ubuntu系统,编辑/etc/rc.local,删除tinyPortMapper启动命令。
未经允许不得转载:嘟嘟 » tinyPortMapper端口转发一键脚本,可转发UDP和TCP流量
最新评论
请问下,python3 tg_username_update.py都会提示下面这个是因为什么啊 Traceback (most recent call last): File "tg_username_update.py", line 21, in <module> cake = emojize(":cake:", use_aliases=True) TypeError: emojize() got an unexpected keyword argument 'use_aliases'
不可以了
# Install [Debian] [bullseye] [amd64] Downloading... grep: (standard input): binary file matches Error! grub.cfg. root@RRR2:~#
博主你好,请问cloudfront 上传收费这个是事实吧,已经找了几个贴子确认了。 那有什么好办法能够避开这个收费呢?如果不能避开感觉还是cloudflare 比较稳。
来看看
第5步添加自定义主机名进去后等txt验证提示custom hostname does not name to this zone
那没事了,我静态博客。谢谢
为什么缓存键和源请求那里不设置缓存?