Community discussions

MikroTik App

Search found 13 matches

by technicarl
Wed Dec 10, 2014 6:10 am
Forum: The User Manager
Topic: redirect user after reaching usage limit
Replies: 6
Views: 2260

Re: redirect user after reaching usage limit

Try this..

$(if error == "Transfer limit reached")
by technicarl
Wed Dec 10, 2014 6:00 am
Forum: The User Manager
Topic: redirect user after reaching usage limit
Replies: 6
Views: 2260

Re: redirect user after reaching usage limit

OK, if you are not in a big rush: I am working on something similar so once I have a more detailed example I will make it available to you (once it works). I am not so hot on the html side so I need to figure out how to set up an html algorithm (not using the log entry). Basically I want to set up s...
by technicarl
Fri Dec 05, 2014 7:19 am
Forum: The User Manager
Topic: redirect user after reaching usage limit
Replies: 6
Views: 2260

Re: redirect user after reaching usage limit

modify this in login.html

$(if error)
<meta http-equiv="refresh" content="4; url=http://whatever/">
$(endif)
by technicarl
Fri Dec 05, 2014 5:35 am
Forum: The User Manager
Topic: redirect user after reaching usage limit
Replies: 6
Views: 2260

Re: redirect user after reaching usage limit

Here's a sketch:

capture the log message - change the server profile assignment to one that uses alogin.html with redirect - put your redirect in walled garden.
by technicarl
Fri Dec 05, 2014 5:27 am
Forum: The User Manager
Topic: Clear profiles
Replies: 1
Views: 844

Re: Clear profiles

Hi,

I don't see an answer yet, but recreating the user would work around the problem. ?
by technicarl
Thu Dec 04, 2014 5:46 am
Forum: General
Topic: 1 Wan 2 Public IP's Gateway Failover
Replies: 8
Views: 2544

Re: 1 Wan 2 Public IP's Gateway Failover

Suggestion: Make two gateways dest=0.0.0.0 gateway=ISP distance 1 and the other distance 2 create your gateways for host ping ISP1 as you did. no routing marks create netwatches for your gateway1 ping hosts - down script disables the first route if other netwatch is also down, up enables That is pur...
by technicarl
Thu Dec 04, 2014 5:28 am
Forum: General
Topic: 1 Wan 2 Public IP's Gateway Failover
Replies: 8
Views: 2544

Re: 1 Wan 2 Public IP's Gateway Failover

OK, I see that you have implemented your own system for checking gateways etc. and if that works then the only problem I see is that you are using routing marks but you have not mentioned any firewall mangle settings. I recommend removing the routing marks because unless packets are marked with the ...
by technicarl
Tue Dec 02, 2014 7:53 am
Forum: General
Topic: 1 Wan 2 Public IP's Gateway Failover
Replies: 8
Views: 2544

Re: 1 Wan 2 Public IP's Gateway Failover

netwatch is under tools - I have a netwatch setup that monitors remote hosts for failover eg. 8.8.8.8 and it works well.

This does require a little scripting but only to disable/enable one gateway or the other - you can do it.
by technicarl
Tue Dec 02, 2014 7:51 am
Forum: General
Topic: need help
Replies: 5
Views: 972

Re: need help

This should do the trick:
/ip firewall filter add chain=forward action=drop in-interface=ether2 out-interface=ether1

That will add a filter rule dropping packets from your friends subnet to your isp.
by technicarl
Wed Nov 26, 2014 7:57 am
Forum: General
Topic: DSTNAT between two WAN
Replies: 2
Views: 578

Re: DSTNAT between two WAN

I may be wrong about the reversing of the translation but it would be neater to change the port number. Otherwise you may need to establish static routes for those IP's. Hope that helps.
by technicarl
Wed Nov 26, 2014 7:52 am
Forum: General
Topic: DSTNAT between two WAN
Replies: 2
Views: 578

Re: DSTNAT between two WAN

Are you not able to change the destination port to 8087 as well?
Otherwise you would need to reverse the port translation for acknowledgment.
by technicarl
Wed Nov 26, 2014 7:42 am
Forum: General
Topic: problems with userman
Replies: 1
Views: 727

Re: problems with userman

Have you set up a router (first button on the left) in user manager?

I also had trouble with the wiki - I think it may be a bit dated now.

Settings for user manager, hotspot and radius must correspond to use radius authentication.
by technicarl
Wed Nov 26, 2014 7:33 am
Forum: Scripting
Topic: avg-rtt from ping command
Replies: 10
Views: 6384

Re: avg-rtt from ping command

Thank you rextended :) You made my day - I don't know how to give karma. :local avgRttA 0 :local avgRttB 0 :local numPing 4 :local toPingIP1 8.8.8.8 :local toPingIP2 8.8.4.4 :for tmpA from=1 to=$numPing step=1 do={ /tool flood-ping count=1 size=38 address=$toPingIP1 do={ :set avgRttA ($"avg-rtt" + $...