Community discussions

MikroTik App
 
markerasmus
just joined
Topic Author
Posts: 16
Joined: Tue Oct 17, 2023 12:19 pm

Pihole dstnat rule not working

Thu Oct 19, 2023 2:58 am

Good day all,

I have a dstnat rule as per the video from Mikrotik and it's not working
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=192.168.1.182 dst-port=80 protocol=tcp to-addresses=172.17.0.2 to-ports=80

Nothing is being redirected - I can connect directly to the container on 172.17.0.2 - I would like to use the 192.168.1.182 IP address
The counter is not going up as if the traffic is not being registered

I can't ping it from the mikrotik either - I can ping 172.17.0.2

thank you
 
markerasmus
just joined
Topic Author
Posts: 16
Joined: Tue Oct 17, 2023 12:19 pm

Re: Pihole dstnat rule not working

Thu Oct 19, 2023 2:19 pm

it's been resolved

there needs to be an address rule
add address=192.168.1.182 interface=Lan-bridge network=192.168.1.0
and the dstnat rule and it works
add action=dst-nat chain=dstnat dst-address=192.168.1.182 protocol=tcp to-addresses=172.17.0.2

Who is online

Users browsing this forum: No registered users and 1 guest