Community discussions

Search found 732 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 15
by dssmiktik
Tue Apr 26, 2016 5:54 am
Forum: Scripting
Topic: Cant read file large then 4085 bytes
Replies: 9
Views: 3826

Re: Cant read file large then 4085 bytes

Hey, this means I can't parse files??? No other ways to read by chunks? I want to parse http://txt.proxyspy.net/proxy.txt Unfortunately not if the contents is > 4kb. You could setup an external service to transform the data into a RouterOS string via local variable. This would allow you to consume ...
by dssmiktik
Sat Apr 16, 2016 6:47 am
Forum: Scripting
Topic: Cant read file large then 4085 bytes
Replies: 9
Views: 3826

Re: Cant read file large then 4085 bytes

I believe it may have something to do with the buffering mechanism being used to fetch / stream data. At one point, I thought this limitation applied to comments as well, but I think that is no longer the case. Regardless, it would be nice to at least see some streaming API, even if we an only buffe...
by dssmiktik
Wed Dec 04, 2013 7:32 am
Forum: Beginner Basics
Topic: automatic Shutdown script
Replies: 9
Views: 11947

Re: automatic Shutdown script

If you're running on a PC, one option is to use the Wake On LAN facility offerred by most networking cards.

RouterBOARD may support this feature as well (though I have not confirmed this).
by dssmiktik
Mon Jan 28, 2013 12:20 am
Forum: General
Topic: Feature request: Parameters for scripts
Replies: 2
Views: 789

Re: Feature request: Parameters for scripts

While this does not completely fit your requirements, it does provide a means for local-scoped arguments in RouterOS scripts, simulating function-like capability.

http://forum.mikrotik.com/viewtopic.php ... 47#p190847
by dssmiktik
Sun Dec 18, 2011 7:51 am
Forum: General
Topic: Clear user command history
Replies: 13
Views: 11608

Re: Clear user command history

I think it would be fairly trivial to do, maybe:
echo > /path/to/history/file
by dssmiktik
Thu Jul 28, 2011 1:18 am
Forum: General
Topic: Password recovery routerboard 750
Replies: 5
Views: 7837

Re: Password recovery routerboard 750

I don't think so. To create a backup, you need to login to the router, and have access to the console to issue commands.
by dssmiktik
Thu Jul 28, 2011 1:15 am
Forum: RouterOS v6 RC and v7 BETA
Topic: feature request : GRE tunnel
Replies: 56
Views: 27754

Re: feature request : GRE tunnel

I believe the keepalive is only to send some traffic over the tunnel, not to detect running state. EoIP is still stateless in that it will always show running state, even if no traffic is sent across the tunnel.
by dssmiktik
Wed Jul 27, 2011 3:57 am
Forum: General
Topic: Get access to login/status page of hotspot's user from WAN
Replies: 5
Views: 970

Re: Get access to login/status page of hotspot's user from W

However, you may be able to use the API to hookup a web page to display stats. The server providing such page could be made accessible via the WAN.
by dssmiktik
Mon Jul 25, 2011 2:00 am
Forum: Scripting
Topic: API: set `contents` of file
Replies: 12
Views: 2514

Re: API: set `contents` of file

dominikh,

There is no mv or rename file ability on RouterOS.
by dssmiktik
Wed Jul 20, 2011 9:18 pm
Forum: Scripting
Topic: API: set `contents` of file
Replies: 12
Views: 2514

Re: API: set `contents` of file

I don't want my files to be txt... ;-)
Now, you're asking for too much ;) Linux powered devices can't rename files :)
by dssmiktik
Wed Jul 20, 2011 8:46 pm
Forum: General
Topic: Regular expression for DNS Query
Replies: 5
Views: 1648

Re: Regular expression for DNS Query

When you enable DNS caching in RouterOS, it will cache all queries made through the DNS protocol (port 53). However, you can search this cache if you need information from it:
/ip dns cache all find
by dssmiktik
Fri Jul 15, 2011 1:46 am
Forum: Beginner Basics
Topic: Scheduling two scripts
Replies: 4
Views: 828

Re: Scheduling two scripts

Just check the run-count of a single scheduled script

<add scheduled script to run at 5:00 every day>
Script:
:if ([/system scheduler get <scheduler name> run-count] > 5) do={
   /quit
}

<rest of script to run>..
by dssmiktik
Sun Jul 10, 2011 4:40 am
Forum: General
Topic: Backup and Restore Certificates
Replies: 20
Views: 8685

Re: Backup and Restore Certificates

acaruso, Your private key is bound somehow to either the OS instance, or the hardware it's installed on. Basically, this means, you cannot decrypt the certificate as it in inaccessible outside RouterOS. In short, you cannot restore full certificate data across multiple devices, or multiple RouterOS ...
by dssmiktik
Sun Jul 10, 2011 4:06 am
Forum: Scripting
Topic: how to stop a scheduled script after x times?
Replies: 33
Views: 6694

Re: how to stop a scheduled script after x times?

Something like this might work: :local cnt [/system scheduler get [/system scheduler find name=<scheduler-name>] run-count] :if(cnt>x) do={ /quit } <Rest of script here> This means, as the router is running, the script will not run more that X times. However, when the router is rebooted, the schedul...
by dssmiktik
Sun Jul 03, 2011 2:46 am
Forum: Beginner Basics
Topic: Usermanager Database, ....
Replies: 7
Views: 1184

Re: Usermanager Database, ....

MasterofDisaster,
As previously mentioned, I have not tried it myself, but I may be able to provide some pointers to head you in the right direction.

What exactly have you tried so far?
by dssmiktik
Sun Jul 03, 2011 2:38 am
Forum: Scripting
Topic: DEC to HEX script
Replies: 11
Views: 2914

Re: DEC to HEX script

otgooneo, Replace ':global' with ':local' This will mean variables are only local to that instance of the running script, and will not conflict when running 2 or more of the same script simultaneously. EDIT: Also, a good practice is to only define the variable once (ex. only 1 ':local' per variable)...
by dssmiktik
Sat Jul 02, 2011 9:02 am
Forum: General
Topic: What web server integrates RouterOS?.
Replies: 4
Views: 715

Re: What web server integrates RouterOS?.

Webfig and webbox are services that run internally on RouterOS, and are only accessible via the HTTP(S) protocol.

As for hotspot, check the Wiki for modifying the hotspot pages, etc... at: http://wiki.mikrotik.com
by dssmiktik
Sat Jul 02, 2011 8:59 am
Forum: Beginner Basics
Topic: Usermanager Database, ....
Replies: 7
Views: 1184

Re: Usermanager Database, ....

Not with RouterOS tools, however it may be possible using and sqllite file reader/modifier, then merging the table(s).

NOTE: I have not tried this, and cannot confirm this works.
by dssmiktik
Mon May 30, 2011 11:03 pm
Forum: RouterOS v6 RC and v7 BETA
Topic: Feature request: Notepad/ToDolist/Router comments
Replies: 12
Views: 2075

Re: Feature request: Notepad/ToDolist/Router comments

Maybe like the demo license has that popup window just after login to winbox about the 24hr license, something similar for system note to be displayed?
by dssmiktik
Mon May 30, 2011 9:57 pm
Forum: Scripting
Topic: How to write a script for multiple routeros versions
Replies: 2
Views: 850

Re: How to write a script for multiple routeros versions

mrz,
I think there's a bigger issue here as well. It would be nice to keep backward compatibility when adding new functionality/properties. (This would help me tremendously).
by dssmiktik
Mon May 30, 2011 9:49 pm
Forum: Beginner Basics
Topic: Mikrotik EoIP
Replies: 2
Views: 1241

Re: Mikrotik EoIP

EoIP is Mikrotik only. You can use GRE tunnel.
Happy to hear the GRE part, I know it's in v5, I just want to say again how much I appreciate finally having this feature.
by dssmiktik
Mon May 30, 2011 9:44 pm
Forum: Scripting
Topic: Add user with login.html
Replies: 3
Views: 1096

Re: Add user with login.html

How would you secure this? If the login page (or any page handed to the client's browser) is allowed to create logins on the router hotspot, what prevents 1000 users from sending random user names to the router? Also, if a user changes their MAC address, then they are treated as a new user, again al...
by dssmiktik
Mon May 30, 2011 9:36 pm
Forum: General
Topic: Integrating Facebook Connect with Hotspot Login / Authent ..
Replies: 132
Views: 271094

Re: Integrating Facebook Connect with Hotspot Login / Authen

I could see this working really well for public hotspots since most users already have an account (facebook, gmail, yahoo, etc...)
by dssmiktik
Sun May 29, 2011 2:04 am
Forum: Beginner Basics
Topic: FLOODING IS KILLING PLEASE HELP...
Replies: 12
Views: 4563

Re: FLOODING IS KILLING PLEASE HELP...

you can try like : 1. put firewall filter rule to block port p2p (torrent like) 2. put queque limit for allp2p (there is p2p in advanced) and make it for download 1k and also upload 1k 3. by activate web-proxy or proxy in mikrotik and deny all *torrent* , *bittorrent*, *tracker* (in access) all thi...
by dssmiktik
Thu May 26, 2011 1:15 pm
Forum: General
Topic: v5.3 released
Replies: 76
Views: 9194

Re: v5.3 released

I'm seeing the same firefox v4.0.1 problem in ROS v5.3

Popups are trying to be open every 1/2 sec.
by dssmiktik
Fri May 20, 2011 10:34 am
Forum: The Dude
Topic: Dude for Linux
Replies: 49
Views: 36001

Re: Dude for Linux

Dude doesn't run on top of RouterOS. It's exclusively a windows program. You are talking about the Dude agent NPK package. This is where the misunderstanding came from Right, so that makes sense. However, I think the general discussion was about running the Dude agent on linux, kind of like 'server...
by dssmiktik
Wed May 18, 2011 9:39 pm
Forum: Scripting
Topic: ChangeIP and Mikrotik 5.0
Replies: 22
Views: 9080

Re: ChangeIP and Mikrotik 5.0

Yep - I threw that in there because it breaks the script because its a bad command : ) If there is another way to exit I would love to know it.
:error ("Not a valid command");
by dssmiktik
Wed May 18, 2011 9:34 pm
Forum: The Dude
Topic: Dude for Linux
Replies: 49
Views: 36001

Re: Dude for Linux

remember GRE debate for a few years? That only made people more angry because we weren't getting 'real' responses from support, but rather getting answers making us users feel like it's our fault, or that we shouldn't be using such a standard protocol in networking equipment. GRE is natively suppor...
by dssmiktik
Mon May 16, 2011 9:46 am
Forum: The Dude
Topic: Dude for Linux
Replies: 49
Views: 36001

Re: Dude for Linux

+1 for Linux Dude ! it ROS not a port of linux? I'm not seeing why it would be that difficult I'm sick of my Dude server getting hacked and would love to run it on Linux not virus feeding windows 1. routeros has nothing to do with dude, they are not related 2. why is your dude getting hacked and ho...
by dssmiktik
Mon May 16, 2011 9:28 am
Forum: General
Topic: v5.2 released
Replies: 161
Views: 29138

Re: v5.2 released

It can start simple, nothing too complex, just a way for 'trusted' users to submit/modify features / bugs / fixes, maybe this forum could be used as a starting point for vetting the users' allowed to 'post' data to the bugtracker. Then maybe read-only access for general users. All I would like to se...
by dssmiktik
Mon May 16, 2011 12:05 am
Forum: The User Manager
Topic: How to make it so users CANT change passwords in UM
Replies: 4
Views: 1176

Re: How to make it so users CANT change passwords in UM

you can create a firewall rule in the input chain that drops port 80 TCP packets from the customer network
Then the user could not view their statistics, right?
by dssmiktik
Mon May 16, 2011 12:01 am
Forum: Scripting
Topic: ChangeIP and Mikrotik 5.0
Replies: 22
Views: 9080

Re: ChangeIP and Mikrotik 5.0

changeip, I don't believe :break is a valid command. It was documented in the v2 (maybe v3) documentation but never quite worked right.

When trying to use break, I get this error:
bad command name break
by dssmiktik
Sun May 15, 2011 11:50 pm
Forum: Scripting
Topic: A script to calculate Average CPU Load
Replies: 19
Views: 12066

Re: A script to calculate Average CPU Load

$avgcpuload >= 100
I should hope CPU (or average value) would never be higher than 100! :lol:
by dssmiktik
Sun May 15, 2011 11:39 pm
Forum: General
Topic: v5.2 released
Replies: 161
Views: 29138

Re: v5.2 released

It is too often that people post angry messages like "when is this going to be fixed" because they assumed somebody reported this somewhere, but actually all of them are just waiting, and nothing is posted to the forum or to support. I am simply encouraging everyone to make those supout.rif files a...
by dssmiktik
Sat May 07, 2011 11:14 pm
Forum: RouterBOARD hardware
Topic: RB1100 backup restore problem.
Replies: 3
Views: 1525

Re: RB1100 backup restore problem.

Egate, Just curious, what are the models of the two devices (RB1 and RB2)? EDIT: RB1100, I didn't catch that the first time reading. And to make sure I understand correctly, this is your findings: RB1.backup (good) RB2.export (good) restore: RB1.backup -> RB1 (no hotspot settings) restore: RB1.backu...
by dssmiktik
Sat May 07, 2011 8:39 pm
Forum: General
Topic: Mikrotik restore missing NAT rules
Replies: 6
Views: 1150

Re: Mikrotik restore missing NAT rules

DrLove73, When you rebooted the router, did you have any settings missing? I'm wondering if it's either a problem with the restore, or a problem with the created backup file itself. The backup file is supposed to be literally the same settings the router uses directly for configuration. I've had som...
by dssmiktik
Fri May 06, 2011 9:31 am
Forum: General
Topic: Mikrotik restore missing NAT rules
Replies: 6
Views: 1150

Re: Mikrotik restore missing NAT rules

We have been running RouterOS 3.20 on a PC for so time and yesterday was compelled to restore after a "freak" crash that saw the majority of the NAT rules disappearing and the router rebooting. Before the crash I was editing a NAT rule and soon after applying the changes the router timed out and on...
by dssmiktik
Fri Apr 29, 2011 8:42 am
Forum: General
Topic: v5.2 released
Replies: 161
Views: 29138

Re: v5.2 released

this is why you can use keys to authenticate from routeros client and it will work in same manner as paswordless key authentication from any other ssh client. you have to add key to '/user ssh-keys private' private key on local router and '/user ssh-keys' to add public key and off you go. Thanks :)...
by dssmiktik
Wed Apr 27, 2011 9:27 pm
Forum: General
Topic: v5.2 released
Replies: 161
Views: 29138

Re: v5.2 released

File -> Download does not appear to work on v5.2 Webfig.
by dssmiktik
Wed Apr 27, 2011 9:19 pm
Forum: General
Topic: v5.2 released
Replies: 161
Views: 29138

Re: v5.2 released

Mikrotik, Thanks for the SSH command capability, I've been wanting this for awhile now. However, like most things in RouterOS, I would like to see the ability to capture the commands output to fully use this feature. Example: :local resource [/system ssh address=<router> command="/system resource pr...
by dssmiktik
Fri Apr 22, 2011 3:17 am
Forum: RouterOS v6 RC and v7 BETA
Topic: v.5.1 release
Replies: 29
Views: 5940

Re: v.5.1 release

while testing 5.2 for release some more problems where found, so we are working on those and thus release of 5.2 is delayed.
Thank you for the update :) I would like to wait for upgrade v5.2 when it is fully ready, working, and stable.
by dssmiktik
Thu Apr 14, 2011 10:10 pm
Forum: Virtualization
Topic: Ask? I can let RouterOs run as a guest on a Xen 3.xx
Replies: 8
Views: 3255

Re: Ask? I can let RouterOs run as a guest on a Xen 3.xx

This is also true with KVM.

If you need a CPU that supports hardware virtualization, why not use KVM as suggested with v4 / v5? Both Xen and KVM require hardware virt. support.

Not sure about the stability of KVM in RouterOS, as I don't use it myself.
by dssmiktik
Thu Apr 14, 2011 10:03 pm
Forum: RouterOS v6 RC and v7 BETA
Topic: v.5.1 release
Replies: 29
Views: 5940

Re: v.5.1 release

Webfig broke in v5.1 5.2 should be released to fix this bug.

Mikrotik, what changed in v5.1 webfig that broke it? Is there anywhere we might log this to let users know not to use v5.1?
by dssmiktik
Wed Apr 13, 2011 7:42 am
Forum: General
Topic: cant login to webfig.. just shows loading
Replies: 18
Views: 5923

Re: cant login to webfig.. just shows loading

Please test this before you release "stable" software Mikrotik. No excuse. I've been trying very hard to get you guys to notice that we users really want stable/reliable systems. Again, we pay for your software. Step up the Quality Assurance/Testing guys, really. I will continue to try until I get t...
by dssmiktik
Wed Apr 13, 2011 7:25 am
Forum: General
Topic: RouterOS 5.1 is out!
Replies: 93
Views: 13210

Re: RouterOS 5.1 is out!

As reported, I also cannot access webfig in v5.1 on x86.
by dssmiktik
Tue Mar 01, 2011 1:34 am
Forum: Scripting
Topic: FTP File transfer from Mikrotik to non Mikrotik FTP Server
Replies: 8
Views: 16964

Re: FTP File transfer from Mikrotik to non Mikrotik FTP Serv

I guess you could also use fetch in GET mode to trigger a remote php script to ftp files from the router. I haven't tested this, but if you run php on the back-end, it should be able to ftp into the router. Ex. /tool fetch address=a.b.c.d src-path="/mikchanged.php?action=pullgraphs" dst-path="pullgr...
by dssmiktik
Thu Feb 24, 2011 10:14 pm
Forum: RouterOS v6 RC and v7 BETA
Topic: OpenVPN, Windows and the auth-user-pass <file> option
Replies: 6
Views: 7054

Re: OpenVPN, Windows and the auth-user-pass <file> option

If I'm understanding correctly, the client could always use auth-user-pass , but it's the server which verifies it use a script or plugin or straight file (1st line = user, 2nd line = pass). OliverPuff, Do you mean for RouterOS, or another linux binary? If it's for RouterOS, can it use the scripting...
by dssmiktik
Thu Feb 24, 2011 4:26 am
Forum: RouterOS v6 RC and v7 BETA
Topic: OpenVPN, Windows and the auth-user-pass <file> option
Replies: 6
Views: 7054

Re: OpenVPN, Windows and the auth-user-pass <file> option

I don't believe one exists. It would be nice though to be able to have this functionality. It's kind of nice to have.
by dssmiktik
Thu Feb 24, 2011 3:05 am
Forum: General
Topic: Extract graphs from backup
Replies: 14
Views: 4419

Re: Extract graphs from backup

Actually, I would like to have gzip command exposed to RouterOS. This way I could compress the .backup files to same a lot of space in case router doesn't have so much drive space. The compression is really really good, as most of the backup is the same data. Something I've noticed with Mikrotik: On...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 15