Skip to content

Instantly share code, notes, and snippets.

View hertg's full-sized avatar
🧼
sanitize your hands and your inputs

Michael Hertig hertg

🧼
sanitize your hands and your inputs
View GitHub Profile
@hertg
hertg / proton_opn_wg.md
Created July 9, 2023 15:04 — forked from morningreis/proton_opn_wg.md
OPNsense + ProtonVPN + Wireguard Configuration Guide

OPNsense + ProtonVPN + Wireguard

Published: 16 December 2022

Reference: https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html

Goal: Set up one or more Wireguard connections from ProtonVPN on OPNsense, with policy based routing, and optional Killswitch.

I'm writing this guide first as a reference for my future self for when I inevitably forget how to do this, but also to help others out. I found there were not many guides on this specific configuration, particularly not with multiple concurrent connections, and these were some steps which were not at all obvious. I did begin with the guide in the official OPNsense documentation, but even that was missing info to make ProtonVPN work. If you are a pfSense user, it is very similar to OPNsense, and you should be able to follow along with some success, but I have not tested it myself.

@hertg
hertg / ex
Created December 11, 2022 12:12
#!/bin/sh
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.rar) unrar x $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
@hertg
hertg / dashlane-to-1password.ps1
Created February 19, 2019 08:14
Powershell script to convert a Dashlane JSON export to a 1Password CSV file
$json = Get-Content -Path .\DashlaneExport.json | ConvertFrom-Json
$json.AUTHENTIFIANT | foreach {
$domain=$_.domain
$email=$_.email
if ($_.login) {
$login=$_.login
} else {
$login=$_.email