The below will open tcp port 10000 on FirewallD to get access to webmin firewall-cmd –permanent –zone=public –add-port=10000/tcp A reload of FirwwallD is needed to activate the permanent rule into the running environment firewall-cmd –reload
In common situation, "system ip address" is the ETH0 address. So edit /etc/sysconfig/network-scripts/ifcfg-eth0 with your favourite text editor and run service network restart ps don't forget to change default gw also, it's located in /etc/sysconfig/network.
This post shows how to find out what version of Centos you are running from the command line. tail /etc/redhat-release This will output the version in a simple format: Centos release 5.10 (Final)
This tcpdump command will grab the first 1024 bytes (vs. smaller 68 or so) and line buffer the output for all packets using port 80 (http) tcpdump -s 1024 -l -A port 80
First of all I list all the rules including line numbers like this; iptables -L -t nat –line-numbers I then look at the output that will be similar to the below In this example lets say I want to delete rule number 2 in the PREROUTING chain, […]
Sometimes I have the need to send an email with an attachment directly from the console, to do this I use a small email client called “mutt” it can be installed in Centos using;
I often am faced with deleteing mails from MAILER-DAEMON that are going to non existant domains in my Postfix queue. Rather than manually deleting each email by hand, I now use a little script that does the job for me. All I do now is type in “delmd” without the […]
I have just been working on a site that needs PHP 5.2 or above. The stock repositories for Centos that are provided by Virtualmin do not contain the PHP version I needed. However they do provide a Bleeding Edge packages, these must only be used if you know what you are […]
On your VM host you need to initiate installing the VMware tools into your guest. Once this has been done the remaining steps are carried out on the guest OS. As root you need to mount the VMware Tools virtual CD-Rom image#mount /dev/cdrom /mnt