Relative Content

Debian Server

category

Securing Postgresql

In an ideal world Postgresql ports would not be open to the internet however it is never a bad idea to add a layer of security.  If you do have public facing postgresql ports then it is essential. For this tutorial I have written a couple of script to help with creating a Certificate authority […]

Email Hacking

We had an issue where one of our email accounts got hacked (this can happen from time to time).  The password was relatively secure but it got hacked anyway.  As it was an unmonitored email we were unaware that it was being used to send spam far and wide on a routine basis. Eventually our […]

Using the server as a router and firewall

PPPOE If you are using an ISP provided router then you probably will not need to set up pppoe, but if you are using a modem you will.  From experience thus far it seems that FTP connection tend to work better with modems whereas FTTC have been better with routers.  Vodafone multi IP in particular […]

Vodafone Broadband for Email Servers

This is one of those posts that is incredibly bespoke, but it took a long time on the phone to tech support to get sorted. First thing to know is the types of service that vodafone provide and in particular the type of service that you will require in order to get your email server […]

putty login to linux box with ssh keys

Most of the instructions I have found tell you to generate a key with with puttygen however I have had no success getting it to work this way.  The best way I have found is to use linux to generate a key pair, copy the public key on to the server as per per ssh […]

Command line wifi – Debian

If you want Debian working with wifi on every reboot then you need to configure it. First thing to do is make sure the interface is up using ip link show If not then bring it up: ip link set up wlp2so NOTE: your network interface name might be different. One is assuming that you […]

DHCP and Bind

If you wish to use your server as a dhcp server then you need to make sure that bind9 and the dhcp server can talk to each other.  You should already have bind installed and running as expected at this point.  Next thing to do is install your dhcp server # apt install isc-dhcp-server Debian […]

Vim plugins

The vim configuration file on a user basis is ~/.vimrc.  If you don’t have this file then make it. I always like to start vim with numbering on so the first thing I put in this file is set number   The global configuration file is /etc/vimrc.  in here I like to uncomment the following […]

Open VPN

Installation With point to point tunneling protocol VPN’s depreciated because of security issues we are now not even bothering to install pptp at all and are instead opting for openvpn. For the installation you are going to want 2 applications, openvpn and easy-rsa. #apt-get install openvpn easy-rsa   Build and configure the certificate authority OpenVPN […]

Bacula

No good server would be complete without a system to back up your files and folders. For this purpose we use bacula.  In this instance we already have postgresql installed so all we need to do is create a user #createuser bacula -DRSP -U postgres Once we have a user we can begin installing bacula […]