电视盒子开IPv6无法观看网飞netflix;ppgw是否支持ula ipv6地址呢? #98
-
因为电视或者盒子播放netflix如果开着ipv6的话,默认连ipv6.inet6能自动获取ula地址的话做ipv6的静态路由应该就可以解决这个问题。 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
v6做静态路由并没有太大意义,因为你最终还是通过v4连接节点。 iptables -I FORWARD --destination 8.8.8.8 -j DROP
iptables -I FORWARD --destination 8.8.4.4 -j DROP
ip6tables -I FORWARD --destination 2001:4860:4860::8844 -j DROP
ip6tables -I FORWARD --destination 2001:4860:4860::8888 -j DROP 某些产品如Google Cast可能强制使用谷歌DNS否则不能启动,可以考虑重定向谷歌DNS到局域网DNS服务,具体示例命令如下: iptables -t nat -A PREROUTING -s 192.168.x.x/24 -d 8.8.8.8 -p udp --dport 53 -j DNAT --to 192.168.x.x
iptables -t nat -A PREROUTING -s 192.168.x.x/24 -d 8.8.4.4 -p udp --dport 53 -j DNAT --to 192.168.x.x 如果以上两方面都不能解决问题,并且电视盒子不需要v6地址的话,可以考虑对电视盒子禁用v6分配。如下两种方案: # 将FF:FF:FF:FF:FF:FF替换为设备对应地址,将br-lan替换为你的LAN口名称
ip6tables -A input_lan_rule -i br-lan -p ipv6-icmp -m mac --mac-source FF:FF:FF:FF:FF:FF -j DROP
ip6tables -A input_lan_rule -i br-lan -p udp --dport 547 -m mac --mac-source FF:FF:FF:FF:FF:FF -j DROP 3、弄一个子路由给电视盒子用,二级路由分配不了v6地址。 如果以上方案都不能解决需求,那么话题回到你想要静态路由上,可以直接考虑对netflix的v6地址段进行DROP,这与你“想通过v6静态路由”来解决问题实际上是一样的,netflix在v6不可用就自然会使用v4,与其考虑怎么静态路由,不如直接DROP掉。 参考资料: |
Beta Was this translation helpful? Give feedback.
-
盒子的netflix也是ip直接访问的,而开了ipv6貌似就v6优先,禁止v6是有效的,毕竟v4的route一直都正常。 不过我昨晚貌似解决了 |
Beta Was this translation helpful? Give feedback.
-
/ipv6 firewall filter |
Beta Was this translation helpful? Give feedback.
-
/ipv6 firewall filter 加个备忘。感谢大佬。 |
Beta Was this translation helpful? Give feedback.
-
Block Netflix IPv6 addressesip6tables -A FORWARD -s 2607:fb10::/32 -j DROP -m comment --comment "Netflix ipv6" |
Beta Was this translation helpful? Give feedback.
/ipv6 firewall filter
add chain=forward action=drop dst-address=2607:fb10::/32 comment="Netflix ipv6"
add chain=forward action=drop dst-address=2620:10c:7000::/44 comment="Netflix ipv6"
add chain=forward action=drop dst-address=2a00:86c0::/32 comment="Netflix ipv6"
add chain=forward action=drop dst-address=2a03:5640::/32 comment="Netflix ipv6"
加个备忘。感谢大佬。