Create an empty directory, download the code and run it:
$ mkdir /tmp/lj
$ cd /tmp/lj
$ wget https://gist.github.com/benbjohnson/5622779/raw/e53d227ebdbea8d513b62ad076feb3f6ac1c1594/luajit.go
$ go run luajit.go
And you should see:
#!/bin/sh | |
# | |
# init.d script with LSB support. | |
# | |
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org> | |
# | |
# This is free software; you may redistribute it and/or modify | |
# it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 2, | |
# or (at your option) any later version. |
Create an empty directory, download the code and run it:
$ mkdir /tmp/lj
$ cd /tmp/lj
$ wget https://gist.github.com/benbjohnson/5622779/raw/e53d227ebdbea8d513b62ad076feb3f6ac1c1594/luajit.go
$ go run luajit.go
And you should see:
### Add those lines after *filter near the beginning of the file | |
:ufw-http - [0:0] | |
:ufw-http-logdrop - [0:0] | |
### Add those lines near the end of the file | |
### Start HTTP ### |
# Usage: | |
# | |
# Start with: | |
# | |
# sudo /use/local/sbin/nginx -c /path/to/this/nginx.conf | |
# | |
# Tail logs: | |
# | |
# $ sudo tail -f /tmp/access.log /tmp/error.log /tmp/match.log | |
# |
global | |
log 127.0.0.1 local2 | |
chroot /var/lib/haproxy | |
pidfile /var/run/haproxy.pid | |
maxconn 4000 | |
user haproxy | |
group haproxy | |
daemon | |
defaults |
$ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo | |
$ yum install devtoolset-2-gcc devtoolset-2-binutils | |
$ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran | |
-- Source -> NIC -> Sink | |
-- Execute in "chur": | |
-- sudo ./snabb snsh source_nic_sink.lua | |
-- | |
-- link report: | |
-- 2 sent on nic1.tx -> sink.in1 (loss rate: 0%) | |
-- 12,600,876 sent on source.out -> nic1.rx (loss rate: 0%) | |
local basic_apps = require("apps.basic.basic_apps") |
#Bot-Buster™
Tracks nefarious activity on website, and manages accordingly.
##It's probably a bot.
If the requesting entity:
sudo apt-get update | |
sudo apt-get install \ | |
python-dev \ | |
python-pip \ | |
python-virtualenv | |
virtualenv findbots | |
source findbots/bin/activate | |
curl -O http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz |
# Got from https://www.digitalocean.com/community/questions/how-to-install-pptp-vpn-on-centos-7 and changed new workable epel rpm url | |
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm | |
yum -y install ppp pptpd | |
cp /etc/pptpd.conf /etc/pptpd.conf.bak | |
cat >/etc/pptpd.conf<<EOF | |
option /etc/ppp/options.pptpd | |
logwtmp | |
localip 10.0.10.1 | |
remoteip 10.0.10.2-254 |