Protect your Asterisk PBX server from Black listed IP address
VoIPBL is a distributed VoIP blacklist that is aimed to protects against VoIP Fraud and minimizing abuse for network that have publicly accessible PBX’s.
For more details http://www.voipbl.org/
For Asterisk PBX you need to install Fail2ban. This is the only required dependency needed to run VoIP Blacklist on your server.
Continue reading Protect your Asterisk PBX server from Black listed IP address
How configure crontab in ESXi to schedule a job every 5 min
For scheduling a command or script every 5 min in ESXi we need to edit following file
#min hour day mon dow command
1 1 * * * /sbin/tmpwatch.py
1 * * * * /sbin/auto-backup.sh
0 * * * * /usr/lib/vmware/vmksummary/log-heartbeat.py
*/5 * * * * /sbin/hostd-probe ++group=host/vim/vmvisor/hostd-probe
00 1 * * * localcli storage core device purge
*/2 * * * * /usr/lib/vmware/vsan/bin/vsanObserver.sh
Continue reading How configure crontab in ESXi to schedule a job every 5 min
How to remove the ESXi web welcome page
For any reason if you want to change VMware ESXi welcome page.
Follow the following steps .
Rename the following page
create new index.html page
if you want to redirect your welcome page to another website copy the following in index.html
Continue reading How to remove the ESXi web welcome page
VMware ESX / ESXi services restarting
Restart the ESXi host daemon
Restart vCenter Agent services
Continue reading VMware ESX / ESXi services restarting
VMware ESXi Datastores refresh issue incorrect free space
We do manual datastore scan or HBA scan to show the correct free space .
We can change the refresh interval manually to edit config.xml file in esxi host.
To change the refresh interval, edit the configuration file and change the
refreshInterval value to the desired interval.
To change the
- Using a text editor, open the
/etc/vmware/hostd/config.xml file on the host.
- Locate the
<datastore> element. This element in the default file is similar to:
<!-- default datastore inventory-->
<!-- <inventory>/etc/vmware/hostd/datastores.xml</inventory> -->
<!-- default datastore refresh interval in minutes -->
<!-- use 0 to disable the auto refresh -->
<!-- <refreshInterval>0</refreshInterval> -->
<!-- default datastore list refetch interval, after getting a VMFS event, in seconds-->
<!-- <refetchVMFSDatastoreListInterval>30</refetchVMFSDatastoreListInterval> -->
- Remove the comment indicators and replace the 0 (zero) in the
<refreshInterval> element with the desired number of minutes. For example, to set the refresh interval to one hour, change this line:
<!-- <refreshInterval>0</refreshInterval> -->
- Save and close the file.
- Restart the hostd service for the changes to take effect.
- /etc/init.d/hostd restart
Continue reading VMware ESXi Datastores refresh issue incorrect free space
Select your Cisco Switch
Quickly identify the right Cisco switch for your needs—whether you’re acquiring a new switch or upgrading an old one.
Just answer a few simple questions and get your results. It’s that easy, so let’s get started.
Cacti Table ‘host’ is marked as crashed and should be repaired
My Cacti server lost all host information and on monitor tab its showing error “Table ‘host’ is marked as crashed and should be repaired”
I tried google got below solution that worked for me .I got my all devices back to monitor.
go to cli directory /var/www/html/cli/
and run command “php repair_database.php”
[root@localhost ~]# cd /var/www/html/cli/
[root@localhost cli]# php repair_database.php
Repairing All Cacti Database Tables
Repairing Table -> ‘cdef’ Successful
Repairing Table -> ‘cdef_items’ Successful
Repairing Table -> ‘colors’ Successful
Repairing Table -> ‘data_input’ Successful
Repairing Table -> ‘data_input_data’ Successful
Repairing Table -> ‘data_input_fields’ Successful
Repairing Table -> ‘data_local’ Successful
Continue reading Cacti Table ‘host’ is marked as crashed and should be repaired
Could not create the java Virtual Machine
When that happens, the easiest solution that has been tested on Windows XP, Windows 7 and Windows 8 is:
Continue reading Could not create the java Virtual Machine
How to install CentOS on Remote Server or VPS
If you want to install CentOS remotely on server on slow link even if you are able to mount the CentOS installation media as DVD iso .It takes lots of time and some time corrupted installation .
Linux is having a feature Netinstall you can use that feature and install the CentOS as version you want.
1- Download the Netinstall bootable media ISO file version you would like to install.
For demo I am going to install CentOS 5.5 32 bit
1- I went to following directory
Continue reading How to install CentOS on Remote Server or VPS
How to Show All NAT Tables Rules IPTABLES
iptables -t nat -L
iptables -t nat -L -n -v | grep 'something'
iptables -t nat -L -n -v
The netstat-nat command display the natted connections on a Linux iptable firewall
yum install netstat-nat
# netstat-nat -n
To display SNAT connections, run:
# netstat-nat -S
To display DNAT connections, type:
# netstat-nat -D
iptables -t nat –line-numbers -L
Delete rule no 6
iptables -t nat -D PREROUTING 6