Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

79 total results found

Cisco ASA Cli


Static NAT (SNAT) object network obj-  host  nat (inside,outside) static dns PAT Allow outside connections targeting TCP port 80 to redirect to internal port 8080. object network obj- host 1...

Nagios NRPE


Downloading Nagios Core: Installing Nagios Core: Installation is really easy just follow the guide:



Add a service to logrotate vi /etc/logrotate.d/name_of_file /var/log/some_dir/somelog.log {        su root root        missingok        notifempty        compress        size 5M        daily        create 0600 root root} su - run a root user missing...



  vim /etc/systemd/system/foo.service chmod +x /etc/systemd/system/foo.service [Unit] Description=foo [Service] ExecStart=/bin/bash echo "Hello World!" [Install] systemctl daemon-reload systemctl start foo You can also use syst...


Linux Firewall

Zones Pre-defined zones within firewalld are: drop: The lowest level of trust. All incoming connections are dropped without reply and only outgoing connections are possible. block: Similar to the above, but instead of simply dropping connections, incomin...


Linux Cluster

This is not a tutorial of how haproxy works, this is just some notes on a config i did, and some of the options i used that made it stable for what i needed. In the example bellow you will find a acceptable cipher, how to add a cookie sessions on HA, SSL offl...

Verifying CMS versions


WordPress version: Linux/cPanel: find /home/*/public_html/ -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$wp_version =" {} \;  Linux/Plesk: find /var/www/vhosts/*/httpdocs/ -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$...

Useful Commands


This page is to share commands / arguments that makes life easier.   Rsync rsync -vaopHDS --stats --ignore-existing -P (Source) (Destination)  -v, --verbose-a, --archive (It is a quick way of saying you want recursion and want to preserve almost everything...

Add IP on vSwitch

Windows Hyper-V

So you installed hyper-v and you need to configure your NIC with your public IP and your secondary IP's, let me show you how. (Would recommend having physical access / KVM IP if anything fails) First create a v-Switch in the hyper-v settings. Then, go to ...



Apache vhost vim /etc/httpd/conf/httpd.conf add ( include vhosts/*.conf ) at the bottom mkdir /etc/httpd/vhosts vim /etc/httpd/vhosts/domains.conf ####################### ### NO SSL ### ####################### <VirtualHost *:80> Doc...

Software Raid

Linux Raid

Create raid: Raid levels can be changed with: --level=1 // --level=0 // --level=5 Raid 1 mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sdX /dev/sdX Raid 5 mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdX /dev/sdX /...

Exim - Find Spam

Linux cPanel

  To get a sorted list of email sender in exim mail queue. It will show the number of mails send by each one. exim -bpr | grep "<" | awk {'print $4'} | cut -d "<" -f 2 | cut -d ">" -f 1 | sort -n | uniq -c | sort -n List mail ID's for that account:...

IIS 7: Install a certificate


If you have 2 files, a key and a crt, you can use the following command in linux/osx or cygwin with openssl: openssl pkcs12 -export -out ssl_cert.pfx -inkey priv_key.key -in the_crt_file.crt  To Install an Intermediate Certificate in Microsoft IIS 7 Cl...


Linux Firewall

iptables arguments -t = table, -X = del chain, -i = interface Deleting a line: iptables -L --line-numbersiptables -D (CHAIN) (LINE NUMBER) Nating: example for FTP NAT:  iptables -t nat -A PREROUTING -p tcp --dport 21 -j DNAT --to-destination



Normal grub install (root@server) # grub     GNU GRUB version 0.97 (640K lower / 3072K upper memory)   [ Minimal BASH-like line editing is supported. For the first word, TAB     lists possible command completions. Anywhere else TAB lists the possible ...

Arch install notes (uEFI & Nvidia)


Before starting the bootable media, if you are on a GTX 10XX, the interface will not load properly, to fix this in the arch iso boot menu, click on the "e" key and add "nouveau.modeset=0" at the end of grub cfdisk /dev/sda Create 3 partitions as listed below...



What is Fail2Ban: Fail2Ban is an intrusion prevention tool to prevent brute-force attacks or heavy requests that are repetitive and insecure. Once you create a jail and create a filter for that jail, fail2ban will analyze the regex used in the filter to sc...

Windows Server 2012 booting in recovery (GPT/UEFI FIX)


If OS keeps booting in recovery, this is how you can fix it: Open the CMD in the windows live cd and start diskpart and list the disks that are available: diskpart list disk Select the disk for the OS sel disk 0 List the volumes inside that disk: list...


Linux Raid

Check raid card: lspci | grep -i raid Ubuntu/Debian: apt-get install alien # Convert to .deb alien -k --scripts filename.rpm # Install .deb dpkg -i filename.deb CentOS/Other:



  SSL DNS / Domain http://redir...