全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
12
返回列表 发新帖
楼主: yanzhiling2002

[疑问] iptables的转发总是莫名失效,有什么处理办法

[复制链接]
发表于 2024-4-27 13:12:28 | 显示全部楼层
yanzhiling2002 发表于 2024-4-27 09:13
是的,没重启就失效了,ssh登陆上,新建个端口转发也能用

试试一键转发的
 楼主| 发表于 2024-4-27 13:14:28 | 显示全部楼层
ant48 发表于 2024-4-27 13:12
试试一键转发的

有哪些工具推荐一下
发表于 2024-4-27 13:38:52 | 显示全部楼层
本帖最后由 ant48 于 2024-4-27 13:39 编辑
yanzhiling2002 发表于 2024-4-27 13:14
有哪些工具推荐一下


wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/iptables-pf.sh && chmod +x iptables-pf.sh && bash iptables-pf.sh

./iptables-pf.sh


备用的

wget -N --no-check-certificate https://www.vrrmr.net/Code/iptables-pf.sh && chmod +x iptables-pf.sh && bash iptables-pf.sh

./iptables-pf.sh
 楼主| 发表于 2024-4-27 14:54:11 | 显示全部楼层
ant48 发表于 2024-4-27 13:38
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/ip ...

我用的就是这个.....
那大概就是我机器的问题了,我重装系统试试吧
发表于 2024-4-27 15:00:40 | 显示全部楼层
裝iptables-persistent 把規則持久化 不然iptables重啟規則就沒了
 楼主| 发表于 2024-4-28 09:57:59 | 显示全部楼层
换了realm转发了,配置简单,很爽,默认同时转发tcp和udp

https://github.com/zhboner/realm
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-7 13:33 , Processed in 0.058398 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表