iptagles 批量中转端口怎么写

2016-03-14 16:30:09 +08:00
 dingzi
iptables -t nat -A PREROUTING -p tcp -d 120.*.*.* --dport 50027:60000 -j DNAT --to 47.*.*.* --sport 50027:60000
iptables -t nat -A PREROUTING -p udp -d 120.*.*.* --dport 50027:60000 -j DNAT --to 47.*.*.* --sport 50027:60000
iptables -t nat -A POSTROUTING -p tcp -d 47.*.*.* --dport 50027:60000 -j SNAT --to 120.*.*.* --sport 50027:60000
iptables -t nat -A POSTROUTING -p udp -d 47.*.*.* --dport 50027:60000 -j SNAT --to 120.*.*.* --sport 50027:60000


我按照这样格式添加 中转无效。 iptagles 无报错。
1539 次点击
所在节点    问与答
2 条回复
20150517
2016-03-14 16:40:04 +08:00
iptagles?拼错一次就算了,文章内容都拼错?什么鬼
dingzi
2016-03-14 17:05:08 +08:00
@20150517 你看一下里面的规则是否行得通。 iptagles 是复制的笔记上面的 没有仔细看。谢纠正。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/263404

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX