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
We use cookies to optimise our website and our service.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.