Page 1 of 1

direct traffic from one subnet to html page

Posted: Mon Mar 04, 2019 11:27 pm
by kokaKorina
Hello everyone
is there anyway for directing all traffic from one subnet to html page that is saved inside the mikrotik. I am trying to put some pppoe customers that are not paying bill to go to the html page . I tried using hotspot but it is not working and in firewall rules I could not find the option for html.page
Thanks

Re: direct traffic from one subnet to html page

Posted: Tue Mar 05, 2019 6:35 am
by christopherh
Hello,

You could use something like this:
/ip firewall nat
add chain=dstnat src-address=<IP-PREFIX> protocol=tcp action=dst-nat to-addresses=webserver_ip to-ports=80
Regards,
Christopher H.

Re: direct traffic from one subnet to html page

Posted: Tue Mar 05, 2019 4:15 pm
by kokaKorina
Christopher H
Thanks for replying but is it possible that html page is saved in local mikrotik files and directed towards it

Re: direct traffic from one subnet to html page

Posted: Tue Mar 05, 2019 10:22 pm
by kokaKorina
anyone?