TP-LINK TL-MR3020 Portable 3G/4G Wireless N Router Mtel configuration

TP-LINK TL-MR3020 is a portable 3g/4g wireless N router.The default ip address is 192.168.0.254, username:admin,password:admin
It’s work fine with Mtel mobile provider and HUAWEI E173 3g usb dongle.Here is the configuration example.
TPLINK_01

TPLINK_02

TPLINK_03

TPLINK_04

TPLINK_05

TPLINK_06

By default TP-LINK TL-MR3020 comes with firmware version 3.14.2 and it doesn’t work correctly with ZTE K3565-Z 3g usb dongle.After firmware upgrade to 3.17.1 it works fine for me 🙂 It is recommended to use Internet Explorer during firmware upgrade process.

TPLINK_07

TPLINK_08

The upgrade process was successful 🙂

TPLINK_09

upgrade junos ex2200 switch

Navigate to juniper website and download junos 12.3R3.4 release package.

jun1

Open your web browser and log in to the juniper switch

jun2

Take a look of the current JUNOS release, it is 11.4R7.5

jun3

Go to -> Maintain -> Software -> Upload Package and choose the downloaded package.

jun4

jun5

jun6

jun7

jun8

We have to wait a few minutes, after that we can check the current version of JunOS
jun9

The upgrade process to JunOS 12.3R3.4 was successful 🙂

get cisco power consumption 3945

cisco7

You can get power consumption information of your cisco router with show environment command.

This is output of my cisco 3945 router

Border#show environment
SYSTEM POWER SUPPLY STATUS
==========================
Internal Power Supply 1 Type: AC
Internal Power Supply 1 12V Output Status: Normal

Internal Power Supply 2 Type: Absent

SYSTEM FAN STATUS
=================
Fan 1 OK, Low speed setting
Fan 2 OK, Low speed setting
Fan 3 OK, Low speed setting
Fan 4 OK, Low speed setting
Fan 5 OK, Low speed setting

SYSTEM TEMPERATURE STATUS
=========================
Intake Left temperature: 17 Celsius, Normal
Intake Right temperature: 16 Celsius, Normal
Exhaust Right temperature: 17 Celsius, Normal
Exhaust Left temperature: 19 Celsius, Normal
CPU temperature: 50 Celsius, Normal
Power Supply Unit 1 temperature: 19 Celsius, Normal

REAL TIME CLOCK BATTERY STATUS
==============================
Battery OK (checked at power up)

SYSTEM POWER
===============
Motherboard Components Power consumption = 95.5 W
Total System Power consumption is: 95.5 W

Environmental information last updated 00:00:23 ago

As you see the Total System Power consumption is: 95.5 W

Monitoring LSI SMC1078 RAID Controller in VMware ESXi 5.5.0

Log in through ssh service and take a look of a raid controller model

~ # esxcfg-scsidevs -l | egrep -i 'display name|vendor'
Display Name: Local LSILOGIC Enclosure Svc Dev (mpx.vmhba2:C0:T2:L0)
Vendor: LSILOGIC Model: SASX36 A.0 Revis: 9
Display Name: Local USB CD-ROM (mpx.vmhba32:C0:T0:L0)
Vendor: AMI Model: Virtual CDROM Revis: 1.00
Display Name: Local USB Direct-Access (mpx.vmhba32:C0:T0:L1)
Vendor: AMI Model: Virtual Floppy Revis: 1.00
Display Name: Local LSI Disk (naa.6003048004319400196ff10f1cd9e340)
Vendor: LSI Model: SMC1078 Revis: 1.40
Display Name: Local LSI Disk (naa.6003048004319400196ff17d2365327d)
Vendor: LSI Model: SMC1078 Revis: 1.40
Display Name: Local LSI Disk (naa.60030480043194001a1cfe07181f1b2b)
Vendor: LSI Model: SMC1078 Revis: 1.40
~ #

We need to download VMware SMIS Provider, go to LSI web site and download it.
Other useful tool is MegaClI, go to the same link and download MegaCLI 5.5 P1 .Copy files to remote server.

scp vmware-esx-provider-lsiprovider.vib [email protected]:/vmfs/volumes/machines/ISO

scp vmware-esx-MegaCli-8.07.07.vib [email protected]:/vmfs/volumes/machines/ISO

Installation process

esxcli software vib install --no-sig-check -v /vmfs/volumes/machines/ISO/vmware-esx-provider-lsiprovider.vib
esxcli software vib install --no-sig-check -v /vmfs/volumes/machines/ISO/vmware-esx-MegaCli-8.07.07.vib

Shutdown all virtual machines and reboot the esxi host, it will need about 30 minutes to update the storage information and the hard drives will appear in the healt status.
LSI SMC1078

Some MegaCLI useful commands

cd /opt/lsi/MegaCLI #
Controller information

./MegaCli -AdpAllInfo -aALL
./MegaCli -CfgDsply -aALL

Enclosure information

./MegaCli -EncInfo -aALL

Virtual drive information

./MegaCli -LDInfo -Lall -aALL

Physical drive information

./MegaCli -PDList -aALL

check raid for errors

./MegaCli -LDInfo -Lall -aALL -NoLog | egrep -i "fail|degrad|error"

Syntax error on line 52 of /etc/modsecurity/activated_rules/modsecurity_crs_20_protocol_violations.conf: SOLVED

During the configuration of owasp modsecurity core rule set (CRS) the following error appeared

Syntax error on line 52 of /etc/modsecurity/activated_rules/modsecurity_crs_20_protocol_violations.conf:

The main reasons are the previously installed version of libapache2-modsecurity and OWASP CRS.

dpkg -s libapache2-modsecurity | grep Version
Version: 2.6.6-6+deb7u1

owasp-modsecurity-2.2.8-1

libapache2-modsecurity version 2.6.6-6 doesn’t work correctly with owasp csr 2.2.8-1

The earlier version of owasp core rule set is needed.

and here it is a basic configuration of apache modsecurity

aptitude install libapache2-modsecurity

cp /etc/modsecurity/modsecurity.conf-recommended /etc/apache2/conf.d/modsecurity.conf

vim /etc/apache2/conf.d/modsecurity.conf

customize settings


SecRuleEngine DetectionOnly

SecRequestBodyAccess On

SecDebugLog /var/log/apache2/modsecurity-debug.log

SecDebugLogLevel 3

a2enmod mod-security
a2enmod headers
apachectl configtest
/etc/init.d/apache2 reload

Now configure owasp mod-security

wget https://github.com/SpiderLabs/owasp-modsecurity-crs/tarball/v2.2.5
tar xvf v2.2.5
cp -r SpiderLabs-owasp-modsecurity-crs-5c28b52/* /etc/modsecurity/
mv /etc/modsecurity/modsecurity_crs_10_setup.conf.example /etc/modsecurity/modsecurity_crs_10_setup.conf
cd /etc/modsecurity/base_rules/
for f in * ; do ln -s /etc/modsecurity/base_rules/$f /etc/modsecurity/activated_rules/$f;done
cd /etc/modsecurity/optional_rules/
for f in * ; do ln -s /etc/modsecurity/optional_rules/$f /etc/modsecurity/activated_rules/$f; done
vim /etc/apache2/mods-available/mod-security.conf
add owasp config files
Include "/etc/modsecurity/activated_rules/*.conf"

apachectl configtest
/etc/init.d/apache2 reload

mysqldump: Got error: 1044: Access denied for user ‘root’@’localhost’ to database ‘information_schema’ when using LOCK TABLES

This error occurs during mysqldump process,

mysqldump: Got error: 1044: Access denied for user ‘root’@’localhost’ to database ‘information_schema’ when using LOCK TABLES

add the following parameter to mysqldump command “–single-transaction” to solve the problem.