Skip to content

Instantly share code, notes, and snippets.

@mikurei
mikurei / pforward.sh
Last active April 14, 2023 10:08
Port Forwarding for systems with Wireguard & iptables (optionally UFW)
#!/bin/bash
#Check for root permissions
if [ "${EUID}" -ne 0 ]; then
echo "This script requires root permissions!"
exit
fi
#some visuals
RED='\033[0;41m'