sendmail

Sendmail is an MTA, meaning it accepts email messages sent to it using the SMTP proto- col and transports them to another MTA email server until the messages reach their destinations. It also accepts email for the local network and delivers them to local mail spools, one for each user. 1.Mail User Agent(MUA) A client … Continue reading sendmail

vnc with flux-box

[root@rafi ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet 192.169.178.204/32 brd 192.169.178.204 scope global lo:1 inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fa:16:3e:3b:24:6d brd ff:ff:ff:ff:ff:ff inet 10.192.7.166/23 brd … Continue reading vnc with flux-box

ntp

[root@server-rhel6 ~]# yum install ntp -y [root@server-rhel6 ~]# date Tue Feb 23 16:43:07 PST 2016 vim /etc/ntpd.conf ====> comment this lines first and add required lines #server 0.rhel.pool.ntp.org iburst #server 1.rhel.pool.ntp.org iburst #server 2.rhel.pool.ntp.org iburst #server 3.rhel.pool.ntp.org iburst restrict 172.16.28.0 mask 255.255.255.0 nomodify notrap server 127.127.1.0 #local clock fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/ntp.drift logfile … Continue reading ntp

ldap

LDAP stands for Lightweight Directory Access Protocol. LDAP is a solution to access centrally stored information over network. This centrally stored information is organized in a directory that follows X.500 standard. The information is stored and organized in a hierarchical manner and the advantage of this approach is that the information can be grouped into … Continue reading ldap

nagios

 Nagios-Server-Side [root@nagios ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm warning: /var/tmp/rpm-tmp.mL7UUO: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing...                ########################################### [100%] 1:epel-release           ########################################### [100%] [root@nagios ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpm warning: /var/tmp/rpm-tmp.MpyvoN: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY Preparing...   … Continue reading nagios

omd

-----------------------------------SERVER-SIDE--------------------------------------- wget https://labs.consol.de/repo/stable/rhel6/x86_64/omd-1.30.rhel6.x86_64.rpm rpm -ivh omd-1.30.rhel6.x86_64.rpm or rpm -Uvh "https://labs.consol.de/repo/stable/rhel6/i386/labs-consol-stable.rhel6.noarch.rpm"  yum install omd* or(If rhel-7) rpm -Uvh "https://labs.consol.de/repo/stable/rhel7/i386/labs-consol-stable.rhel7.noarch.rpm"  yum install omd* [root@li911-180 ~]# omd create prod Adding /omd/sites/prod/tmp to /etc/fstab. Creating temporary filesystem /omd/sites/prod/tmp...OK Restarting Apache...OK Created new site prod with version 1.30. The site can be started with omd start prod. The default web … Continue reading omd

self signed certs

steps to generate csr 1 Prerequisites 2 Generate the RSA key 3 Create a CSR 4 Verify your CSR 5 Submit your CSR [root@machine1 ~]#yum install openssl openssl-devel -y [root@machine1 ~]# mkdir example.com.ssl [root@machine1 ~]# cd example.com.ssl/ [root@machine1 example.com.ssl]# openssl genrsa -out ./example.com.key 2048 Generating RSA private key, 2048 bit long modulus .....+++ .....................+++ e … Continue reading self signed certs

https

Apache generates its private key and converts that private key to .CSR file (Certificate signing request). Then Apache sends the .csr file to the CA (Certificate Authority). CA will take the .csr file and convert it to .crt (certificate) and will send that .crt file back to Apache to secure and complete the https connection … Continue reading https

apache

yum install httpd ------------------------------------------------------------------------------------------------- service httpd start ------------------------------------------------------------------------------------------------- vim /var/www/html/sample.html <head> <body> hello guies how are u </body> </head> ------------------------------------------------------------------------------------------------- <virtualhost *:80> documentroot /var/www/html/ directoryindex sample.html servername mywebserver.com </virtualhost> -------------------------------------------------------------------------------------------------- httpd -t -------------------------------------------------------------------------------------------------- service httpd restart ------------------------------------------------------------------------------------------------- In browser just type server-name or ipaddress 1. What is Apache web server? Answer : Apache web server … Continue reading apache

dns

Domain Name Servers (DNS) are the Internet's equivalent of a phone book. They maintain a directory of domain names and translate them to Internet Protocol (IP) addresses. This is necessary because, although domain names are easy for people to remember, computers or machines, access websites based on IP addresses. ---------------------------------------------------------------------------------------------- [root@server-rhel6 ~]# ip a | … Continue reading dns