I dont know if it was here solved. I have weserver on my network(local webserver), when somebody open webbrowser I want to redirect him to my webserver, once a week. I can do that using dstnat, but I dont know how to do that just once a week.
Redirect them the one time, place a rule above the redirect rule that will add them to an address list, and then when you see that their IP has gone to your web server through the router add them to it for 1 week.
/ip firewall nat
add chain=dstnat dst-address=Your_Web_Server action=add-src-to-address-list address-list=Redirected address-list-timeout=1w protocol=tcp dst-port=80
add chain=dstnat src-address-list=!Redirected protocol=tcp dst-port=80 action=dst-nat to-address=Your_Web_Server
Just to throw it in there: just because you issued the redirect doesn’t mean they saw the web page. A lot of apps out there consume via HTTP and don’t directly show anything to the user.
Making sure they actually saw the page gets relatively convoluted and complicated.
I know about that and I mentioned it that the updates(windows, antivirus…) are problems. I know that it can be done in hotspot. But I would like to do it without hotspot. Is any way to do it?
The closest you might be able to do is to force users to use the proxy and in the proxy redirect them if they go to certain URLs. Then add them to the address list when you see them going to your server that will no longer redirect them to the proxy. You would still have the problem of other services that use HTTP to get information, and you would also have to define the URLs you wanted, but if you figure most people will go to google/yahoo/msn at some point once a week you might be good.