Centos 7 Firewall open a port

Use this command to find your active zone(s): firewall-cmd –get-active-zones It will say either public, dmz, or something else. You should only apply to the zones required. In the case of dmz try: firewall-cmd –zone=dmz –add-port=2888/tcp –permanent Otherwise, substitute dmz for your zone, for example, if your zone is public: firewall-cmd –zone=public –add-port=2888/tcp –permanent Then…

Kernel: e1000e 0000:02:00.0: eth0: Error reading PHY register

In recent CentOS version 6.3 is an unresolved bug, which causes the network card to freeze the server. Following message appears in /var/log/messages kernel To work around the problem you will need to turn off Active-State Power Management (ASPM) (Feature that saves power in the Peripheral Component Interconnect Express (PCI Express or PCIe) subsystem by…

Enable X11 Forwarding on Centos/Redhat

1) Install the following: xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils 2) Enable the following in the sshd_config file X11Forwarding yes 3) Use an appropriate X-Server on your desktop nJoy 😉

How To Install WordPress on Centos 6

About WordPress WordPress is a free and open source website and blogging tool that uses php and MySQL. It was created in 2003 and has since then expanded to manage 22% of all the new websites created and has over 20,000 plugins to customize its functionality.

Auto-blacklist iptables

Gather a list of ips which fail logins and drop from firewall for the future lastb | awk '{ FS == "[ \t]+" ; print $3; }' | egrep -o '([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}'| grep -v "192.168." | sort | uniq | xargs -n 1 -I {} iptables -A INPUT -s {} -j DROP if you want to…

Installing latest ImageMagick on Centos 6.3

When I needed ImageMagick on Centos the default installer came with a version some 400 verison back. Installing the latest version was a bit wiry so here it goes:   wget “http://www.imagemagick.org/download/linux/CentOS/i386/ImageMagick-6.8.6-9.i386.rpm” yum install bzip2-devel freetype-devel libjpeg-devel libpng-devel libtiff-devel giflib-devel zlib-devel ghostscript-devel djvulibre-devel libwmf-devel jasper-devel libtool-ltdl-devel libX11-devel libXext-devel libXt-devel lcms-devel libxml2-devel librsvg2-devel OpenEXR-devel yum install…