4

ip6tables 支持负网络掩码符号吗?

 2 years ago
source link: https://www.v2ex.com/t/787919
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Linux

ip6tables 支持负网络掩码符号吗?

  acbot · 18 小时 4 分钟前 · 309 次点击
OpenWRT 在 IPv6-PD 模式下 fw3 可以用 Dynamic prefix forwarding 方式将路由器下服务器发布到公网 具体就是用负掩码参数方式 解决 PD 前缀不固定的问题 比如 uci set firewall.@rule[-1].dest_ip="::23/-64" 这样就是指定 IPv6 地址后 64 位 这样也就指定了服务器地址,那么 Linux 的 ip6tables 支持负网络掩码符号吗 比如 ip6tables -t nat -A PREROUTING -i -p tcp --dport 80 -j DNAT --to-destination ::1/-64

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK