Howtos / Articles

How To Change The SSH Server Port Number

Changing the port number that your SSH server listens on is a simple way to prevent random brute force login attacks against your server. While people can still perform attacks against SSH running on a different port number, most automated tools will default to port 22, and not actually do a full port scan. Any port number can be used, as long as it is not already in use by another service. Note: Make sure you are logged in as…

Read more [...]

Setting a static IP address in FreeBSD

If your FreeBSD install is currently set up to obtain an IP address automatically via DHCP, and you want to change it to use a static IP, this article is for you. If you want to set up any sort of server on the machine, it is advisable to set up a static IP address. The network interface address settings for FreeBSD are stored in the ‘/etc/rc.conf’ file and can manually be edited, however FreeBSD provides a nice GUI to…

Read more [...]

Updating FreeBSD using freebsd-update

FreeBSD provides the ‘freebsd-update’ tool to allow for easy checking/downloading/installation of security patches. Updating FreeBSD is a two stage process. You need to first download (or ‘fetch’) the updated packages, and then you need to actually install the updated packages. This two stage process allows you to set up a cron job to routinely check and download updates, while still leaving the actual installation of the updates for when the administrator wants to install them. Note: These commands must be…

Read more [...]

Enable su access for users in FreeBSD

On a default installation of FreeBSD you will find that you can’t SSH into the server using the root account, and any accounts that you have added, can’t run the ‘su’ command to elevate to root. To enable ‘su’ access, the user needs to be part of the ‘wheel’ group. Note: These commands must be run from an account that has root privileges. To add a user (in this example, a user called ‘administrator’) to the wheel group, run the…

Read more [...]