menu LittleJake's Blog
color_lens
avatar
Jake Liu
Never Settle
creative commons by-nc-sa
hit
Category
keyboard_arrow_down

© 2024 LittleJake's Blog.

萌ICP备20223020号

使用二级路由搭建DNSv6服务器,打通二级路由下机器NAT,并分配IPV6地址

Device Info

  1. Huawei ONT EPON Device
  2. Newwifi3 - with Padavan firmware

Needs

  • Full Cone NAT
  • DNSv6 server (SmartDNS: to avoid DNS pollution and IPV6 enabled)
  • Terminal IPV6 Address (DHCPv6)

Ways have Tried

  1. Newwifi3 acts as a router
  2. Newwifi3 runs with AP mode
  3. Newwifi3 acts as a second router
  4. Newwifi3 acts as a router on the WAN port while LAN ports act as a switch with DHCP disabled.

Tests result

Newwifi3 acts as a router

poor compatible with IPV6 and DHCP not available.

Newwifi3 runs with AP mode

No IPV6 address for the router so that it can't be a DNSv6 server but NAT is fully functional.

Newwifi3 acts as a second router

NAT mode automatically changes to Port Strict NAT as well as nat66 needs to be enabled when DHCP relay from the upper router. 6relay can set the DNS from the upper router but not manual.

Problems

  1. DNS query is too slow and it is highly possible that terminals can't query DNS server due to starting Smartdns after Dnsmasq.

    Using ping to determine whether the DNS server is working.

  2. Binding all interfaces is needed to make the DNS server can be both access from WAN port and LAN ports.

    Dnsmasq conf

    no-resolv
    server=127.0.0.1#8053 
    dns-forward-max=100000
    min-cache-ttl=1800
    domain-needed
    interface=*

Buy me a beer

buymeacoffee
Jake Liu
Never Settle

Title: 使用二级路由搭建DNSv6服务器,打通二级路由下机器NAT,并分配IPV6地址

Author: Jake Liu

Origin:

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) For any re-post you must give appropriate credit.

文章遵循CC许可 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 转载请注明出处

Tag:NAT, Padavan, SmartDNS, dnsmasq, 华为, DNS服务器, 6relay

评论区

Add a new comment.

Theme