sudo apt-get install zsh
sudo apt-get install git-core
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Change default shell to zsh
| cookie.txt |
According to this cloudflare blog article "Load Balancing without Load Balancers", we can build a rock-solid load balancer only using a router. All the magic comes from BGP and Equal-Cost Multi-Path routing.
In this howto, I will use bird as BGP router on linux instance (ie. servers).
I use GNS3 with this architecture :
| ### macOS Catalina: “App is damaged and can't be opened. You should move it to the trash.” | |
| ``` | |
| sudo xattr -rd com.apple.quarantine '/Applications/Navicat Premium.app' | |
| ``` |
| # Virtual Tunnel Interface | |
| # 172.196.17.188 - 172.196.17.191 | |
| set interfaces vti vti0 address 172.196.17.190/30 | |
| set interfaces vti vti0 description 'Virtual tunnel interface for VPN tunnel' | |
| # Phase 2 | |
| set vpn ipsec esp-group ESP-Default compression 'disable' | |
| set vpn ipsec esp-group ESP-Default lifetime '3600' | |
| set vpn ipsec esp-group ESP-Default mode 'tunnel' | |
| set vpn ipsec esp-group ESP-Default pfs 'dh-group16' |
| router id [our IPv4]; | |
| protocol bgp vultr | |
| { | |
| local as [our ASN]; | |
| source address [our IPv4 from vultr]; | |
| import all; | |
| export filter { | |
| if net ~ [[the IPv4 block we want to announce]] then accept; | |
| reject; |
| #!/bin/sh | |
| if [[ $EUID -ne 0 ]]; then | |
| clear | |
| echo "Error: This script must be run as root!" 1>&2 | |
| exit 1 | |
| fi | |
| function CopyRight() { | |
| clear |
| <?php | |
| # PDO Wrapper, supporting MySQL and Sqlite | |
| # Usage: | |
| # $db = new db(); | |
| # | |
| # // table, data | |
| # $db->create('users', array( | |
| # 'fname' => 'john', | |
| # 'lname' => 'doe' | |
| # )); |
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import json | |
| import os | |
| import subprocess | |
| device = "msm8996-common" | |
| vendor = "xiaomi" | |
| system = "system/" |