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.
Edit the sysctl configuration:
| #!/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)" |
| #!/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 |
| #!/bin/bash | |
| count=0 | |
| while true | |
| do | |
| #Open Firefox | |
| firefox | |
| let count++ | |
| # Wait for an hour (3600 seconds) | |
| sleep 3600 |
| 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. |