Linux iptables端口转发

# iptables -t nat -A PREROUTING -p udp --dport 314 -j DNAT --to-destination 本机IP:3140

# cp -a /etc/sysconfig/iptables.rules /etc/sysconfig/iptables.rules20230725

# iptables-save > /etc/sysconfig/iptables.rules

posted @   LB_运维技术  阅读(17)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 一文读懂知识蒸馏
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
历史上的今天:
2022-07-25 Linux shell 实战精炼版-更新中
点击右上角即可分享
微信分享提示