This is an old revision of the document!
See also other Mikrotik pages in this wiki
See also Sonora Comm Default MikroTik Configuration Script
See also Mikrotik Failover to a Second Internet Connection
http://www.mikrotik.com/index.html
http://www.mikrotik.com/download
Mikrotik offers:
http://wiki.mikrotik.com/wiki/Manual:Upgrading_RouterOS
http://wiki.mikrotik.com/wiki/Bootloader_upgrade
http://blog.butchevans.com/2010/08/routeros-upgrade-process/
http://wiki.mikrotik.com/wiki/Console#Safe_Mode
Enter Safe Mode: [CTRL]+[X]
Save Changes and Exit: [CTRL]+[X]
again
Exit Without Saving: [CTRL]+[D]
Safe mode can be used to minimize the risk of losing contact with the router while performing configuration changes.
/system backup load name=[filename] /system backup save name=[filename]
You can also export
or import
the configuration to the console or to a file.
export compact
, it will only export the settings that are not defaultexport compact
is the default behavior from V6 onexport compact file=mikrotik_config_backup
Winbox runs well under Wine on Linux.
http://wiki.mikrotik.com/wiki/Manual:Initial_Configuration
http://wiki.mikrotik.com/wiki/How_to_configure_a_home_router
http://wiki.mikrotik.com/wiki/How_to_Connect_your_Home_Network_to_xDSL_Line
/system reset
Changing the LAN interface and DHCP pool probably requires a reboot!
System → Users → Double-Click 'admin' → Password
IP → DHCP Client → Add New → ether1
IP → DHCP Client → Delete if exists IP → Addresses → Add New
IP → Firewall → NAT → Add New
srcnat
masquerade
This is like the DMZ feature of other router/firewall devices:
/ip firewall nat add chain=dstnat dst-address=<external-IP> action=dst-nat to-addresses=<internal-IP>
IP → Routes → Add New
0.0.0.0/0
Default Route
IP → DNS → Add New
SNTP Client → Primary → 199.102.46.73 SNTP Client → Secondary → 64.16.214.60
Clock → Time Zone Name → America/Phoenix
Interfaces can be:
IP → Addresses → Add New → Use Ether1 as WAN IP → Addresses → Add New → Use Ether2 if WAN2 is needed
Master Port
setting in interface detailsIP → Addresses → Add New → Use others as LAN
http://wiki.mikrotik.com/wiki/Manual:Initial_Configuration#Wireless
The scan feature cannot be run if you are connected wirelessly
Advanced
and set the country to United States
ap-bridge
bridge
, only one client (station) will be able to connect to the router using wirelessWireless → Security Profiles → Add New
Dynamic Keys
WPA
and WPA2
AES CCM
If you have any problems with the DHCP server (maybe it didn't hand out a gateway address?), try deleting all existing pools and all existing DHCP servers, then run the DHCP Setup Wizard. In fact, this is probably the fastest, easiest way to configure the DHCP server in most all cases.
IP → DHCP Server → DHCP → DHCP Setup
/ip dhcp-server setup /ip dns set allow-remote-requests=yes
Create the address pool first:
IP → Pool → Add New
192.168.1.65-192.168.1.199
Add the DHCP server:
IP → DHCP Server → Add New
ether2
This will also create a caching DNS server for use by DHCP clients:
IP → DNS → Settings → Click (+) twice then enter two DNS servers IP → DNS → Settings → Allow Remote Requests
http://wiki.mikrotik.com/wiki/Manual:Initial_Configuration#Port_forwarding
IP → Firewall → NAT → Add New
/ip firewall nat add chain=dstnat dst-address=<external address> protocol=tcp dst-port=<external port> \ action=dst-nat to-address=<internal address> to-ports=<internal port>
IP → Services → www
http://wiki.mikrotik.com/wiki/Home_Firewall
http://wirelessconnect.eu/articles/securing_mikrotik_router_firewall
http://wiki.mikrotik.com/wiki/Manual:IP/Firewall
/ ip firewall filter add chain=input connection-state=established comment="Accept established connections" add chain=input connection-state=related comment="Accept related connections" add chain=input connection-state=invalid action=drop comment="Drop invalid connections" add chain=input protocol=udp action=accept comment="Allow all UDP" disabled=no add chain=input protocol=icmp limit=50/5s,2 comment="Allow limited pings" add chain=input protocol=icmp action=drop comment="Drop excess pings" add chain=input in-interface=ether2 src-address=192.168.1.0/24 comment="From our LAN" action=accept add chain=input action=log log-prefix="DROP INPUT" comment="Log everything else" add chain=input action=drop comment="Drop everything else"
http://networkingforintegrators.com/2012/08/dyndns-updater-for-mikrotik/
http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_dynDNS
http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_dynDNS_behind_NAT
The Serial Console feature is for configuring the router.
If choosing a USB serial adapter, choose one with a FTDI chipset such as this one:
http://www.amazon.com/Premium-Speed-Serial-RS-232-Converter/dp/tech-data/B006PIU2KO
When choosing a serial terminal program, you can use Putty:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
System → Console System → Ports
/system console print /port print detail
http://wiki.mikrotik.com/wiki/Serial_Port_Usage