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

80 total results found

Cisco ASA Cli

Networking

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

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 /...

MegaCli

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: https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-contr...

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

Windows

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...

Fail2Ban

Linux

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...

Arch install notes (uEFI & Nvidia)

Linux

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...

Grub

Linux

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 ...

iptables

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 192.168.1.10...

IIS 7: Install a certificate

Windows

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...

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:...

Apache/Nginx/Varnish

Linux

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...

Nagios NRPE

Linux

Downloading Nagios Core: https://www.nagios.org/downloads/nagios-core/thanks/?t=1500128149 Installing Nagios Core: Installation is really easy just follow the guide: https://assets.nagios.com/downloads/nagioscore/docs/Installing_Nagios_Core_From_Source.pdf...

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 ...

Useful Commands

Linux

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...

Verifying CMS versions

Linux

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 "\$...

HaProxy

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...

Firewalld

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...

Systemd

Linux

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

LogRotate

Linux

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...

Links

Other

  SSL https://www.whynopadlock.com https://www.ssllabs.com/ssltest/ https://www.sslshopper.com/ssl-checker.html DNS / Domain https://toolbox.googleapps.com/apps/dig/ https://www.whatsmydns.net/ https://intodns.com/ https://www.whois.net/ http://redir...