MikroTik
MikroTik has a robust CLI on their products, offering both switch and router OS variants. My use case necessitates using a routers, so these commands are done in RouterOS. The basic homelab network consists of: DSL Internet Modem, MikroTik Router, Synology Wireless Router in Access Point mode.
RouterOS Initial configuration for access and logging
I loosely followed the start-up guide provided my MikroTik, as it goes over configuration every router will need to provide remote access to itself, as well as other basic functions like logging. After you create your bridge port, for stable remote access, i added logging to a local txt file.
#Add a logging action to store logs on the disk: /system logging action add name="commandhistoryfile" target=disk disk-file-name="command_history.txt" #Add a logging action to store logs in memory: /system logging action add name="commandhistorymemory" target=memory #Add a logging rule to log system and account topics to the file: /system logging add topics=system,account action=commandhistoryfile #Add a logging rule to log system and account topics to memory: /system logging add topics=system,account action=commandhistorymemory #To view logs that are stored in memory, use the following command in the CLI: /log print #List Files on the Router: /file print /file print file=command_history.txt
ย