Author Archives: SoCRaT

About SoCRaT

Systems Engineer, OSS & Linux Geek

How to change keyboard layout on Ubuntu Linux server

So, I have some Linux servers with default keyboard set to Italian, which is totally different from the US one when it comes to special characters. There are multiple ways to do it, but the fastest and easiest one I … Continue reading

Posted in Linux, Ubuntu | Tagged , , , | Leave a comment

How to add a static route to force specific traffic to go through a specific NIC

route -p add 10.152.212.0 mask 255.255.255.0 10.224.5.1 This will permanently (-p) add a static route so that any request going to an IP in the 10.152.212.0/24 (255.255.255.0) network goes through the network gateway 10.224.5.1 of the other network card In … Continue reading

Posted in Windows | Tagged , | Leave a comment

How to convert vmware vmdk disks to a different format using vmware workstation

From inside “C:\Program Files (x86)\VMware\VMware Workstation” (Windows default installation location), or wherever your installation is on Linux or Windows: vmware-vdiskmanager.exe -r ‘source.vmdk’ -t 5 ‘destination.vmdk_stream.vmdk’ ‘-t 5’ is where you specify the stream-optimized format for example, here are all available … Continue reading

Posted in vmware | Tagged , , , | Leave a comment

How to change the web server identification string of your OpenVPN AS Server on Ubuntu 22.04

The default web server identification string of your OpenVPN Server can be one way to identify it in automated vulnerability scanners such as nmap. To change it to an arbitrary value to reduce the chance of being identified by vulnerability … Continue reading

Posted in Linux | Tagged , | Leave a comment

How to enable/disable a network interface on Windows from command line

Assuming “Ethernet” is the name of the network connection you need to enable or disable: To enable: netsh interface set interface “Ethernet” enable To disable: netsh interface set interface “Ethernet” disable

Posted in Windows | Tagged , , | Leave a comment