I hereby claim:
- I am juris on github.
- I am jurisp (https://keybase.io/jurisp) on keybase.
- I have a public key ASCN7LsJI-gkDy7KG94WxRa0tEGGF8pdyFw6rKrh2Z38oQo
To claim this, I am signing this object:
--- | |
logging.metrics.enabled: false | |
filebeat.inputs: | |
- type: aws-s3 | |
queue_url: <SQS_NAME> | |
processors: | |
- drop_event: | |
when: | |
regexp: | |
message: "^#.*" |
I hereby claim:
To claim this, I am signing this object:
Every time a new client connects to OpenVPN server, ovpn_connect.sh
script creates set of individual iptables rules based on client common name and content of ccd files.
When client disconnects from OpenVPN server, ovpn_disconnect.sh
removes these individual rules.
opvn_run.sh
can be used to launch OpenVPN in docker contaner.
This should be a part of openvpn.conf file for scripts to work
# Client configuration
script-security 2
ccd-exclusive
client-config-dir /etc/openvpn/ccd
#!/bin/sh | |
readonly cluster_topology=$(redis-cli -h redis-cluster cluster nodes) | |
readonly slaves=$(echo "${cluster_topology}" | grep slave | cut -d' ' -f2,4 | tr ' ' ',') | |
readonly backup_dir="/opt/redis-backup" | |
mkdir -p ${backup_dir} | |
for slave in ${slaves}; do | |
master_id=$(echo "${slave}" | cut -d',' -f2) |
# Simple spinner function to show rotating stick | |
# while process is doing something useful | |
spinner() { | |
local pid=$! | |
local spin='-\|/' | |
while kill -0 $pid 2>/dev/null | |
do | |
i=$(( (i+1) %4 )) | |
printf "\r${spin:$i:1}" |