Sunday, November 20, 2016

Secure Domain by Free SSL certificate Lets Encrypt

Let's Encrypt is a free, automated, and open certificate authority brought to you by the non-profit Internet Security Research Group (ISRG)

Thursday, November 17, 2016

Windows Folder accessing problem

Cant open windows Folder...

Error Message is like bellow
"This file does not have a program associated with it for performing this action.
Please install a program or, if one is already installed, create an association in the Defalut Programs control"

Goto ::: RUN and type "regedit" click "Yes"

Directory ->> Shell ->>
Delete CMD and Find directory

...................Delete and exit.............. and try to open your folder again.... Enjoy......

Sunday, November 13, 2016

Cacti RRD file not creating

Error:: messages.

"there are no rra's assigned to local data id"
"RRDTool Says:
ERROR: opening '/var/ww/html/cacti/rra/sw-new_traffic_in_28.rrd': No such file or directory"

Check host template

Login- to cacti web by admin -> Click "Console" => Click "Data Templates" =>

Select all "Daily", Monthly, Weekly, Yearly
Select a template "Interface- Traffic" ->  Associated RRA's
                                                               This field is always templated.  
Select all "Daily", Monthly, Weekly, Yearly
and Save.


Saturday, November 5, 2016

Install DKIM SPF in CentOS

 rpm -ivh epel-release-6-8.noarch.rpm
 yum install dkim-milter

 vi /etc/mail/dkim-milter/dkim-filter.conf
KeyList /etc/mail/dkim-milter/keys/keylist

vi /etc/mail/dkim-milter/keys/keylist

mkdir -p /etc/mail/dkim/keys/
cd /etc/mail/dkim/keys/
dkim-genkey -r -d
chmod 644 *
mv default.private default

cat default.txt
add those lines bottom of the zone file of
vi /etc/mail/dkim-milter/dkim-filter.conf
Socket inet:8892@localhost

= vi /etc/postfix/

 milter_default_action = accept
 milter_protocol = 2
 smtpd_milters = inet:localhost:8891
 non_smtpd_milters = inet:localhost:8891

/etc/init.d/dkim-milter start

chkconfig dkim-milter on
/etc/init.d/dkim-milter restart

yum install opendkim

cp opendkim.conf open-dkim-old

vi /etc/opendkim.conf
100 dd

AutoRestart             Yes
AutoRestartRate         10/1h
LogWhy                  Yes
Syslog                  Yes
SyslogSuccess           Yes
Mode                    sv
Canonicalization        relaxed/simple
ExternalIgnoreList      refile:/etc/opendkim/TrustedHosts
InternalHosts           refile:/etc/opendkim/TrustedHosts
KeyTable                refile:/etc/opendkim/KeyTable
SigningTable            refile:/etc/opendkim/SigningTable
SignatureAlgorithm      rsa-sha256
Socket                  inet:8891@localhost
PidFile                 /var/run/opendkim/
UMask                   022
UserID                  opendkim:opendkim
TemporaryDirectory      /var/tmp

mkdir /etc/opendkim/keys/
opendkim-genkey -D /etc/opendkim/keys/ -d -s default
chown -R opendkim: /etc/opendkim/keys/
mv /etc/opendkim/keys/ /etc/opendkim/keys/

vi /etc/opendkim/KeyTable

 vi /etc/opendkim/TrustedHosts

cat /etc/opendkim/keys/
default._domainkey IN TXT "v=DKIM1; g=*; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4pWYSQmBf5fDCwQtXAM0G3NIwMElLKHpmtCMHiWpMAttPmAgUvVYFCElWeYgpkUkb0FKTbXEVYJTKNmUMABwlVMxTOBQd8lZaI574FQf6Ch/KeONRfsMrPBkG/Vdp4IKnmseJJn65lPTDZWlr7s28GeKbCQeet2HnXh65vQWHYwIDAQAB" ; ----- Tayab khan created DKIM default for   TXT "v=spf1 a mx ptr -all"
And add dns zone file entry above the way.

 vi /etc/opendkim/SigningTable

vi /etc/postfix/

smtpd_milters           = inet:
non_smtpd_milters       = $smtpd_milters
milter_default_action   = accept
milter_protocol         = 2

service opendkim start
chkconfig opendkim on
service postfix restart

# Enjoy#############

Friday, November 4, 2016

MikroTik Queue Graph by Cacti

*** Cacti MRTG/Graph for MikroTik

Download Zip File and Unzip and upload specific directory

1. zipdir/scripts/mikrotik_wireless_interfaces.php -> usr/share/cacti/scripts/mikrotik_wireless_interfaces.php
2. zipdir/scripts/mikrotik_ppp_connections.php -> usr/share/cacti/scripts/mikrotik_ppp_connections.php
3. zipdir/resources/script_server/mikrotik_wireless_interfaces.xml -> usr/share/cacti/resources/script_server/mikrotik_wireless_interfaces.xml
4. zipdir/resources/snmp_queries/mikrotik_queue_simple.xml -> usr/share/cacti/resources/snmp_queries/mikrotik_queue_simple.xml
5. zipdir/resources/snmp_queries/mikrotik_queue_tree.xml -> usr/share/cacti/resources/snmp_queries/mikrotik_queue_tree.xml
6. zipdir/resources/snmp_queries/mikrotik_wireless_client.xml -> usr/share/cacti/resources/snmp_queries/mikrotik_wireless_client.xml

Finally Import Template "cacti_host_template_mikrotik.xml" from CACTI Admin Login from web