Skip to content

Instantly share code, notes, and snippets.

View RedDocMD's full-sized avatar

Deep Majumder RedDocMD

  • Indian Institute of Technology, Kharagpur
  • Kolkata, India
View GitHub Profile
@RedDocMD
RedDocMD / wgsetup.sh
Created May 19, 2024 04:27
OpenBSD Wireguard VPN setup script
#!/usr/bin/env bash
set -e
# Script to setup Wireguard and make this a VPN server
# Additionally, create client configurations and remove them
function setup() {
pushd "/etc/wireguard"
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz
CPU Family: 0x6