Tag: Script

Limiting SSH access for dynamic IP source

Summary This post is about a small script that can update the /etc/hosts.allow with single IPv4 for use with Dynamic DNS. Please check the ‘ Warning ‘ section before using the script. If you’ve Server or VPS with public IP and want to limit SSH access (allow or deny) to specific IP or IP range […]

Updated: January 3, 2021 — 1:22 AM

Working with ssh keys on Linux servers/cluster

If you’ve Linux servers/cluster and for each user you need to have ssh key for password-less access to different nodes, below script might be useful or be a small hint on what you might be able to get. Scenario which I made below script is a cluster of Linux servers running distributed computing application and […]

Updated: December 14, 2020 — 6:41 PM

Checking bind config & restarting service

I was using bind installed as DNS server in home lab and as I was doing multiple modification, I wanted to if I made any mistake in my configuration, so I made below little script which is supper easy to read and modify; it’ll just show where (which file) issue exist instead of checking manually […]

Updated: December 5, 2020 — 11:24 PM

hosts file modification base on network address

There are times, we might have a different networks and for each one we might need different manual IP and name mapping in “hosts” file. Let’s assume we have one iSCSI server (iscsi-srv.test.lab) connected to two different networks (192.168.10.x/24 & 192.168.11.x/24) providing service. For some reason these two network can see each other so if […]

Updated: October 20, 2018 — 3:51 PM

Disabling upload feature for ShareX

There’s a free interesting application called “ShareX” which is great for lots of different tasks such as “screen shot, screen recording, file uploading and etc.”. If you interested on automatically uploads new screen shots online and share, then you might find this application very useful. One of useful feature in this application is the upload […]

Updated: October 20, 2018 — 2:45 PM

Docker Menu Base Tool

As I mentioned before, I wrote a small script (for Linux) to help me with containers in my test lab. This small script would help with “starting, stopping, removing, creating and listing” of containers. For “starting” or “stopping” the containers, it’s possible to use their name or pattern. For the creation of container, it’s possible to […]

Updated: April 14, 2018 — 7:19 PM

Trusted Hosts Helper (Ver 0.1)

After writing my post about “Server Manager & WinRM” I decided to write a script to take care of adding and modifying the TrustedHosts list. Here are two scripts, first one is menu-based script which would run entirely in the PowerShell/ISE window and second one is GUI; Graphical interface has been created using “SAPIEN PrimalForm […]

Updated: February 21, 2014 — 12:37 AM