Mikrotik – Safe Mode

mikrotik

Whenever you work on a network device there is a chance that you execute the wrong command and you lose connection. This can be bad, mostly if you are far away from the device or […]

MikroTik DNS Client

mikrotik

If you are receiving your IP from your ISP through DHCP there is a good change you are also receiving the DNS servers. By default MikroTik is going to propagate them to your LAN. This […]

Netwait on FreeBSD

I’m sure your server is running at least one service which needs network. Once in awhile happens that the server will start all, or at least is trying to start all services but the network […]

DNS Blacklist on WRT

Recently I found a forum entry with a script for blocking ad’s via DNS for WRT (or any other OS using sh and dnsmasq). However it was missing two features: a white list and a […]

Easy SSH On macOS

Using public key authentication for ssh is safer than password. But you should really use a passphrase protected private key. Now you are safe but you still need to type in your passphrase. This isn’t […]

Easy bond Interface

If you ever set up a bond interface on Linux you know it takes a few file editing. I got tired of doing this, please find my script below creating a bond interface. This is […]

newsyslog – config check

On FreeBSD the best way to rotate logs is using newsyslog. After you set up you want to try what would happen when log rotation occurs, this can be done with -n and -vv -n […]

Delete a Single Line From History

Did you ever wanted to remove a single line from your shell history? This is how you can easily do it: use: history -d line number to remove the line, for example history -d 431, […]

net-snmp Logrotate On CentOS

It turns out be defult net-snmp doesn’t come with logrotate for CentOS 7. However is quite simple to be done. All you have to do create a the following file: /etc/logrotate.d/snmpdlog and add the content […]