iptables 配置中 NETMAP 选项的替代方案

iptables 配置中 NETMAP 选项的替代方案

连接到 openvpn 服务器 (Qnap nas) 时,我需要将整个子网从一个范围 nat 到另一个范围。我找到了一种使用 iptables netmap 的方法。

iptables -t nat -A PREROUTING -d 10.8.0.0/24 -j NETMAP --to 192.168.1.0/24

问题是 qnap Nas 似乎不支持 netmap。我需要知道如何仅使用常见的 nat 选项(snat、dnat 或 masquerade)对网络进行 NAT。

相关内容