Skip to content

Instantly share code, notes, and snippets.

variable "deployment" {
type = string
}
variable "vpc_id" {
type = string
}
variable "instance_type" {
default = "t3.small"
#!/bin/bash
#
# Parses DHCP options from OpenVPN and calls systemd-resolve
# configuration file with DNS settings, so they will be used by
# systemd-resolved.
#
# To use set as 'up' script in your openvpn *.conf:
# up /etc/openvpn/update-systemd-resolve
@LeePorte
LeePorte / update-resolvectl
Last active October 5, 2023 22:56
Updating openvpn DNS and domain options for resolvectl on Ubuntu 22.04+
#!/bin/bash
#
# Parses DHCP options from OpenVPN and calls resolvectl
# configuration file with DNS settings, so they will be used by
# systemd-resolved.
#
# To use set as 'up' script in your openvpn *.conf:
# up /etc/openvpn/update-resolvectl
{
"type": "object",
"required": ["Statement"],
"additionalProperties": false,
"properties": {
"Version": {
"type": "string",
"enum": ["2008-10-17", "2012-10-17"]
},
"Id": {
@LeePorte
LeePorte / vpn
Last active March 2, 2023 17:51
Cisco Anyconnect cli script
#!/usr/bin/env bash
set -euo pipefail
usage="$0: <up|down|state|stats> [connection name]"
action="${1?$usage}"
connection="${2:-GDS VPN Developer}"
oath_key=gds-vpn
pass_key=gds/vpn
@LeePorte
LeePorte / config.boot
Created February 13, 2019 19:31
ER-4 config for Steve
firewall {
all-ping enable
broadcast-ping disable
}
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description ""
enable-default-log

Keybase proof

I hereby claim:

  • I am leeporte on github.
  • I am leeporte (https://keybase.io/leeporte) on keybase.
  • I have a public key ASBzGfnKj338H1wYbgtZAUV2WalXRqZRIwNuStOo4XsAhQo

To claim this, I am signing this object: