1 server, 2 clients
Install Wireguard on all machines.
1 server, 2 clients
Install Wireguard on all machines.
| #!/usr/bin/env python | |
| """ | |
| Roughly based on: http://code.activestate.com/recipes/576980-authenticated-encryption-with-pycrypto/ | |
| """ | |
| import hashlib | |
| import hmac | |
| from Crypto.Cipher import AES | |
| from Crypto.Random import random |
Helper script to map ports to other servers.
had a database that was only accesible in the VPC on aws, so i created an dev intance and did a ssh tunnel to that dev instance with netcat mapping the port to the database
Forward all request from local 5432 to remote host google.com port 80
./nc-proxy.sh 5432 google.com 80| import textwrap | |
| from collections import OrderedDict | |
| import pyparsing as pp | |
| class Statement(str): | |
| def __str__(self): | |
| return super().__str__() + ";" | |
| #!/usr/bin/awk -f | |
| # | |
| # Author: Matt Pascoe - matt@opennetadmin.com | |
| # | |
| # This awk script is used to extract relavant information from a dhcpd.conf | |
| # config file and build dcm.pl output with appropriate fields. This can be | |
| # used to bootstrap a new database from existing site data. | |
| # As usual, inspect the output for accuracy. | |
| # Also you will get three types of output, subnet,pool,host. You must | |
| # add the subnet information first, then pool, then host. |