简体   繁体   中英

How to redirect all ipv6 dns request to local dnsmasq when there isn’t a nat table on my router?

I have redirected all ipv4 dns request to my local dns server on port 60053 use iptables -J redirect .

But when I trying to do the same things for ipv6 dns request I failed, cause there isn't a nat table for ipv6 on my router.

I have googled but didn't found a solution, any suggestions would be appropriate. Thanks.

The nat table isn't there because the kernel module isn't loaded. You'll need to load it (and probably install it first). If you're on OpenWRT, the package you need is ip6tables-mod-nat .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM