Linux get server hardware information

Get the model number of a server, tested on HP DL380 and 180’s   [root@cephosd4 ~]# dmidecode | grep “System Information” -A20 System Information         Manufacturer: HP         Product Name: ProLiant DL180 Gen9         Version: Not Specified         Serial Number: xxxxxxx         UUID: xxx-3335-5541-xxx-313930303734         Wake-up Type: Power Switch         SKU Number: 778453-B21         Family: […]

Read More »

OpenBGPD on pfSense

Here is a working config from a multi site MPLS VPN connection managed by AAPT We terminated the connection in the data center with pfSense and OpenBGPD Default route for all remote sites is via the data center   AS 64512 fib-update yes listen on 10.252.0.18 router-id 10.252.0.18 network 0.0.0.0/0 network 192.168.30.0/24 neighbor 10.252.0.17 { […]

Read More »

hpacucli on Linux

Original article here – http://www.thegeekstuff.com/2014/07/hpacucli-examples/ Using hpacucli to manage RAID Create a single disk RAID0 (How i use Ceph on my HP DL180’s) hpacucli ctrl slot=2 create type=ld drives=1I:1:8 raid=0   Show all logical volumes [root@management ~]# hpacucli controller slot=0 logicaldrive all show Smart Array P410i in Slot 0 (Embedded) array A logicaldrive 1 (136.4 […]

Read More »

Example config for Squid reverse proxy using OWA on Exchange 2100 or 2016

/etc/squid/squid.conf     visible_hostname mail.domain.com redirect_rewrites_host_header off cache_mem 32 MB maximum_object_size_in_memory 128 KB #logformat combined %>a %[ui %[un [%tl] “%rm %ru HTTP/%rv” %>Hs %h” “%{User-Agent}>h” %Ss:%Sh access_log /var/log/squid/access.log cache_log /var/log/squid/cache.log cache_store_log none cache_mgr nomail_address_given forwarded_for transparent ssl_unclean_shutdown on #This line is to fix the 2mb connection limit client_persistent_connections off https_port 443 accel cert=/etc/squid/wildcard.crt key=/etc/squid/wildcard.key defaultsite=mail.domain.com […]

Read More »

Fail2Ban

Unban an IP fail2ban-client set sshd unbanip –iphere– Show status of jails [root@l1-adl3 ~]# fail2ban-client status Status |- Number of jail: 1 `- Jail list: sshd   Show the Fail2Ban log cat /var/log/fail2ban.log

Read More »