Time-stamp: <2012-03-30 Fri 16:56 README.md>
Author....: 'Mash (Thomas Herbert)
Bacula concurrent jobs multiple storage devices client labeled pools Debian installation and configuration.
Please see http://toshine.org/etc for full article.
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| #Packet sniffer in python for Linux | |
| #Sniffs only incoming TCP packet | |
| import socket, sys | |
| from struct import * | |
| #create an INET, STREAMing socket | |
| try: | |
| s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_TCP) | |
| except socket.error , msg: |
Time-stamp: <2012-03-30 Fri 16:56 README.md>
Author....: 'Mash (Thomas Herbert)
Bacula concurrent jobs multiple storage devices client labeled pools Debian installation and configuration.
Please see http://toshine.org/etc for full article.
| input { | |
| file { | |
| path => [ "/usr/local/var/log/suricata/eve.json" ] | |
| codec => json | |
| } | |
| } | |
| filter { | |
| if [src_ip] { | |
| geoip { |
| #PROLOGUE: all this should be run as root, otherwise stated | |
| #update && upgrade: | |
| apt-get update && apt-get upgrade -y | |
| #create a new user | |
| adduser user_x | |
| #create group admin (funny enough, it does not exist, although its accounted in the /etc/sudoers file): | |
| addgroup --system admin |
| #!/bin/bash | |
| echo "Select on option:" | |
| echo "1) Set up new PoPToP server AND create one user" | |
| echo "2) Create additional users" | |
| read x | |
| if test $x -eq 1; then | |
| echo "Enter username that you want to create (eg. client1 or john):" | |
| read u | |
| echo "Specify password that you want the server to use:" | |
| read p |
It's possible to run a custom (instead of hypervisor-managed) kernel for use with Debian 8.x on a DigitalOcean droplet.
We'll build one with grsecurity, "an extensive security enhancement to the Linux kernel that defends against a wide range of security threats through intelligent access control, memory corruption-based exploit prevention, and a host of other system hardening".
Note: The stable patches for Linux 3.14.x and 3.2.x are not publicly available anymore, so we'll be applying the free 4.2.x (test) patch. The URLs and filenames in this document may become outdated, so fetch the latest from grsecurity.net and kernel.org.
Install dependencies:
| #!/bin/bash | |
| set -e | |
| # Debian 8 'Jessie' GlusterFS Install | |
| ######### | |
| #ToDo: | |
| # * Change guid/suid of mount | |
| # * Give option for cluster type | |
| # * Change variables via command line read | |
| ######## |
| find /home/HOMEDIR/public_html \( -name "*.php" \) -type f -print0 | xargs -0 grep --binary-files=without-match -ir "base64_decode\s*(" |
| ### ElasticSearch version | |
| if [ -z "$1" ]; then | |
| echo "" | |
| echo " Please specify the Elasticsearch version you want to install!" | |
| echo "" | |
| echo " $ $0 1.7.1" | |
| echo "" | |
| exit 1 | |
| fi |