CentOS – Setup the iptables Firewall
KB ID 0000938 Problem I was a little perturbed to find out the firewall on my CentOS web server was wide open today. My server setup notes yielded no clues, so it was time to put my ‘Linux Head’ on and fix it. Solution 1. Connect to the server via console or SSH. As I’m going to change the iptables config file lets back it up (always assume you are going to smash something!) cp /etc/sysconfig/iptables iptables.bak 2....
CentOS 7 – No Network Connection
KB ID 0001047 Problem A while ago I spun up a CentOS server in VMware Workstation, and I could not get it connected to the network, I was in a bit of a hurry, so I blew it away and just built a new server with CentOS 6. This week I’ve been using VirtualBox and spun up a new CentOS 7 server and had the same problem. Solution 1. Quite why CentOS 7 does this I’m not sure, My NIC is called enp0s3 (run ‘ip addr’ to...
CentOS 7 – Ifconfig Command Not Found
KB ID 0001048 Problem Although not my strongest subject, I know enough to get by in Linux, so I was a little put out when I tried to run ifconfig, only to be told it could not be found. On an ‘out of the box’ install you are supposed to use ‘ip addr’ instead. Solution To Install Ifconfig 1. Run either of the following; yum provides ifconfig or yum whatprovides ifconfig And you should see a net-tools package....
Webmin – Upgrade Error – ‘Perl (Net::SSLeay) is needed’
KB ID 0001100 Problem I like to keep my CentOS server updated as much as I can, but the last couple of times I’ve gone to run the upgrade of the Webmin console, I’ve got this; error: Failed dependencies: perl(Net::SSLeay) is needed by webmin (version) Solution 1. As error messages go this is not a bad one, it obviously needs perl installing. So SSH into the server and execute the following command; yum -y install perl...