I hereby claim:
- I am simonclausen on github.
- I am simonclausen (https://keybase.io/simonclausen) on keybase.
- I have a public key whose fingerprint is A700 5232 8E11 02DE F388 4C48 5BDF 72E1 8DF6 BC05
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The purpose of this "howto" is to document how browsing can be done in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the "How to Contribute" section for information on contributing your own knowledge.
# on port 9201 | |
DELETE /index_es1 | |
PUT /index_es1 | |
{ | |
"settings": { | |
"number_of_shards": 1 | |
, "number_of_replicas": 0 | |
} | |
This example is installation from source on Debian 9. Package installs are dependencies for the build. These should apply to other distributions as well.
After dependcies are installed, the usual configure, make, make install can be done.
apt-get install -y bind9utils libbind-dev gnuplot libkrb5-dev libssl-dev libcap-dev libxml2-dev libgeoip-dev
wget ftp://ftp.nominum.com/pub/nominum/dnsperf/2.1.0.0/dnsperf-src-2.1.0.0-1.tar.gz
tar -zxvf dnsperf-src-2.1.0.0-1.tar.gz
example: | |
PRI = 191 | |
To get the Facility | |
Divide the PRI number by 8. | |
191/8 = 23.875 | |
The whole number part is the facility. | |
To get the Severity |
log / stdout "\{\"hostname\":\"{host}\",\"remote\":\"{remote}\",\"user\":\"{user}\",\"when_iso\":\"{when_iso}\",\"method\":\"{method}\",\"host\":\"{host}\",\"uri\":\"{uri}\",\"proto\":\"{proto}\",\"status\":\"{status}\",\"size\":\"{size}\",\"query\":\"{query}\",\"mitm\":\"{mitm}\",\"latency_ms\":\"{latency_ms}\",\"tls_cipher\":\"{tls_cipher}\",\"tls_version\":\"{tls_version}\",\"scheme\":\"{scheme}\",\"referer\":\"{>Referer}\",\"user_agent\":\"{>User-Agent}\",\"fragment\":\"{fragment}\"\}" |
# ============ | |
# COMMON TASKS | |
# ============ | |
# Run state.sls file on minion(s) | |
salt -G 'os:Ubuntu' state.apply ubuntu1401 # Formula file name without .sls at the end | |
salt -G 'os:Ubuntu' state.apply ubuntu1401 test=True # Test only (dryrun) | |
salt -G "minion_roles:ONLINE" state.apply execute_script_example pillar='{"single_instance_update": "aiat"}' | |
# Webhook state.sls example |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |