Howtos / Articles

Viewing HAProxy Statistics

HAProxy is a very capable load balance, but unless you set up the statistics site, you wont easily be able to view the statistics, and in later versions, take down, and bring up back end servers. This is a great feature that allows you to take one of your back end servers offline without shutting down the back end server, or changing any config files. Simply turning off the back end server would do the trick, but sometimes you may…

Read more [...]

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 [...]

How To Disable root Logins Over SSH on CentOS

Most Linux distributions allow the root user to connect in via SSH, and CentOS is no exception. It is recommended that root logins are never used, and you should use either su or sudo to elevate the permissions of a normal user account. As such, the best option is to disable root logins in the SSH server configuration file. Note: these commands should be run as a user with root privileges (sudo or su), or from the console as root.…

Read more [...]

How To Disable root Logins Over SSH on Ubuntu

Most Linux distributions allow the root user to connect in via SSH, however if you try to connect into Ubuntu as root after a default install, you will find that you wont be able to get in. While it may look like the root account is not permitted to login, it is just because that the root account doesn’t have a password set. If you end up setting a password on the root account for some reason, you will be…

Read more [...]

How To Disable IPv6 on CentOS

A default install of CentOS will enable IPv6 connectivity. If you don’t need IPv6, there is no need to have it enabled. Follow the steps below to disable IPv6 on a CentOS install. Note: Run these commands as a user with root privileges. Check to see if you’re installation is currently set up for IPv6: # cat /proc/sys/net/ipv6/conf/all/disable_ipv6 If the output is 0, IPv6 is enabled.
If the output is 1, IPv6 is already disabled. Edit the /etc/sysctl.conf file to…

Read more [...]

Page 18 of 23« First...14151617181920212223