MENU

zerotier转发局域网iptables规则

December 20, 2025 • Read: 26 • 教程·折腾

玩客云规则:

iptables -t nat -I POSTROUTING -s 192.168.203.0/24 -j MASQUERADE
iptables -I FORWARD -i ztqhjmxpb4 -j ACCEPT
iptables -I FORWARD -o ztqhjmxpb4 -j ACCEPT
  1. ztqhjmxpb4为ifconfig查看zerotier的网卡名称
  2. 192.168.203.0/24 找出当前zerotier所在虚拟网的网段

本文由 ONE 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
如有版权疑问交流,请给我留言:oneisall8955@gmail.com
本文永久链接:https://liuzhicong.cn/index.php/guide/zerotier-lan-iptables-rule.html

Archives QR Code Tip
QR Code for this page
Tipping QR Code