Skip to content

Instantly share code, notes, and snippets.

@mmv-ru
Last active August 29, 2015 14:05
Show Gist options
  • Save mmv-ru/e8b4754d9540eb99d7bb to your computer and use it in GitHub Desktop.
Save mmv-ru/e8b4754d9540eb99d7bb to your computer and use it in GitHub Desktop.

Clone from: http://wiki.mikrotik.com/wiki/User:Mmv (just for case)

Table of Contents

Syntaxis highlighting

http://forum.mikrotik.com/viewtopic.php?f=9&t=59761

Notepad++ and vim

Winbox @ Wine

  • Font fix - install ms core font package
yum install mscore-fonts

  • Set Full RGB font smoothing
yum install google-droid-sans-fonts google-droid-sans-mono-fonts google-droid-serif-fonts

Set GNOME default font to Droid Sans

previous fix stop working

  • Set in wine registry
[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
"MS Shell Dlg"="Droid Sans"
"MS Shell Dlg 2"="Droid Sans"

Manual:Wireless_Controller

Mikrotik Packet Sniffer streaming to Wireshark

Wireshark capture filter: udp port 37008

More strict version: udp port 37008 and (udp[8:2] = 0x0100)

http://wiki.wireshark.org/CaptureFilters#Examples

Linux Firewall settings for Winbox

MNDP (Mikrotik Network Discovery Protocol)

Broadcast 5678/UDP

-A INPUT -m state --state NEW -m udp -p udp --sport 20561 -d 255.255.255.255 -j ACCEPT -m comment --comment "Mikrotik MAC Winbox"

MAC Winbox

  • UDP
  • source port: 20561
  • destination address: 255.255.255.255
-A INPUT -m state --state NEW -m udp -p udp --dport 5678 -j ACCEPT -m comment --comment "Mikrotik MNDP"

PCRE for converting exported scripts from CR to CRLF

Sometimes script become cluttered in winbox

search: (?<!\\r)(\\[[:space:]]+\\n) replace: \\r\1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment