Category Archives: Linux

Stuff about Linux

DNS: Configure DNS to return the same IP Address for all hostnames

Hi,

its possible to catch all DNS host queries to just one IP Address. For example in an open WLAN to redirect a User to a authentication page before he can use the network.

Continue reading DNS: Configure DNS to return the same IP Address for all hostnames

Linux: Configure a tiny DHCP Server

Hi,

the best choice to setup a very tiny dhcp server on linux is the busybox udhcpd DHCP implemention.


root@debdev:~# apt-get install udhcpd

Continue reading Linux: Configure a tiny DHCP Server

Linux: Regenerate sshd host keys

Hi,

to generate sshd host keys, for example in case of cloning a virtual linux instance, do the following steps:

Checkout the key file names

root@debdevt:~# grep HostKey /etc/ssh/sshd_config
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key

Continue reading Linux: Regenerate sshd host keys

OpenVPN: Built a certification authority from scratch with openssl

Hi,

these are the steps to build your own CA (Certification Authority) and all requiered certificates for a OpenVPN instance (Client and Server) on Linux.

Define your environment. Always set these variables in the shell before executing openssl commands. Adjust it to your needs.
Continue reading OpenVPN: Built a certification authority from scratch with openssl

Linux: Creating a ssh keypair with puttygen

Hi,

use the following steps to create a ssh key pair with puttygen and import the public key on a linux hosts.

Start puttygen and generate an 4096 Bit RSA Key.

Generate an 4096Bit RSA Key
Generate an 4096Bit RSA Key

Set a strong password and save it (D:\temp\private.ppk in this example) at a secure location.
Continue reading Linux: Creating a ssh keypair with puttygen