Skip to content

Instantly share code, notes, and snippets.

@HeresJohnny320
HeresJohnny320 / wireguard_setup.md
Last active April 22, 2026 23:00
how to setup wireguard site to sire with pfsense

🧭 WireGuard on Ubuntu VPS + pfSense Setup Guide

This guide walks you through setting up a WireGuard VPN tunnel between an Ubuntu VPS and pfSense. Perfect for routing traffic (like game servers) securely through your network.


⚙️ 1. Enable IP Forwarding (IPv4 & IPv6)

Edit the sysctl configuration:

@HeresJohnny320
HeresJohnny320 / update_iptables.sh
Created October 16, 2025 15:01
a simple gui that helps manages iptables for your wireguard setup
#!/usr/bin/env bash
set -euo pipefail
# --------------------------
# Configurable variables
# --------------------------
PUBLIC_IF="ens3" # VPS public interface
WG_IF="wg0" # WireGuard interface
LAN_NET="192.168.0.0/24" # Home LAN subnet
BACKUP_DIR="/root/iptables-backup-$(date +%Y%m%d_%H%M%S)"
@HeresJohnny320
HeresJohnny320 / proxmox_backup.sh
Last active December 9, 2024 21:38
backup proxmox configs
#!/bin/bash
# Directories to save backups
BACKUP_DIR1="/path/to/backup/folder1"
BACKUP_DIR2="/path/to/backup/folder2"
# Max backups to keep
MAX_BACKUPS=100
# Discord webhook URL
@HeresJohnny320
HeresJohnny320 / firefox.sh
Last active December 25, 2023 15:10
simple loop to close firefox and open firefox
#!/bin/bash
count=0
while true
do
#Open Firefox
firefox
let count++
# Wait for an hour (3600 seconds)
sleep 3600
@HeresJohnny320
HeresJohnny320 / index.js
Created May 31, 2020 12:30 — forked from cafeasp/index.js
Node js - Quickstart
const fs = require('fs');
const readline = require('readline');
const { google } = require('googleapis');
//Drive API, v3
//https://www.googleapis.com/auth/drive See, edit, create, and delete all of your Google Drive files
//https://www.googleapis.com/auth/drive.file View and manage Google Drive files and folders that you have opened or created with this app
//https://www.googleapis.com/auth/drive.metadata.readonly View metadata for files in your Google Drive
//https://www.googleapis.com/auth/drive.photos.readonly View the photos, videos and albums in your Google Photos
//https://www.googleapis.com/auth/drive.readonly See and download all your Google Drive files
// If modifying these scopes, delete token.json.
@HeresJohnny320
HeresJohnny320 / meta-tags.md
Created October 24, 2019 14:28 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">