Community discussions

MikroTik App

Search found 155 matches

by krigevr
Tue May 13, 2008 6:31 pm
Forum: Scripting
Topic: Remove "unknown" interface
Replies: 5
Views: 5659

Re: Remove "unknown" interface

See how this works for you: :local name /ip hotspot :foreach i in=[/interface wireless access-list find authentication=yes] do={ :set name [/interface wireless access-list get $i interface]; :if ($name = "(unknown)") do={ /ip hotspot remove $i; :log info "Wireless Access List Interfac...
by krigevr
Tue May 13, 2008 12:05 pm
Forum: Scripting
Topic: Broken script since 2.9 to 3.9 upgrade
Replies: 5
Views: 1706

Re: Broken script since 2.9 to 3.9 upgrade

This works correctly under ROS 3.7: :local found :set found "0" /ip route :set found [/ip route find dst-address="0.0.0.0/0"] :if ($found = 0) do={ :log info "Dst-Address not found. Adding."; /ip route add dst-address=0.0.0.0/0 gateway=192.168.15.254; } :if ($found != 0...
by krigevr
Tue May 13, 2008 11:23 am
Forum: Scripting
Topic: Remove "unknown" interface
Replies: 5
Views: 5659

Re: Remove "unknown" interface

Give me some more information please,
like the output of your Access List, clearly showing which one you want to remove?

-K
by krigevr
Mon May 12, 2008 9:03 pm
Forum: General
Topic: unlimited
Replies: 6
Views: 1569

Re: unlimited

No. C1 requests a datastream that cannot exceed (for argument's sake) of 1 mbps from M2. M2 simply requests the same datapackets at the same rate (1mbps) from M1, which requests the same datapackets at the same rate (1mbps) from your ISP. M1 will NOT download faster than what the network needs, and ...
by krigevr
Mon May 12, 2008 8:41 pm
Forum: General
Topic: unlimited
Replies: 6
Views: 1569

Re: unlimited

M1 will only download as much, or as fast, as the network needs. If the network only requests 256k/512k in total, then that is what will be downloaded. M1 will not download more than it should, because where will it send that data? It's like trying to fill a bottle with a funnel, but you're pouring ...
by krigevr
Mon May 12, 2008 4:57 pm
Forum: The User Manager
Topic: Counter
Replies: 4
Views: 2282

Re: Counter

/ip hotspot print Flags: X - disabled, I - invalid, S - HTTPS # NAME INTERFACE ADDRESS-POOL PROFILE IDLE-TIMEOUT 0 hotspot1 hotspot hs-pool-3 hsprof1 5m In this case, you can see my idle time-out is 5 minutes, which is the default. You can change yours to any value you like. By the sound of things,...
by krigevr
Mon May 12, 2008 3:45 pm
Forum: The User Manager
Topic: RB150 v3.7 Userman not Responding
Replies: 11
Views: 4037

Re: RB150 v3.7 Userman not Responding

Glad to be of help!

-K
by krigevr
Mon May 12, 2008 3:03 pm
Forum: The User Manager
Topic: RB150 v3.7 Userman not Responding
Replies: 11
Views: 4037

Re: RB150 v3.7 Userman not Responding

I've written a script that searches for "/" in the address, and strips it, and everything after it in the line. I then incorporated your script to follow on it. Test it and see if it works: :local hip :local dip :local addy :local char :local count :local found :set addy [/ip address get [...
by krigevr
Mon May 12, 2008 1:49 pm
Forum: The User Manager
Topic: RB150 v3.7 Userman not Responding
Replies: 11
Views: 4037

Re: RB150 v3.7 Userman not Responding

Try this: if ( $hip != $dip ) do={ /radius set [/radius find service=hotspot] address=$dip } else={ :log info "No Changes" } Hope it helps. You can't "set 0" in script mode, because indexing (i.e. assigning the number "0" or "1" to a list) can only be done by ...
by krigevr
Mon May 12, 2008 1:03 pm
Forum: General
Topic: unlimited
Replies: 6
Views: 1569

Re: unlimited

let's say C2 is off. C1 is downloading with 1 mbps speed from M2 so what is the speed that M2 should received data with from M1 ? unlimited as the queue or only 1 mbps as C2 speed? and what is the speed that M1 should received from DSL? 3mbps or only 1 mbps as C2 speed? if M2 received an unlimited ...
by krigevr
Mon May 12, 2008 12:39 pm
Forum: The User Manager
Topic: Interim-Update ..?!
Replies: 12
Views: 16571

Re: Interim-Update ..?!

Good morning Thanks for the vote of confidence, SweetSunday! I'll keep you posted on my progress. Cobus, you are welcome to contact me on MSN (which you can also use as an E-mail address to reach me) and we can hook you up - theq2006@hotmail.com I've got two Radius servers - One running on Linux Fed...
by krigevr
Mon May 12, 2008 12:32 pm
Forum: Scripting
Topic: help:email send
Replies: 4
Views: 1722

Re: help:email send

I've tested by putting three address list entries called 'spam' into my address lists. If I run this line :foreach i in=[/ip firewall address-list find list=spam] do={ :put $i } It correctly returns the three index values. You seem to have missed an "=" after "in" Hope it works n...
by krigevr
Sun May 11, 2008 10:15 pm
Forum: The User Manager
Topic: Counter
Replies: 4
Views: 2282

Re: Counter

Set the Inactivity Timeout.
by krigevr
Sun May 11, 2008 10:09 pm
Forum: Scripting
Topic: help:email send
Replies: 4
Views: 1722

Re: help:email send

Try this:

:foreach i in (/ip firewall address-list find list=spam) do={
/tool e-mail send to=myname@myaddress.dk from=noreply@youraddress.dk server=your.SMTPserver.ip.addres subject="Subject Line Here" body="Inser your message body"
}

Hope that helps!
by krigevr
Sun May 11, 2008 10:05 pm
Forum: The User Manager
Topic: RB150 v3.7 Userman not Responding
Replies: 11
Views: 4037

Re: RB150 v3.7 Userman not Responding

I've got scripts that can solve that problem, assuming of course that all your IPs are being updated to a service like DynDNS or ChangeIP.

I'll be happy to share, if you want.
by krigevr
Thu May 08, 2008 10:17 pm
Forum: The User Manager
Topic: RB150 v3.7 Userman not Responding
Replies: 11
Views: 4037

Re: RB150 v3.7 Userman not Responding

Are you running Hotspot or PPTP / PPPoE?
Is your /radius server set?
Is your /tool user-manager router added?

In case of Hotspot:
Does your Hotspot Profile have it's Use-Radius set?

In case of PPPoE/PPTP:
Is /ppp aaa use-radius set?

-K
by krigevr
Thu May 08, 2008 10:08 pm
Forum: General
Topic: Static Ips and Nat
Replies: 2
Views: 1194

Re: Static Ips and Nat

What about Bridging Eth1 and Eth3, and giving the Bridge interface IP 62.38.167.2

-K
by krigevr
Thu May 08, 2008 10:01 pm
Forum: The User Manager
Topic: Reset counters
Replies: 3
Views: 5939

Re: Reset counters

Well, see if you can decypher the Billing subscript of my Automated billing thingy - That one provides for the functionality of E-mailing the client, and yourself, some usage information before resetting the counters. You can chop and change as you like, of course. But yes, it is definitely possible...
by krigevr
Wed May 07, 2008 10:29 pm
Forum: The User Manager
Topic: Interim-Update ..?!
Replies: 12
Views: 16571

Re: Interim-Update ..?!

Excellent, I'll try that one out - That'll solve my problem partly. But let's suppose for the moment that the month lapses, and you have to reset your counters and such, with PPPoE sessions still active - User Manager will set everything to Zero, but the moment another interim-update from an active ...
by krigevr
Wed May 07, 2008 10:00 pm
Forum: RouterBOARD hardware
Topic: RB 411 ETH1 problem
Replies: 3
Views: 3202

Re: RB 411 ETH1 problem

Hey,

If you can't get your Null Modem interface to work, you'll have to either log in by Wireless (which I assume is also not working) or Reset the system.

The reset just puts RouterOS back to Default settings - It doesn't wipe RouterOS off.

-Krige
by krigevr
Wed May 07, 2008 9:58 pm
Forum: General
Topic: mt & freeradius
Replies: 1
Views: 1011

Re: mt & freeradius

I'm struggling with similar issues. As far as I know, one can let FreeRadius send out an Acct-Status-Type value of Start, Stop or Interim-Update. (And 4 others that I'm not going to get into right now.) I'm presuming one must stop it, and start it again. However, records don't get stored in FreeRadi...
by krigevr
Wed May 07, 2008 9:44 pm
Forum: Scripting
Topic: what is wrong with this script !!
Replies: 2
Views: 1446

Re: what is wrong with this script !!

:foreach i in [ /ip proxy access find] do={ :if ([:find [/ip proxy access get $i comment] "Allow Download"]=0) do={/ip proxy access set $i disabled=no } }; It's Proxy instead of Web-Proxy, and Print command doesn't work in Script for obtaining/assigning index values - but the index 'count...
by krigevr
Wed May 07, 2008 9:28 pm
Forum: The User Manager
Topic: Reset counters
Replies: 3
Views: 5939

Re: Reset counters

You can write a script to execute the following command at Month's End:
/tool user-manager user
reset-counters
See my Automated Billing script's Month-End script, which may be of help:
http://wiki.mikrotik.com/wiki/AutomatedBilling

-Krige
by krigevr
Wed May 07, 2008 1:05 pm
Forum: The User Manager
Topic: Interim-Update ..?!
Replies: 12
Views: 16571

Re: Interim-Update ..?!

What I would like to establish, is if other radius managers will resolve the problem, i.e do the bytes upload -and download counters increase at the predetermined interim update interval and do the dynamic queues active on the remote router(s) automatically change according to the changes in the ra...
by krigevr
Mon May 05, 2008 12:56 am
Forum: General
Topic: Fiail-Over Internet Connection with 2 ISPs
Replies: 2
Views: 1303

Re: Fiail-Over Internet Connection with 2 ISPs

Two possible options that I can think of, off the top of my head: First, You can write a script that will check for gateway activity on MT1 / ISP1, and have it update the public address to ChangeIP or something of the kind. Should the gateway fail, MT2 / ISP2 can be forced to update THEIR public add...
by krigevr
Mon May 05, 2008 12:23 am
Forum: The User Manager
Topic: Interim-Update ..?!
Replies: 12
Views: 16571

Re: Interim-Update ..?!

Hi Cobus I've got two other users - one of which is using my script, with the same problem. While exploring the options on User Manager, I'm also slowly developing a FreeRadius solution. Also thinking about selling realms on my Radius server (which is in Cape Town) to other WISPs, and let them use m...
by krigevr
Sat May 03, 2008 3:15 pm
Forum: Beginner Basics
Topic: 1:1 mapping
Replies: 7
Views: 4175

Re: 1:1 mapping

Oops... My bad!

Thanks for noticing, SurferTim. :-)
by krigevr
Sat May 03, 2008 2:25 am
Forum: The User Manager
Topic: Interim-Update ..?!
Replies: 12
Views: 16571

Interim-Update ..?!

Howdy. I'm looking for a solution to terminate an active accounting session, which is associated with a PPPoE session, without actually killing the PPPoE session. Testing environment is an RB532 running PPPoE Server and User Manager. Under /tool user-manager session, I am able to remove a current ac...
by krigevr
Fri May 02, 2008 10:20 pm
Forum: The User Manager
Topic: User-Manager - mistifying?
Replies: 5
Views: 2724

Re: User-Manager - mistifying?

Haha! True, but I STILL haven't attempted going back to work yet!

I'm glad to hear my script is performing to your satisfaction.
I'm working on an update.

I wonder if MT will give me another free licence if I write a nifty update and add some features. Hmmm. *chin-rub*
by krigevr
Fri May 02, 2008 9:56 pm
Forum: Beginner Basics
Topic: 1:1 mapping
Replies: 7
Views: 4175

Re: 1:1 mapping

ip firewall nat add chain=dstnat action=src-nat protocol=tcp dst-port=5555 dst-address=[your router WAN address] to-ports=5555 to-address=[your client address]

Try that.
by krigevr
Fri May 02, 2008 9:45 pm
Forum: The User Manager
Topic: User-Manager - mistifying?
Replies: 5
Views: 2724

Re: User-Manager - mistifying?

Hey kids,

Sorry I've been overseas for a while.

I'm looking into that problem, SweetSunday.
Will get back to you guys in due course.

-Krige
by krigevr
Fri May 02, 2008 9:42 pm
Forum: The User Manager
Topic: Port forwarding to User-Manager
Replies: 3
Views: 8139

Re: Port forwarding to User-Manager

What I've done is to forward a Non-standard port. Let me explain my setup: Internet -> DSL Router -> Mikrotik RB150(A) -> a network -> Mikrotik RB150(B) -> Client PC My client wants Web access to his home server. But I'm already using Port 80 for my own purposes - So I gave him port 90. Sounds stran...
by krigevr
Fri May 02, 2008 9:16 pm
Forum: The User Manager
Topic: User-manager - the nightmare continues.
Replies: 6
Views: 2947

Re: User-manager - the nightmare continues.

If anyone needs information, I'll gladly enter into this discussion. I've reviewed your posts thus far. So *they* need to be able to access their usage for the current month at any time so's they know where they are with it, and *I* need to know at the month's end if they exceeded their cap and have...
by krigevr
Wed Apr 23, 2008 11:37 am
Forum: General
Topic: PPP Help - Local Address, Remote Address Subnet
Replies: 6
Views: 2418

Re: PPP Help - Local Address, Remote Address Subnet

Not in my experience...
by krigevr
Wed Apr 23, 2008 11:27 am
Forum: General
Topic: PPP Help - Local Address, Remote Address Subnet
Replies: 6
Views: 2418

Re: PPP Help - Local Address, Remote Address Subnet

Hey, You can use 192.168.0.1 as a Local Address, and create an Ip Pool with ranges 192.168.0.2 - 192.168.2.254. That should give you approximately 760 IPs to use, under subnet mask 255.255.0.0. (Is that netmask value of /16? Someone correct me!) A nifty advantage for using statically assigned IP add...
by krigevr
Mon Apr 14, 2008 5:43 pm
Forum: Beginner Basics
Topic: Different ISP for selected Users
Replies: 5
Views: 1793

Re: Different ISP for selected Users

Thanks a million, the first portion seems to be working fine, still struggling to get the second part working. I'll hack away at it for a while. A problem I've discovered in the meanwhile is that each of my two WANs have different DNS servers. But this information must be passed to the client comput...
by krigevr
Mon Apr 14, 2008 1:28 pm
Forum: Scripting
Topic: Problem with script on 3.6 using run command
Replies: 2
Views: 1441

Re: Problem with script on 3.6 using run command

Hi,

Is that the entire script?
SHow me what else you have.
You may just need a 'get' command here and there to establish the framework that your IF statement runs on.

Can also contact me on MSN (see my user profile) if you have questions.

-Krige
by krigevr
Mon Apr 14, 2008 1:17 pm
Forum: Beginner Basics
Topic: Different ISP for selected Users
Replies: 5
Views: 1793

Re: Different ISP for selected Users

Heya, Thanks! I'll give that a shot. However, just reading that solution leaves one problem - That will work for my main station, but the downlinks from the other towers run through a single ethernet port - but I configured them with two IP addresses for each downlink trunk. How, then, can I get my ...
by krigevr
Sat Apr 12, 2008 10:54 am
Forum: Beginner Basics
Topic: Different ISP for selected Users
Replies: 5
Views: 1793

Different ISP for selected Users

Hi, I've got a scenario where I have a few towers, each running ROS with their own PPPoE servers and user managers. (Not the smartest to run several UMs, I know) Each tower has a few clients connected to it, all works beautifully. Towers are interconnected with each other on IP-level, each subnet NA...
by krigevr
Thu Nov 01, 2007 7:58 am
Forum: Scripting
Topic: Please Help Is This a Bug or I made a Mistake ????
Replies: 14
Views: 2965

Re: Please Help Is This a Bug or I made a Mistake ????

What version of RouterOS are you using?

There are some known errors in the scripting for 2.9.x, which seems to have been solved by 3.0rcX.

Post the script as you have it now, and let's see if we can debug it some more.

-K
by krigevr
Thu Nov 01, 2007 7:56 am
Forum: The User Manager
Topic: User Manager for 3.0 later than rc5?
Replies: 5
Views: 2243

Re: User Manager for 3.0 later than rc5?

I got mine in the Separate packages downloads for RC5 (and rc6) for both the RB500 series as well as x86-based.

-K
by krigevr
Wed Oct 31, 2007 8:42 am
Forum: General
Topic: PPPoE IP Addresses.
Replies: 10
Views: 4671

Re: PPPoE IP Addresses.

Your PPPoE server is set to use a certain PPP Profile.

In your PPP Profile you can specify what DNS server address to issue, and you can also specify what firewall filters will apply to anyone using that profile.

See if that helps.

-K
by krigevr
Wed Oct 31, 2007 8:34 am
Forum: The User Manager
Topic: User Manager for 3.0 later than rc5?
Replies: 5
Views: 2243

Re: User Manager for 3.0 later than rc5?

Huh? What do you mean RC6 (or above) didn't come out with UserManager? I'm running an RB532A with RC6 out in the field, which has UserManager on it...

I still have the install file.
I'll upload it to my web server if you want it.

-K
by krigevr
Wed Oct 31, 2007 8:30 am
Forum: Scripting
Topic: Beginner: possible send/receive data through serial port?
Replies: 5
Views: 2536

Re: Beginner: possible send/receive data through serial port?

... script? I've not dealt with communicating with the Serial port before, but a script can execute just about any console command. See what commands you will use to send the comms using a Keyboard, and put it down in a script, and see what happens. I'm going to start experimenting with it as well, ...
by krigevr
Tue Oct 30, 2007 2:08 pm
Forum: Scripting
Topic: Beginner: possible send/receive data through serial port?
Replies: 5
Views: 2536

Re: Beginner: possible send/receive data through serial port?

Mikrotik's Serial setup responds to standard AT commands.

http://en.wikibooks.org/wiki/Serial_Pro ... T_Commands

I'm not sure which of these commands are (or are not) supported by (or necessary for) Mikrotik.
by krigevr
Tue Oct 30, 2007 2:05 pm
Forum: Scripting
Topic: reset run-count in /system scripts
Replies: 6
Views: 6826

Re: reset run-count in /system scripts

Nope, you can't change the Run Count.

You'll have to replace the Scheduler entry entirely if you want to get rid of the high number.
by krigevr
Tue Oct 30, 2007 11:24 am
Forum: Scripting
Topic: Please Help Is This a Bug or I made a Mistake ????
Replies: 14
Views: 2965

Re: Please Help Is This a Bug or I made a Mistake ????

For your FOREACH statement, you return index values based on a search for a Name under Interface, according to your script. But then you proceed to trigger a Monitor under /interface/wireless. The index values under Wireless are not the same list as is shown under Interface. You'll see if you do /in...
by krigevr
Mon Oct 29, 2007 7:13 pm
Forum: General
Topic: Disabling MPPE encryption via RADIUS?
Replies: 1
Views: 1156

Re: Disabling MPPE encryption via RADIUS?

Check out the Access-Accept attributes list in the manual.

Specifically MS-MPPE-Encryption-Policy
and MS-MPPE-Encryption-Types.

If you're using MySQL, you can either add it in RadGroupReply or something. Not entirely sure what the Values should be,

-K
by krigevr
Mon Oct 29, 2007 6:59 pm
Forum: Beginner Basics
Topic: ip adress on one networke
Replies: 8
Views: 2851

Re: ip adress on one networke

If you're using PPPoE for your internet connections, you can use IP addresses on your client's home and office to connect them on a 'virtual LAN' - Of course there are some security risks. Alternatively (And this is one option that I've implemented for a client) is to set up their CPE to also be abl...
by krigevr
Mon Oct 29, 2007 6:53 pm
Forum: Beginner Basics
Topic: upgrade - do I need a new license???
Replies: 2
Views: 1414

Re: upgrade - do I need a new license???

No need for new license when upgrading.

:-)
-K
by krigevr
Mon Oct 29, 2007 6:37 pm
Forum: General
Topic: More ways to earn free licenses!
Replies: 162
Views: 84287

Re: More ways to earn free licenses!

Whoo-hoo! Got my Level 6.

Thanks MikroTik!!! MUCH appreciated.

-K
by krigevr
Sun Oct 28, 2007 10:03 am
Forum: Scripting
Topic: netwatch script for working hours
Replies: 23
Views: 6231

Re: netwatch script for working hours

That's quite odd - Not working at all? What was wrong with them? Perhaps report the bug... I'm running Rc5, Rc6 And Rc7 on 6 different devices (3 RB532A and 3 AMD machines) in a production environment. Works perfectly. But yea, it's still a beta. And the Stable version has Script issues as far as I ...
by krigevr
Sun Oct 28, 2007 12:50 am
Forum: Scripting
Topic: How to prevent NATed access
Replies: 20
Views: 6571

Re: How to prevent NATed access

I wonder if one can put a Routing metric limit on it... Limit the TTL - Can that be done in MT?
by krigevr
Sat Oct 27, 2007 10:55 pm
Forum: General
Topic: Help in PPPOE configration
Replies: 7
Views: 2073

Re: Help in PPPOE configration

I'm serving about 80 clients with a configuration that is nearly identical to yours... Works fine. :-) My phone rang off the hook when I first started using PPPoE... but it works MUCH better than the previous system I used. Clients are happy now.
by krigevr
Sat Oct 27, 2007 8:39 pm
Forum: General
Topic: Help in PPPOE configration
Replies: 7
Views: 2073

Re: Help in PPPOE configration

Your configuration should work perfectly fine.

Ask again if you run into trouble - Will be happy to help.

-K
by krigevr
Sat Oct 27, 2007 6:49 pm
Forum: General
Topic: PPPoE on LAN Interface
Replies: 2
Views: 1084

Re: PPPoE on LAN Interface

Obviously you've got an IP address assigned to your LAN ethernet interface on MT. If you remove that address, there won't be a gateway for the non-PPPoE kids to route data through. Just remember to have a Local-Address assigned to the PPPoE-Server. Alternatively, if you Need IP-networking on the LAN...
by krigevr
Sat Oct 27, 2007 6:17 pm
Forum: General
Topic: Help in PPPOE configration
Replies: 7
Views: 2073

Re: Help in PPPOE configration

In PPPoE Profile, set the Local Address to something static, like 10.10.10.1. And in your NAT Rules, in your srcnat chain, you have to specify an Out-Interface (e.g. your WAN / internet connection.) This connection's gateway must obviously be set up, and /ip/dns must be configured. Hope that helps. -K
by krigevr
Sat Oct 27, 2007 6:10 pm
Forum: The User Manager
Topic: Why is it invalid?
Replies: 2
Views: 1926

Re: Why is it invalid?

The syntax on the dst-host command looks very strange... dst-host=:^www\\.paypal\\.com\$ dst-host=:^content\\.paypalobjects\\.com\$ What does the ":^" mean, and why all the backslashes? I'd imagine this would work: dst-host="www.paypal.com/$" dst-host="content.paypalobjects....
by krigevr
Sat Oct 27, 2007 6:06 pm
Forum: Scripting
Topic: netwatch script for working hours
Replies: 23
Views: 6231

Re: netwatch script for working hours

Many scripts that I have written doesn't want to work under 2.9.x.
Try upgrading to 3.0rc5 or above.
by krigevr
Sat Oct 27, 2007 3:03 am
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Thanks. Did some reading in the IT manual yesterday but there seem to be so many ways of doing 'virtually' the same thing - PPPoE, EoIP, PPP, L2TP &etc - all no doubt with their peculiar pros and cons for specific situations I know nothing of - that it's hard to know where to start. Well I'm go...
by krigevr
Fri Oct 26, 2007 8:24 pm
Forum: Scripting
Topic: netwatch script for working hours
Replies: 23
Views: 6231

Re: netwatch script for working hours

Of course it can.

View my Wiki post on Automated Billing - I have at least 4 IF-statements there that works in conjuction with the E-mail command.

I think the IF statement's boolean arguments are not working correctly.
by krigevr
Fri Oct 26, 2007 7:21 pm
Forum: General
Topic: strange ips in connections
Replies: 6
Views: 1879

Re: strange ips in connections

*eek*

OK
That's uber ood.

Not even a router somewhere within your network?
What does a Traceroute say about that address?
by krigevr
Fri Oct 26, 2007 7:08 pm
Forum: General
Topic: strange ips in connections
Replies: 6
Views: 1879

Re: strange ips in connections

I'm gonna assume there's a NAT gateway in there somewhere with an address of 192.168.0.20.
The addresses listed there looks to me like all connection originating from host or network behind 192.168.0.20.

... or not. :-)

-K
by krigevr
Fri Oct 26, 2007 7:06 pm
Forum: General
Topic: why 2 pppoe-server??
Replies: 4
Views: 1424

Re: why 2 pppoe-server??

The one is a PPPoE Client, the other is a PPPoE Server.

The server is for handling incoming PPPoE connections,
and the Client is for facilitating a PPPoE connection from your router to another server.

The PPPoE Client tool is very handy for CPE applications where the APs run PPPoE server.

-K
by krigevr
Fri Oct 26, 2007 7:04 pm
Forum: Scripting
Topic: reset run-count in /system scripts
Replies: 6
Views: 6826

Re: reset run-count in /system scripts

Have another script that runs every couple of hours, or every day or so, that Removes the 2-second script's entry from Scheduler, and replaces it with a fresh one.

Let me know if you need help with the coding.

-K
by krigevr
Fri Oct 26, 2007 5:56 pm
Forum: Scripting
Topic: netwatch script for working hours
Replies: 23
Views: 6231

Re: netwatch script for working hours

I've also got the server specified under /tool/email, but I put it in all my scripts anyway, just to be safe.

Other than that, I think it might be your IF statements.
I'll play with them a little bit and see if I can find the fault.

-K
by krigevr
Fri Oct 26, 2007 5:43 pm
Forum: Scripting
Topic: netwatch script for working hours
Replies: 23
Views: 6231

Re: netwatch script for working hours

UP ===== ... /tool e-mail send to="support@xxxx.net" subject="Main BackBone UP - ".($TimeUp) body=("Main BackBone is UP at : ".($TimeUp). "Total TimeDown is : ". ($TimeUp - $TimeDown )) You have not specified your Server address. I'm also not sure what the :t...
by krigevr
Fri Oct 26, 2007 4:26 pm
Forum: General
Topic: More ways to earn free licenses!
Replies: 162
Views: 84287

Re: More ways to earn free licenses!

Greetings I've written quite an extensive automated billing script, and posted it on wiki in the Scripts section, along with lots of descriptions, guidelines, output examples and the works. http://wiki.mikrotik.com/wiki/AutomatedBilling I've also E-mailed Support with this information. Thanks a bunc...
by krigevr
Fri Oct 26, 2007 1:36 pm
Forum: Scripting
Topic: netwatch script for working hours
Replies: 23
Views: 6231

Re: netwatch script for working hours

You've not specified an Index value for your queue rules to set. Try this: /queue simple set [/queue simple find name="Personal Users"] max-limit=64000/256000 Insert that piece for all your commands dealing with Simple Queue. I'm assuming that "Personal Users" is the Name of the ...
by krigevr
Fri Oct 26, 2007 9:26 am
Forum: Scripting
Topic: netwatch script for working hours
Replies: 23
Views: 6231

Re: netwatch script for working hours

I'm not sure if a single netwatch entry can run more than one script. But you can enter two or three identical netwatch or scheduler entries to run your second or third script. In one case, I have a scheduler triggering one script. This script then triggers a different script, which searches for inf...
by krigevr
Fri Oct 26, 2007 9:13 am
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

A lot of information I don't need, but you answered my question, thanks a million! So it's simpler than I thought to do it... Just one more thing - What is written in the Address field of the Routers entryin /tool/user-manager/routers? And how is /radius/incoming set up? I just don't have a test-ben...
by krigevr
Thu Oct 25, 2007 7:11 pm
Forum: Scripting
Topic: netwatch script for working hours
Replies: 23
Views: 6231

Re: netwatch script for working hours

Put a Scheduled task to run at the beginning of the Working Day, and set the interval to 24h. Put another Scheduled tas to run at the End of the Working Day, and also set interval to 24h. Each one of the two scripts that this scheduler triggers, must remove the previous Netwatch entry, and replace i...
by krigevr
Thu Oct 25, 2007 1:06 pm
Forum: Scripting
Topic: Schedule script for work day
Replies: 2
Views: 4428

Re: Schedule script for work day

Hi I have two possible options for you: Option 1: Enter 5 entries into the scheduler that will run your script - Set the first one to execute on a date that falls on a monday, the second one on a date that falls on a Tuesday and so forth. Set all Intervals to 7 days. Then you'll have 5 scheduled tas...
by krigevr
Thu Oct 25, 2007 12:55 pm
Forum: Scripting
Topic: SCRIPT PROBLEM
Replies: 1
Views: 1135

Re: SCRIPT PROBLEM

Hi 'print' commands won't run under the scripting environment. /queue simple print; (This part won't run.) :set a [/queue simple get 0 name] ; (This will therefore not run either, since Index numbers are not assigned to the queues. The Print command does this, but won't work under scripting.) / queu...
by krigevr
Thu Oct 25, 2007 12:38 pm
Forum: General
Topic: Script not Work with rc7
Replies: 3
Views: 1882

Re: Script not Work with rc7

I've had similar problems with 2.9.46 - Since I upgraded to 3.0rc5 (and 6 and 7) it seemed to be working OK.
by krigevr
Thu Oct 25, 2007 12:35 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Keepalive Timeout: ...the server sits there twiddling its thumbs with an open connection just waiting to hear from it? Yes. Pretty much. But why does the CPE need to start a new session? Just because it needs an address for its pppoe-out interface? But my pppoe addresses don't come from a pool. The...
by krigevr
Wed Oct 24, 2007 11:16 am
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Currently our keepalive time-out is set to 10s but given that we have one-session-per-host anyway isn't the 'no disconnect' situation what I want? When there is an active session from UserName, and UserName for some reason gets disconnected, but the Connection session (and therefore also the Accoun...
by krigevr
Wed Oct 24, 2007 10:51 am
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

Put in some :put commands everywhere -
Each time you assign a value to a variable - :put it.
That way you can see what gets assigned, and what does not.

And begin debugging from there.
by krigevr
Mon Oct 22, 2007 7:41 pm
Forum: General
Topic: Out of Topic
Replies: 3
Views: 1116

Re: Out of Topic

We'll be hosting a cruise with a British company called Noble Caledonia to the Baltic (and of course stopping over in Latvia) in September 2008. Looking forward to it!
by krigevr
Mon Oct 22, 2007 3:32 pm
Forum: General
Topic: Out of Topic
Replies: 3
Views: 1116

Re: Out of Topic

*chuckle*

Funny.
by krigevr
Mon Oct 22, 2007 1:26 pm
Forum: Beginner Basics
Topic: Network cards not being detected.
Replies: 3
Views: 1550

Re: Network cards not being detected.

Not sure about your ISA card, but I had the same problem with Realtek 8139-based cards on 2.9.x, but since I upgraded to 3.0rc5, all works OK with the Realtek cards.
by krigevr
Mon Oct 22, 2007 12:36 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Here she is! This script checks in /interface/pppoe-server for all users that are connected to a specified Service Name and pulls the Interface Name, then strips it down from "<pppoe-UserName>" down to "UserName" From here you can pull index values for this UserName from either /...
by krigevr
Mon Oct 22, 2007 12:28 pm
Forum: The User Manager
Topic: Which Billing System Is The Best ???
Replies: 74
Views: 91504

Re: Which Billing System Is The Best ???

So far, Scripting has allowed me to solve any shortcomings that User Manager / Router OS' billing has. I'll be publishing my scripts on Wiki soon.
by krigevr
Mon Oct 22, 2007 11:45 am
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Running what I have in the script appears to simply re-set the up-time, upload and download fields to nil but the session remains active. As the client is presumably unaware of the 'reset-counters' run on the server it continues sending accounting updates with the same accounting-session id (?) and...
by krigevr
Mon Oct 22, 2007 11:31 am
Forum: The User Manager
Topic: Client and Server on one RB
Replies: 3
Views: 2194

Re: Client and Server on one RB

Is is possible to have User-Manager functioning as a PPP radius client and server on the same box, ie access requests being authenticated and accounting being maintained on the same MT router? Yes it is possible. Remember that Radius (or User Manager) is a package on it's own, that runs pretty much...
by krigevr
Mon Oct 22, 2007 10:32 am
Forum: Beginner Basics
Topic: Upgrading from 2.9.x to 3.0rcx
Replies: 6
Views: 2259

Re: Upgrading from 2.9.x to 3.0rcx

I've not encountered any problems with upgrading - Everything still works 100%.

I'm not sure what the changes are - You'll have to review the Changelogs.
by krigevr
Mon Oct 22, 2007 12:49 am
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

under the heading 'Connection Termination from RADIUS' which suggests (to me) that the MT implementation of Radius CAN terminate an accounting session on a NAS. It just doesn't tell you how. There is a command under /tool user-manager session = close-session which might do it ... Hmm. I'll look int...
by krigevr
Sun Oct 21, 2007 11:38 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Howdy I'm pleased to announce my latest version of my script. This one has one script that is set to run Daily - You can set that up in Scheduler. I call this one "Oversight". It calls for a script to check if it is month-end. If it is, it triggers the Auto Billing E-mailer script. If it i...
by krigevr
Sun Oct 21, 2007 4:07 pm
Forum: Beginner Basics
Topic: Upgrading from 2.9.x to 3.0rcx
Replies: 6
Views: 2259

Re: Upgrading from 2.9.x to 3.0rcx

Upload the new packages via FTP, log into webbox and click Upgrade.

I've had 2.9.46 on an AMD K8 machine which I upgraded to RC5, works perfectly fine.
Also an RB532A that had 2.6.38 on, upgraded that to RC6, works perfectly fine.
by krigevr
Sun Oct 21, 2007 2:34 pm
Forum: Scripting
Topic: Warning - terminal crash in 3.0
Replies: 1
Views: 1185

Re: Warning - terminal crash in 3.0

I've experienced the same problem.
by krigevr
Sun Oct 21, 2007 1:10 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Most of us are on 1GB or more a month but a couple of light users are on less - only 250MB in one case. So some will need four character places and others only three. I 'could' use "0250 MB" but think it looks ugly in an email to the user. You can use an :if statement to check if the Cap ...
by krigevr
Sun Oct 21, 2007 1:09 am
Forum: General
Topic: Script not Work with rc7
Replies: 3
Views: 1882

Re: Script not Work with rc7

Remove it using the same 'find' method you are using with the other remove commands.

/file remove [/file find name=YourFileName]
by krigevr
Sun Oct 21, 2007 1:06 am
Forum: General
Topic: PPPOE Disconnect Issue
Replies: 2
Views: 1258

Re: PPPOE Disconnect Issue

Set 'one session per host' to 'yes'?

It will kill the already-active PPPoE session before establishing the new one.
by krigevr
Sat Oct 20, 2007 2:48 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

You put the current month in the user's 'pool-name' field ... which is compared with the value returned by the :get month from the system date. If they differ it must be the first run of a new month so reset-counters is triggered ... I guess that would be a solution if you run the script on the Fir...
by krigevr
Fri Oct 19, 2007 4:13 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Here she is! This script uses global variable "found" to return True or False if it is the last day of the month (or not). You can set the scheduler to run this one every day just before midnight, and feed the global variable's value into another script that will then execute the Reset, or...
by krigevr
Fri Oct 19, 2007 1:05 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

...so accessing the User area of U-M just presents them with a long table of entries. I see what you mean. They should add a function where users can pull a report (like in the User Manager admin interface) for just this month's use. Anyway. Uncapped broadband? Oh, how the rest of the world lives. ...
by krigevr
Thu Oct 18, 2007 11:45 am
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Well, I'm running an AMD machine with 3.0rc5 (which is my gateway to the big wide world) and a 532A with 3.0rc6 on. Works fine. Not sure why you can't set up a default gateway on the 532 running rc6... I just did mine in the /setup. For me, the whole E-mail thing was a big one. Spent 3 days writing ...
by krigevr
Thu Oct 18, 2007 11:31 am
Forum: The User Manager
Topic: Authenticating routers with dynamic IP's to User Manager
Replies: 3
Views: 4005

Re: Authenticating routers with dynamic IP's to User Manager

So you have to use Netwatcher I gather to...I'm guessing now...ping/monitor your/itself and when the existing IP is not reachable any longer, you run the ChangeIP script. But no wait, now the netwatcher settings is also a dud because the IP changed and it will show up as off line all the time. So t...
by krigevr
Wed Oct 17, 2007 5:26 pm
Forum: Scripting
Topic: Division and remainder
Replies: 6
Views: 5857

Re: Division and remainder

Break it down mathematically. 23 / 10 = 2 (in mikrotik) even though the answer is 2.3 It truncates the answer automatically, seeing as both input variables are Integers, but the answer is not an integer, but must also be an integer. The Decimal simply gets chucked out. So, what to do. You're now sit...
by krigevr
Wed Oct 17, 2007 8:46 am
Forum: General
Topic: VPN and Internet access problem
Replies: 15
Views: 6385

Re: VPN and Internet access problem

Don't worry about the fact that the Default Gateway on your PPP connection is the same as it's own IP address. Same happens here - it works. Try pinging your Mikrotik router's LAN port that you are connected to, then also try pinging the address of the virtual interface on the MT side. Then try ping...
by krigevr
Tue Oct 16, 2007 9:50 am
Forum: General
Topic: VPN and Internet access problem
Replies: 15
Views: 6385

Re: VPN and Internet access problem

When adding your NAT entry, try also specifying Connection Type as PPTP.
So, your NAT entry would be:

/ip firewall nat add chain=srcnat action=masquerade connection-type=pptp out-interface=ether2

Try that out.
-Krige
by krigevr
Tue Oct 16, 2007 9:44 am
Forum: The User Manager
Topic: Authenticating routers with dynamic IP's to User Manager
Replies: 3
Views: 4005

Re: Authenticating routers with dynamic IP's to User Manager

Hi. I've got a solution for you. First, lemme outline my scenario: Locations A, B and C. - Location A is running a FreeRADIUS server, running behind dynamic-IP ADSL. - Location B is a network that has 3 Mikrotik boxes that auths against Location A. - Location C is a single Mikrotik x86 machine also ...
by krigevr
Mon Oct 15, 2007 8:09 pm
Forum: Scripting
Topic: I need to resolve the rapid please
Replies: 2
Views: 1245

Re: I need to resolve the rapid please

Try a script that uses a :foreach loop that runs against your user database, that calls for the /tool/e-mail script to send whatever it is you want to send. Of course it will mean that every User entry in your database will need an E-mail address in it, and probably names too, and any other variable...
by krigevr
Sat Oct 13, 2007 11:31 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Is that a bug, perhaps in that particular release for that particular board or system type? The crappy thing about 2.9.46 not being able to :put stuff, is that I can't tell if my :set (and Get) commands were successful. Which makes debugging downright impossible. Unless I'm just missing something so...
by krigevr
Sat Oct 13, 2007 1:02 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Hey I've loaded 2.9.46 onto an AMD machine, and the script doesn't work. I can't get a single :put command to run. I've tried other things, like adding an entry under /radius, which works... I'll go see the changelogs and find out if they've made some changes to the scripting stuf between 2.9.46 and...
by krigevr
Fri Oct 12, 2007 12:54 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Sure, I still have install files of 2.9.46 on disk here, will load that up and see what happens. The :put command is extremely simple - If you have a script - and all the script contains is the following: #Begin Script :put hello :put bye #End Script And you run it, you should see this echoed on scr...
by krigevr
Fri Oct 12, 2007 9:31 am
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

I can't see anything wrong with it. I don't know if it's possibly the versions that may make the difference... I've just tested it again by retyping every single line of your code, and it works. What I do often to debug my scripts, is to use the ":put" command. So after each ':set' command...
by krigevr
Thu Oct 11, 2007 1:12 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

Was wondering if you came right, seeing as you haven't posted in a while. Small bug in the script - You need to actually draw a list of items for the FOREACH to check against (and not just point to a directory) - So amend your code as shown: :local date :local cap :local clientname /tool user-manage...
by krigevr
Wed Oct 10, 2007 10:30 am
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

i have tried and tried to get somthing to make the users log out but it just isnt hapening ,, below are some of the things i have tried ip hotspot active remove 0 ... /ip hotspot active remove 17 I've had the exact same problem with Radius entgries. Here's my solution: You've got your Foreach loop,...
by krigevr
Fri Oct 05, 2007 9:32 am
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

Hey Sorry I haven't gotten to the script yet, have some time today to look at it. But to answer your question, here's a line out of a script that I wrote that automatically sends out a bill via E-mail to all my clients at the end of the month: /tool user-manager user reset-counters X Where X is the ...
by krigevr
Thu Oct 04, 2007 7:56 am
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

The resetting can be implemented in the same script. As for changes in user manager having no effect until you reconnect - That's correct. I'm sure it is possible to disconnect a user under ip-hotspot, much the same you can terminate a PPPoE connection by killing it in /interface/pppoe-server/ I wil...
by krigevr
Wed Oct 03, 2007 10:05 pm
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

Since the original script is mine, I'll be happy to consult on adapting it. The download-used and upload-used attributes in the /tool/user-manager/user section is the Total downloads since Sign-Up, or since it was last reset. Resetting this does not affect the counters you will see in User Manager w...
by krigevr
Tue Oct 02, 2007 9:28 am
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

I gave you a script illustrating the principles, and told you that I have not tested it, or tried debugging it. Has anyone attempted debugging? Here's a working version under ROS 3.0rc5: :local user :local bytesin :local bytesout :local megstotal /tool user-manager user :foreach i in=[/tool user-man...
by krigevr
Mon Oct 01, 2007 9:52 am
Forum: Wireless Networking
Topic: problem more MT router
Replies: 8
Views: 1693

Re: problem more MT router

Perhaps signal loss happening somewhere?
by krigevr
Mon Oct 01, 2007 12:27 am
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

From what I understand from the manual I think an attempt to start a new PPPoE session terminates the previous one - as long as there is a 'one connection only' limit on the link, I guess. Yep, you understand correctly - That'll do the trick - under /interface/pppoe-server/server, you can set the &...
by krigevr
Sun Sep 30, 2007 9:12 pm
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

User Manager:
http://wiki.mikrotik.com/wiki/MikroTik_User_Manager

While PPP/Secrets are usernames and passwords entered directly into the Mikrotik console, that will work only for that mikrotik box. The PPP/Secrets are checked to do auths before it checks the user manager (or radius) for logins.
by krigevr
Sun Sep 30, 2007 8:25 pm
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

The script works on my machine, running ROS 3.0rc5.

You have not answered my question from the other thread:
Are you using User Manager or PPP/secrets?
The script is written for User Manager.

If you log into your router and run the script manually,
what error message do you get?

-K
by krigevr
Sun Sep 30, 2007 6:28 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

The problem with generated reports as per above is that they're session based, not date based. So if a session spans a month change-over it all gets allocated to the previous month - ie. if I generate a 'this month' report it only includes sessions that start during the month. Hence on my userman r...
by krigevr
Sun Sep 30, 2007 12:26 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

OK but "by does everything" I assume you mean uptime and data accounting kept in databases on the router itself. But where are they? When I do a > tool/userman/database print all I get is a 'yes' and a size report. Can they be shadowed to a remote db for security? Can they be directly acc...
by krigevr
Sat Sep 29, 2007 5:00 pm
Forum: Wireless Networking
Topic: problem more MT router
Replies: 8
Views: 1693

Re: problem more MT router

How many radio devices are there on each router?
by krigevr
Sat Sep 29, 2007 3:57 pm
Forum: Wireless Networking
Topic: problem more MT router
Replies: 8
Views: 1693

Re: problem more MT router

I'm assuming you're running single-WLAN routerboards with WDS. Each time your data hops on one access point, your bandwidth throughput essentially gets halved. (Ignoring processing time) Starting with 10mbps: By the time you get from A to D, you only have 2mbps theoretical throughput. Half that once...
by krigevr
Sat Sep 29, 2007 1:12 pm
Forum: General
Topic: More ways to earn free licenses!
Replies: 162
Views: 84287

Re: More ways to earn free licenses!

Do Scripts count, with a good description on how to adapt/use them? I've got two scripts that I want to publish: One that does automatic invoicing E-mails for all users in a User-Manager based system, and one that checks whether or not it's the last day of the month, that compensates for whether or ...
by krigevr
Sat Sep 29, 2007 11:50 am
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

You're about Halfway there. Local users/AAA does everything dependent on the local MT box. Cannot be run from elsewhere. Now, with Radius and User Manager, things get tricky. The "/radius" thingy in RouterOS is simply a Radius Client daemon, used to point your box to a Radius server - whic...
by krigevr
Sat Sep 29, 2007 11:06 am
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

I will debug the script through the day and give you one that works by this afternoon.

Check this post again later for a working version.

Thanks!
-Krige
by krigevr
Fri Sep 28, 2007 8:08 pm
Forum: Beginner Basics
Topic: how can i add script
Replies: 5
Views: 1965

Re: how can i add script

Also - YOURSUBSCRIBERNAME must not be replaced with one of the users' names. It must be replaced with the name of a "Customer" from your user manager, in other words, the Username that you use to log into the User Manager web interface. Are you using User Manager, or are you entering your ...
by krigevr
Fri Sep 28, 2007 8:05 pm
Forum: Beginner Basics
Topic: how can i add script
Replies: 5
Views: 1965

Re: how can i add script

Why didn't you post the reply on that topic where I gave you that script? That way, I would be able to respond immediately on my work. In the script that I wrote for you, there are two lines like this one: /tool user-manager user set [/tool user-manager user find user=$i ] rate-limit=40k/100k Change...
by krigevr
Fri Sep 28, 2007 1:58 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

You can reset counters to Zero with this command: (Assuming you use User manager - my script is written for User Manager) /tool user-manager user reset-counters X Where X is the Index number for the user. I'm doing this in my script. It also calculates and informs clients of usage, but I have a pack...
by krigevr
Fri Sep 28, 2007 1:30 pm
Forum: Scripting
Topic: i need script
Replies: 30
Views: 7499

Re: i need script

Assuming you're using User Manager: :local user :local bytesin :local bytesout :local megstotal :local user /tool user-manager user :foreach i in=[/tool user-manager user find subscriber=YOURSUBSCRIBERNAME ] do={ :set user [get $i name] :set bytesin [get $i download-used] :set bytesout [get $i uploa...
by krigevr
Fri Sep 28, 2007 1:08 pm
Forum: The User Manager
Topic: User-Manager - shortcomings?
Replies: 51
Views: 20510

Re: User-Manager - shortcomings?

I've got a script that sends out invoices to customers roundabout the end of the month, but I can't find a way to have a script figure out which day is the last day of the month - 30, 31, or 28 in Feb, and for a leapyear, 29. So at this stage I have a script that runs every 30 days and 10 hours, sta...
by krigevr
Thu Sep 27, 2007 11:25 pm
Forum: The User Manager
Topic: User Manager Feature request - sticky please?
Replies: 192
Views: 68755

Re: User Manager Feature request - sticky please?

Hi, I run a WISP using User Manager for both PPPoE and one-time hotspot users. For the PPPoE users, I'd like to keep track of my invoice numbers somehow. Currently I'm doing it by using the Comment field under the user's attributes, which my billing script updates each time it successfully runs. Can...
by krigevr
Wed Sep 26, 2007 11:58 pm
Forum: General
Topic: How to create a VPN account?
Replies: 2
Views: 1303

Re: How to create a VPN account?

I've just been trying the same thing - Go to /interface/ppptp-server/server Set enabled to yes If you're using /ppp/secrets for user accounts, go ahead and create your account, but remember to set your Service attribute for the account to PPTP, if not Any. Remember to set a proper Local and Remote a...
by krigevr
Wed Sep 26, 2007 10:10 am
Forum: The User Manager
Topic: User Manager + Other Applications
Replies: 3
Views: 1808

Re: User Manager + Other Applications

Thanks for the heads-up.

I've noticed that under /ip/services, there are no ports being listened on that resembles a Radius engine. What port does User Manager listen on for incoming requests?

Thanks
-Krige
by krigevr
Wed Sep 26, 2007 10:08 am
Forum: General
Topic: Hotspot user profiles and freeradius server.
Replies: 16
Views: 6367

Re: Hotspot user profiles and freeradius server.

Haha! Good thing you tested other machines, because I was completely stumped. A while ago I've experienced a similar error with wireless clients. But the common denominator was one of my wireless relay stations - a very powerful, and very costly one. I ended up replacing the entire electronics assem...
by krigevr
Tue Sep 25, 2007 10:26 pm
Forum: Scripting
Topic: Need Some insight
Replies: 4
Views: 1666

Re: Need Some insight

Here is a Follow Up #define a couple of variables :local uptime :local count :local usrname :local clientname :local clientsurname # Loop through all the users in User Manager /tool user-manager user :foreach i in=[ /tool user-manager user find subscriber=admin ] do={ #Pull some data from it, and pr...
by krigevr
Tue Sep 25, 2007 2:38 pm
Forum: Scripting
Topic: Need Some insight
Replies: 4
Views: 1666

Re: Need Some insight

Hey Here's a little something I whipped up to see if I can write something like this, coz I need something similar. Haven't gotten to the E-mailing thing yet, but I'll take a stab at it. Here's what I have so far: This is my source code just pasted. With some comments. #define a couple of variables ...
by krigevr
Tue Sep 25, 2007 12:45 pm
Forum: General
Topic: Hotspot user profiles and freeradius server.
Replies: 16
Views: 6367

Re: Hotspot user profiles and freeradius server.

Okay, so Radiusd.conf is fine - No probs there. In my case, the Interim-Update feature of Mikrotik has been giving me some issues, but I haven't really paid any attention to sorting it out. For the moment, I've just disabled Interim-Update under PPP/AAA. Though I don't know how your accounting reque...
by krigevr
Tue Sep 25, 2007 12:43 am
Forum: General
Topic: Hotspot user profiles and freeradius server.
Replies: 16
Views: 6367

Re: Hotspot user profiles and freeradius server.

Hmmm. Quite frankly, I'm stumped. All you pasted here was Accounting Request and Response - So I assume Access Request and Accept/Reject works? But, as far as I read your dump - the Acct_Unique module is returning OK, even with that error, so I guess it's non-fatal. Do you have any entries of the xl...
by krigevr
Mon Sep 24, 2007 3:16 pm
Forum: The User Manager
Topic: User Manager + Other Applications
Replies: 3
Views: 1808

User Manager + Other Applications

Hi

I'd like to know if it is possible to let Linux's poptop server auth against User Manager using the normal linux radius client - and on what ports, if other than the normal Radius ports, does User Manager listen on for incoming requests.

Thanks!
Krige
by krigevr
Sat Sep 22, 2007 12:58 pm
Forum: Beginner Basics
Topic: mikrotik on other devices?
Replies: 7
Views: 2484

Re: mikrotik on other devices?

Cool, thanks - I guess there's little point in this exercise other than to satisfy my own inquisitive nature. :-)

Thanks for the information!
Appreciated.
by krigevr
Fri Sep 21, 2007 9:09 pm
Forum: Beginner Basics
Topic: mikrotik on other devices?
Replies: 7
Views: 2484

Re: mikrotik on other devices?

Ag no :-(

Oh well - I'll hack away at it anyway.
Any suggestions for routers?

-K
by krigevr
Fri Sep 21, 2007 10:07 am
Forum: Beginner Basics
Topic: mikrotik on other devices?
Replies: 7
Views: 2484

Re: mikrotik on other devices?

I've been wondering the same thing - I've found a router that has a similar processor architecture to the Mikrotik routerboards, so in the coming week I'm going to see if I can do a remote install on that router. http://www.acconet.co.za/detail.php?cat=93&sub=90&id=5074 This is the router th...
by krigevr
Fri Sep 21, 2007 10:02 am
Forum: Wireless Networking
Topic: Radius server, PPPoE etc
Replies: 8
Views: 2443

Re: Radius server, PPPoE etc

I've now started running User Manager as well - Works very nicely. Here is my opinion of FreeRadius vs. UserManager FreeRadius, although far more complicated to set up than UserManager, offers Complete Versatility. However, to utilize this versatility to the fullest, you need to be either quite an a...
by krigevr
Fri Sep 21, 2007 9:13 am
Forum: General
Topic: Hotspot user profiles and freeradius server.
Replies: 16
Views: 6367

Re: Hotspot user profiles and freeradius server.

Forgot to mention - When running Radius in Debug mode (radiusd -x) you will see the machine dumping the "Access-Request received from..." stuff, as well as the "Access Accept" list of attributes that it sends back to the MT box. Check if the attributes you have specified is liste...
by krigevr
Fri Sep 21, 2007 9:05 am
Forum: General
Topic: Hotspot user profiles and freeradius server.
Replies: 16
Views: 6367

Re: Hotspot user profiles and freeradius server.

Hey Sean As far as I can see, the Third of your tries (of code in your previous post) is as close to what I have as can be, except I only have the Ascend-Data-Rate attribute in my Radgroupreply table, no Xmit rate. And it works perfectly. Also, just make sure you can Telnet to your Auth Server's Rad...
by krigevr
Mon Sep 17, 2007 1:45 am
Forum: General
Topic: Hotspot user profiles and freeradius server.
Replies: 16
Views: 6367

Re: Hotspot user profiles and freeradius server.

Use Groups.

In your Radius database in SQL, under the 'radgroupreply' table,
you'll see your groups listed. Just add your different acct-ascend entries with their respective values for each group or pool that you want to serve.
by krigevr
Mon Sep 17, 2007 1:40 am
Forum: Wireless Networking
Topic: Radius server, PPPoE etc
Replies: 8
Views: 2443

Re: Radius server, PPPoE etc

Captive Portal is when you attempt to open a website using your browser, but automatically get redirected to the Hotspot Login page. I'm trying to get User Manager running, to serve as a Failover database - but the web interface is very buggy. Struggled for 15 mins trying to add a user - just keeps ...
by krigevr
Fri Sep 14, 2007 6:04 pm
Forum: Wireless Networking
Topic: I could not raise the video in tiktube
Replies: 2
Views: 829

Re: I could not raise the video in tiktube

Try posting it on the video thread - someone there might be able to help.
by krigevr
Thu Sep 13, 2007 7:43 pm
Forum: Wireless Networking
Topic: Radius server, PPPoE etc
Replies: 8
Views: 2443

Re: Radius server, PPPoE etc

I'm running Linux Fedora core 7 on my server, just for reference. For editing/adding/removing the tables/rows/databases in SQL, I use PHPMyAdmin. See section 2 of this How-To for PHPMyAdmin installation: http://www.howtoforge.com/virtual_hosting_with_proftpd_and_mysql_fedora7 This how-to is designed...
by krigevr
Thu Sep 13, 2007 7:03 pm
Forum: General
Topic: Free licenses to anyone...
Replies: 85
Views: 25984

Re: Free Level6 license to anyone...

Fabulous!!

Well I'll start cranking out videos on any/all aspects of my WISP.

Thanks a million!
by krigevr
Thu Sep 13, 2007 8:36 am
Forum: General
Topic: Free licenses to anyone...
Replies: 85
Views: 25984

Re: Free Level6 license to anyone...

Hmm. I've got several ideas for Mikrotik videos.

If more than one of my videos are Key-Worthy,
do I get one key per video?

I need more than one.
I'll buy if I must, but hey, I'm willing to work for them!
I'm studying Film, after all, so it should be a fun exercise.
by krigevr
Wed Sep 12, 2007 3:20 pm
Forum: The User Manager
Topic: Which Billing System Is The Best ???
Replies: 74
Views: 91504

Re: Which Billing System Is The Best ???

I'm using FreeRadius running on a Linux Fedora box, sitting in my office in one town, handling Authentication and Accounting for tree networks in three other towns. http://www.freeradius.org The documentation tells you just about everything you need to know about it, but I'll be happy to consult if ...
by krigevr
Wed Sep 12, 2007 1:14 pm
Forum: Wireless Networking
Topic: Radius server, PPPoE etc
Replies: 8
Views: 2443

Re: Radius server, PPPoE etc

Over here I've got FreeRADIUS running on a Linux Fedora box, sitting in my office, serving three separate networks in three different towns. RADIUS queries MySQL for user info and bandwidth settings etc, and got a very simple PHP interface to alter the SQL database - add users, remove them, change b...
by krigevr
Wed Sep 12, 2007 10:16 am
Forum: Wireless Networking
Topic: Roof level - city wide mesh network
Replies: 1
Views: 914

Re: Roof level - city wide mesh network

I've got a similar problem, but my problem is that there are no tall buildings in the area I serve! I target underserviced areas in South Africa, i.e. small towns. What I'm going to do is to have a single AP serve as my backhaul, and several base stations connect to it on IP-level to pull data. Each...
by krigevr
Sat Sep 01, 2007 11:55 pm
Forum: Scripting
Topic: Updating Radius service address
Replies: 1
Views: 1158

Re: Updating Radius service address

I've solved the problem, for anyone's reference: When using the "/radius remove 0" command, there must first be a "0" entry to begin with. Of course, there is an entry in the list. But these entries are not assigned numerical index values until you execute the Print command. But ...
by krigevr
Sat Sep 01, 2007 3:51 pm
Forum: Scripting
Topic: Updating Radius service address
Replies: 1
Views: 1158

Updating Radius service address

Hi I've got a problem were I cannot get a service entry in '/radius' removed. What I'm trying to do, is to run a simple Netwatcher and "replacement" script. The Netwatcher thing works, so I"m gonna skip over it. When Netwatcher's Down-Script is triggered, it should run this: /radius r...