View ipodns.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# This is client side, with: | |
# apt install iodine redsocks | |
# systemctl disable redsocks | |
# | |
# For the server side: | |
# apt install iodine |
View 95th_percentile.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
netdev=eth0 | |
storage=/tmp/95th_percentile_db | |
:> $storage | |
while true; do | |
rx_bytes_count1=$(awk "/${netdev}/ { print \$2 }" /proc/net/dev) | |
tx_bytes_count1=$(awk "/${netdev}/ { print \$10 }" /proc/net/dev) |
View sshvpn.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Goal to reach: | |
# +--------------------------------+ +-----------------------------+ | |
# | LOCAL LAPTOP | In | REMOTE SERVER | | |
# | tun1 | <=(ter)=> | tun1 | | |
# | Private IPv4 of the remote net | net | Remote IPv4 private network | | |
# +--------------------------------+ +-----------------------------+ | |
# Good doc: https://help.ubuntu.com/community/SSH_VPN |