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

99 total results found

Cluster

Linux

MS SQL

Windows

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

Let's Encrypt & Certbot

Linux

Installation Ubunutu add-apt-repository ppa:certbot/certbot apt-get update && apt-get install python-certbot CentOS yum install epel-release yum install python-certbot certbot Certbot You must stop anything on port 443/80 before starting certbo...

Update a port in Neutron

OpenStack

  To update a port in neutron you can do the following: neutron port-update --fixed-ip subnet_id=SubNetID,ip_address=X.X.X.X --fixed-ip subnet_id=SubNetID,ip_address=X.X.X.X <PORT_ID> * Don't forget to input the already present IPs in the comman...

Openstack commands

OpenStack

  Nova: List of instances openstack server list nova list Details on a specific instance openstack server show <server id> nova show <server id> Rebuild an instance openstack server rebuild --image <image-id> <server-i...