User:Mmv

From MikroTik Wiki
Jump to: navigation, search

Notes

Syntaxis highlighting

Notepad++, textpad and vim - external editor syntax highlighting [1]

Atom - community plugin language-routeros-script

Sublime text - Syntax highlighting and completions for Sublime Text [2]

Winbox @ Wine

  • Font fix - install ms core font package
yum install mscore-fonts
  • Set Full RGB font smoothing
  • Install Google Droid screen fonts
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

:find

find <str/array> <substr/value> <start> return position of substring or array element. Search start from <start>+1, if element or substring no found return <start>, if found return start position.