Community discussions

MikroTik App

Search found 52 matches

by alfagius
Wed Apr 09, 2014 5:49 pm
Forum: General
Topic: Logging -> Remote not working
Replies: 2
Views: 799

Re: Logging -> Remote not working

Proxy is all defaults, just using port 8888 instead of 8080.

It's is working fine, and I can see everything in the logs. It's the syslog that's being derpy.
by alfagius
Wed Apr 09, 2014 5:37 pm
Forum: General
Topic: Logging -> Remote not working
Replies: 2
Views: 799

Logging -> Remote not working

I am trying to catch the webproxy logs to a Kiwi syslog server on Windows (someone at work is using a public PC to watch p0rn) so we need to log the web activities of that PC. I set up transparent proxy, and all is fine - but I cannot get the Mikrotik to log to the syslog server. I set the web-proxy...
by alfagius
Mon Aug 19, 2013 10:44 am
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Makes me very happy to have started this, seeing how it's evolving :D

It was so much needed in UM!

Thank to all those who are contributing, and giving feedback.
by alfagius
Thu Aug 01, 2013 8:02 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Blimey ... you really took my basic script idea to the next level!
by alfagius
Thu Aug 01, 2013 3:50 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Oh ho!
Thank you, I'll give it a spin!
by alfagius
Thu Apr 18, 2013 6:24 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Tested it. Does not work. The credit-till-time variable has been removed, much to my annoyance. It was the concept on which this whole script was built. It's totally useless in 5.xx, and I've been trying to find a workaround. Haven't succeeded so far. In fact I'm considering going back to 3.xx to ge...
by alfagius
Thu Apr 04, 2013 1:07 pm
Forum: The User Manager
Topic: CSV generation on UserManager 5.xx
Replies: 0
Views: 1092

CSV generation on UserManager 5.xx

I don't know if there's some setting the I am missing, or this is an intended change. Userman 3 used to immediately give me the option to download a CSV with all the users generated when I created accounts with the batch function. Userman 5 doesn't seem to do this, and given that I am dealing with 1...
by alfagius
Sun Mar 24, 2013 10:12 am
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

I'll have to look into that on the new versions. I will give it a good peek tomorrow at work. Credit-till-time did exist in userman 3.xx, and it held the date of when an account was bound to expire according to the length of time assigned to it, and it's the foundation on which the whole script is b...
by alfagius
Sun Mar 03, 2013 8:40 am
Forum: The User Manager
Topic: "batch file" for user-manager
Replies: 8
Views: 7383

Re: "batch file" for user-manager

Yes I figured that one out :)

I got the jist of what's happening in the batch file, so i'll amend as necessary :)
by alfagius
Sat Mar 02, 2013 8:19 pm
Forum: The User Manager
Topic: "batch file" for user-manager
Replies: 8
Views: 7383

Re: "batch file" for user-manager

You sir, have my eternal gratitude!

Will give it a spin first thing on Monday, and report back :)
by alfagius
Sat Mar 02, 2013 10:08 am
Forum: The User Manager
Topic: "batch file" for user-manager
Replies: 8
Views: 7383

Re: "batch file" for user-manager

I wouldn't mind the password being in plain text.

The way things are set up, unless someone manages to breach Admin access on a domain level, I'll be the only one to see it.
by alfagius
Mon Feb 25, 2013 10:32 am
Forum: The User Manager
Topic: "batch file" for user-manager
Replies: 8
Views: 7383

Re: "batch file" for user-manager

Really? Nobody? :(
by alfagius
Mon Feb 25, 2013 10:31 am
Forum: The User Manager
Topic: need automatically delete Expired user
Replies: 2
Views: 2730

Re: need automatically delete Expired user

I created a script for the same exact problem, and so far it works like a charm (link at the bottom). I run it nightly and so far never failed :) Mind, I only tested it on 3.xx, so 4 and 5 are uncharted territory. If you can test it on 5.xx and let me know, it would be great! http://forum.mikrotik.c...
by alfagius
Fri Feb 22, 2013 3:36 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Added a small update to the original code that queries the status of the NTP client.

It only runs if NTP reports back as "syncronized", therefore avoiding any disasters due to an unset system date.
by alfagius
Fri Feb 22, 2013 2:33 pm
Forum: The User Manager
Topic: "batch file" for user-manager
Replies: 8
Views: 7383

"batch file" for user-manager

I work in a Hotel Environment, and got user-manager working like a charm, creating tickets and all that - no problems there. However I have situations, where I have large meetings on conferences, where instead of giving out tickets like it's Christmas, I create one multi-logon user directly onto the...
by alfagius
Fri Jun 01, 2012 6:03 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Please read the notes at the top of the file thoroughly, as having the right date and time is VERY important.
by alfagius
Fri Jun 01, 2012 5:52 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Due to how the variables are called, you have to put it in a script, and run the script itself.

It also handy to have in a script, as I run it automatically every night at 3am and cleans itself up.
by alfagius
Fri Feb 03, 2012 6:34 pm
Forum: General
Topic: License Downgrade problem
Replies: 3
Views: 716

Re: License Downgrade problem

Now I reinstalled 5.12 back, and still says the same thing.

*cries*
by alfagius
Fri Feb 03, 2012 6:15 pm
Forum: General
Topic: License Downgrade problem
Replies: 3
Views: 716

License Downgrade problem

Hello there. I have a RB Crossroads router that was happily running version 3. I upgraded it to version 5, as I was having a little issue that I wanted to check out on a different build. Installed without any issues, and when I loaded winbox, it requested to automatically upgrade from the old key to...
by alfagius
Mon Jan 23, 2012 4:54 pm
Forum: General
Topic: Export compact (new in v5.12)
Replies: 76
Views: 37242

Re: Export compact (new in v5.12)

The only word that describes this feature:

<3!
by alfagius
Wed Nov 02, 2011 9:21 am
Forum: General
Topic: External website / app scripting to hotspot users
Replies: 2
Views: 642

Re: External website / app scripting to hotspot users

Hmmmm ... I guess I'll stick to manual input then :D
by alfagius
Mon Oct 31, 2011 1:46 pm
Forum: General
Topic: External website / app scripting to hotspot users
Replies: 2
Views: 642

External website / app scripting to hotspot users

I have a little "problem" (more like an annoyance) that I'm not sure how to tackle. Is there any way, in which I can make a simplified webpage, where a user can input a username, and that username gets added to my hotspot user list? I administer the WiFi of two hotels, where people are given out aut...
by alfagius
Tue Oct 18, 2011 2:54 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Probably, since you're creating the username manually, you don't have a credit-till-time value. It's what the script is designed to parse, check and delete, so if it doesn't find the value, it errors and aborts. Try creating a username using its automated batch generator, and making sure you have a ...
by alfagius
Tue Oct 18, 2011 12:40 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Is the username "test" created in user-manager, or hotspot?
by alfagius
Tue Aug 30, 2011 11:21 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Don't forget to +1 the year too if you switch from December to January :D
by alfagius
Tue Aug 30, 2011 9:54 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

I guess the simplest and crudest way around it, is to +1 on the variable named creditMonth, unless it's 12 (December) where it should change it to 1 (January).

That way you'll be offsetting the expiry that it's checking my 1 month.
by alfagius
Tue Aug 30, 2011 9:35 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Not sure if I understood what you mean.

This script deletes any account whose expiry date is before today's date. Being yesterday, a month, or a year ago does not matter.

This script in a nutshell is: if expiry_date < today, then delete. Else skip.
by alfagius
Thu Aug 18, 2011 10:43 am
Forum: General
Topic: Webproxy: Https
Replies: 5
Views: 1199

Re: Webproxy: Https

That's what worried me.

So essentially, if facebook decide to tinker with their IP's, next DNS refresh will render me helpless, unless i keep checking them constantly.
by alfagius
Thu Aug 18, 2011 10:04 am
Forum: General
Topic: Webproxy: Https
Replies: 5
Views: 1199

Webproxy: Https

Good morning. I'm sure people already came across this issue, although I couldn't find anything on forums. I have built a webfilter for the company I work in, using the Mikrotik Webproxy, and it works like a charm, except for one thing. https://www.facebook.com http I block it fine, however https is...
by alfagius
Tue Aug 02, 2011 2:09 pm
Forum: General
Topic: Access control with Mikrotik Proxy
Replies: 11
Views: 1468

Re: Access control with Mikrotik Proxy

Ah ok.

Thanks a lot for your constant help :)

I know my way around netinstall.
by alfagius
Tue Aug 02, 2011 1:59 pm
Forum: General
Topic: Access control with Mikrotik Proxy
Replies: 11
Views: 1468

Re: Access control with Mikrotik Proxy

Nope .. I mean 3.5

Unfortunately the box I have (RB532A) doesn't allow me to go further than v3.x.

The other box (a x86) is running 3.3, and I can see reset-html fine.

*scratches head*
by alfagius
Tue Aug 02, 2011 1:52 pm
Forum: General
Topic: Access control with Mikrotik Proxy
Replies: 11
Views: 1468

Re: Access control with Mikrotik Proxy

reset-html doesn't seem to be an option on v3.5 on mipsle.

curiously, I can find it on v3.3 on x86.
by alfagius
Tue Aug 02, 2011 1:14 pm
Forum: General
Topic: Access control with Mikrotik Proxy
Replies: 11
Views: 1468

Re: Access control with Mikrotik Proxy

Perfect. Thanks once again.
by alfagius
Tue Aug 02, 2011 12:40 pm
Forum: General
Topic: Access control with Mikrotik Proxy
Replies: 11
Views: 1468

Re: Access control with Mikrotik Proxy

Hi again. I'm testing it, and it works like a dream, although I'll probably move it to a PC based one for better resources. Final question ... is it possible for me to create my own "denied" page, instead of the generic mikrotik one? I've already done it successfully with hotspot pages .. don't know...
by alfagius
Tue Aug 02, 2011 12:14 pm
Forum: General
Topic: Access control with Mikrotik Proxy
Replies: 11
Views: 1468

Re: Access control with Mikrotik Proxy

Exactly what I needed to hear.

Thank you muchly!
by alfagius
Tue Aug 02, 2011 10:51 am
Forum: General
Topic: Access control with Mikrotik Proxy
Replies: 11
Views: 1468

Access control with Mikrotik Proxy

Good morning network gurus! I thought I'd ask here if what I have in mind is possible, before wasting a week of my time on it, and getting nowhere. I'm the admin of a network of 50-60 computers, sharing a DSL connection of 6Mbps/512kbps. As you can imagine, the traffic is not so busy, as their tasks...
by alfagius
Mon Aug 01, 2011 10:04 am
Forum: General
Topic: Ancient license
Replies: 3
Views: 610

Re: Ancient license

So I will automatically assume that it can't be upgraded without a new license :)

I would use it, but I'm too used to Winbox and the modern routerOS functions. I guess I'll just purchase one!
by alfagius
Fri Jul 29, 2011 5:05 pm
Forum: General
Topic: Ancient license
Replies: 3
Views: 610

Ancient license

Hi, I was looting in my office drawer this week, and managed to dig out an old mikrotik IDE flash drive (the ones that had the Master and Slave molex power plug). I managed to fire it up, and it seems to be running 2.4.7 (a dinosaur I know .. it doesn't even support Winbox). My question is .. is suc...
by alfagius
Mon Jul 25, 2011 9:32 am
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

I think much safer that warning in comment is:
:if ([/system ntp client get status]="synchronized") do={"original script here"}
Everybody not only ISP,WISP should sync their clock.
by alfagius
Sun Jul 24, 2011 8:49 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

No. Time syncing is something that you have to do yourself with an NTP time server.
by alfagius
Fri Jun 17, 2011 8:50 am
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Re: Solution: Automatically clean expired User-Manager accou

Thanks for the comments. I have only tested it on version 3.xx, so I have no idea what changes were done to the user-manager in version 5. I'll try to install version 5 on a spare Mikrotik when I have a free moment and have a peek at it, however I wouldn't hold my breath as my hands are pretty full ...
by alfagius
Fri Jun 03, 2011 3:49 pm
Forum: Scripting
Topic: Mikrotik and Mini PCI card 2w
Replies: 9
Views: 2004

Re: Mikrotik and Mini PCI card 2w

Also check the antenna a or antenna b option.

It got me fooled a couple of times before.
by alfagius
Fri Jun 03, 2011 2:06 pm
Forum: The User Manager
Topic: [Solved] Expired user-manager users.
Replies: 14
Views: 13022

Re: Expired users

And here you go.

Script finished and tested. Posted on the Scripting section for whoever needs it: http://forum.mikrotik.com/viewtopic.php?f=9&t=52261

Please note that this applies for users in the user-manager package database, not standard Mikrotik hotspot user lists.
by alfagius
Fri Jun 03, 2011 2:05 pm
Forum: Scripting
Topic: Solution: Automatically clean expired User-Manager accounts
Replies: 72
Views: 50215

Solution: Automatically clean expired User-Manager accounts

Finally managed to code it, after a couple of sleepless nights! I'm sure many people will find this useful, as I've seen quite some requests for this "missing feature". The problem: User-Manager has no automated way to delete accounts which have gone past their 'credit-till-time' date. In a busy env...
by alfagius
Fri Jun 03, 2011 1:56 pm
Forum: Scripting
Topic: Cleaner ID parsing
Replies: 4
Views: 981

Re: Cleaner ID parsing

I discovered however that even if you're working on a script that runs automatically, and you're not watching in console, the print function does its job, so it's not really a problem.

I just opted for "print brief without-paging" :)
by alfagius
Fri Jun 03, 2011 11:00 am
Forum: Scripting
Topic: Cleaner ID parsing
Replies: 4
Views: 981

Re: Cleaner ID parsing

Pity.

Thanks for the clear reply though.
by alfagius
Thu Jun 02, 2011 9:56 pm
Forum: Scripting
Topic: Cleaner ID parsing
Replies: 4
Views: 981

Cleaner ID parsing

Hi, I am currently writing a script for automatically cleaning out expired user-manager accounts. Using version 3.x by the way. So far so good, but there's one thing that's bugging and I hope someone here can help. The question is generic scripting related, not user-manager specifically. I'm doing a...
by alfagius
Thu Jun 02, 2011 2:59 pm
Forum: The User Manager
Topic: [Solved] Expired user-manager users.
Replies: 14
Views: 13022

Re: Expired users

I have figured it out finally after a day of banging my head on the keyboard.

Working on a lengthy script that removes any user whos credit-till-time is less than today's date.

Still ironing out a few bugs, but will post it as soon as it's 100% working. :D
by alfagius
Wed Mar 30, 2011 4:08 pm
Forum: The User Manager
Topic: [Solved] Expired user-manager users.
Replies: 14
Views: 13022

Re: Expired users

nothing from anybody?? :(
by alfagius
Thu Mar 03, 2011 11:26 am
Forum: The User Manager
Topic: [Solved] Expired user-manager users.
Replies: 14
Views: 13022

[Solved] Expired user-manager users.

Hi, Looked for his around forum but didn't manage to find anything about it. Once an activated account is over its validity period, is it automatically removed from the userlist? My issue is, I create around 200+ users a week on the system (it's a hotel) and I don't want to end up clocking 1000's of...
by alfagius
Mon Feb 21, 2011 4:32 pm
Forum: The User Manager
Topic: Voucher with Serial Numbers !
Replies: 62
Views: 39062

Re: Voucher with Serial Numbers !

Is it still possible to get a copy of this program?

alfagius@gmail.com
by alfagius
Mon Feb 21, 2011 4:21 pm
Forum: The User Manager
Topic: Couple of non-critical questions about vouchers
Replies: 0
Views: 603

Couple of non-critical questions about vouchers

Hello. I have just discovered (by accident) the Mikrotik user manager, and it's the answer to all my previous prayers. I used to use random password generators before, then scripting a whole import thing for account generation, then mail merge to create the tickets. All I say is "Thank you!" I have ...