Community discussions

MikroTik App
 
User avatar
reevansxyz
just joined
Topic Author
Posts: 18
Joined: Sat Jul 02, 2022 7:49 pm
Location: Asia/Kuala_Lumpur
Contact:

Redirect DNS, but with IPv6?

Sat Aug 06, 2022 6:19 pm

Greetings MikroTik fam,

As of the moment this is how I'm redirecting my IPv4 DNS to my router.lan @ 10.17.1.1 :
/ip firewall nat
  add chain=dstnat dst-port=53 protocol=udp to-addresses=10.17.1.1 action=dst-nat comment="redirect DNS"

How may I replicate the above rule for IPv6?

Cheers,
Reev
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: Redirect DNS, but with IPv6?  [SOLVED]

Sat Aug 06, 2022 6:42 pm

/ipv6/firewall/nat/add chain=dstnat protocol=udp dst-port=53 action=dst-nat to-address=2003:456:789::1/128

But the mandatory pre-requisite is to run a new enough release of RouterOS v7. There is no IPv6 NAT in RouterOS v6, nor in early versions of RouterOS v7.
 
User avatar
reevansxyz
just joined
Topic Author
Posts: 18
Joined: Sat Jul 02, 2022 7:49 pm
Location: Asia/Kuala_Lumpur
Contact:

Re: Redirect DNS, but with IPv6?

Sat Aug 06, 2022 6:54 pm

/ipv6/firewall/nat/add chain=dstnat protocol=udp dst-port=53 action=dst-nat to-address=2003:456:789::1/128

But the mandatory pre-requisite is to run a new enough release of RouterOS v7. There is no IPv6 NAT in RouterOS v6, nor in early versions of RouterOS v7.

Heya there sindy,

Thank you for reaching out, P.S. I've never actually used RouterOS v6, the RB5009 that I recently got came with factory firmware RouterOS v7.1.3; where is 2003:456:789::1/128 coming from tho? Do I have to manually add that to the IPv6 address?

Regards,
Reev
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: Redirect DNS, but with IPv6?

Sat Aug 06, 2022 7:03 pm

where is 2003:456:789::1/128 coming from tho? Do I have to manually add that to the IPv6 address?
The particular address is a random one, just formally correct, just as an example; the /128 has been added by RouterOS so it is present in the export, but I have entered the address without it.
 
User avatar
reevansxyz
just joined
Topic Author
Posts: 18
Joined: Sat Jul 02, 2022 7:49 pm
Location: Asia/Kuala_Lumpur
Contact:

Re: Redirect DNS, but with IPv6?

Sat Aug 06, 2022 7:13 pm

where is 2003:456:789::1/128 coming from tho? Do I have to manually add that to the IPv6 address?
The particular address is a random one, just formally correct, just as an example; the /128 has been added by RouterOS so it is present in the export, but I have entered the address without it.

Brilliant, thanks a heap!

Who is online

Users browsing this forum: anav, Andrey05, Bing [Bot] and 94 guests