Categories
Mastering Development System & Network

application that take too long to execute

You have an application that take too long to execute, and do not require user interaction. As a systems administrator how will you ensure the execution of this application does not continue to interfere will current application on your desktop.

Categories
Mastering Development System & Network

How can I prevent simultaneous connections from single IP?

I am running a WordPress site on digital ocean droplet, and the droplet is running CentOS with CWP. Website is new so it has very low amount of genuine traffic, on average it has around 3-5 visitors per day. However, the site is under attack since last couple of weeks. I receive almost daily an […]

Categories
Mastering Development System & Network

Inverse Name Search by UID (CentOS 8) – Retrieves last created with same UID

I am working with CentOS 8 and I have a problem with UIDs and User Names. I have installed VestaCP to manage my websites. The user by the name of “user123” and UID 1007 is the owner of all the websites (user in VestaCP). Then I have created individual FTP users for each website. Each […]

Categories
Mastering Development System & Network

Event Logs for VSS Shadow Copy System Provider in Windows Server 2012 R2

I’m administering a Windows 2012 R2 server with Shadow Copies enabled using the System provider and last night 28 days of shadow copies just disappeared. VSSADMIN can list 2 shadow copies for the volumes. Does the System provider log any events to Windows Event logs? If so, which logs/id’s should I be looking for?

Categories
Mastering Development System & Network

Block bruteforce attempts with nginx & cloudflare without rate limiting

So I discovered servers trying to bruteforce my API so I want to block them…but my specific scenario made it difficult to work with common solutions found on the internet. 1) I don’t want to just rate limit, if any IP attempts to authenticate with the API and fail more than X times in ~6 […]

Categories
Mastering Development System & Network

cache_writeback of thin-provisioning-tools running failed

I use Ubuntu 16.04 with kernel 5.4 and thin-provisioning-tools version 0.8.5 I want to test the cache_xml and cache_writeback tools of thin-provisioning, but it failed. It always failed and I don’t know how to debug. I have two SSD as RAID0 and use them to be a dm-cache device. blockdev –getsz /dev/sdb 937703088 blockdev –getsz […]

Categories
Mastering Development System & Network

Password protect a folder, also use IP white-list

I need to give access to a folder to specific IP addresses and also password protect the directory. The flow should be like this: If the folder is accessed from a white-listed IP then ask a password else block/redirect. Is it possible to use Plesk utilities?

Categories
Mastering Development System & Network

Isn’t there a way to disable the Personal side of a Microsoft Account?

I am very sure I saw something within the last year saying that you could disable the Personal side of a Microsoft Account. Of course, we know that a user, name@company.com has both a Work or School account and a Personal account associated with that same email address, confusingly. I definitely recall reading the personal […]

Categories
Mastering Development System & Network

With a vsan issue where you cant access vcenter, should you ssh into all machines and power them down prior to restarting esxi host?

So I have a vsan cluster, 4 esxi hosts all contributing to vsan as well as compute. Vcenter lives in esxi01. Esxi01 is not responding and I cannot open the web gui. I can still ping every vm and ssh into most. I believe esxi01 is out of file descriptors. Is it best to ssh […]

Categories
Mastering Development System & Network

How to set static ip on Hyper-V vm when host has one network card?

I am running Hyper-V on Windows 10 and created an Ubuntu server vm running postgresql. My pc has a single nic card. There is a single network adapter on the VM that is connected to the Default switch in Hyper-V. I am able to connect to the internet from the vm and can connect to […]