10 days and 10 tips for Microsoft Tunnel Gateway: Day 3

Automate Your Prerequisites

If you’re deploying multiple tunnel servers or rebuilding environments, save yourself the hassle and automate it. I’ve created shell scripts to handle all the prerequisites and configuration steps.

Available Scripts

GitHub Repository: https://github.com/imabdk/Microsoft-Tunnel-Gateway

  • setup-prerequisites-ubuntu.sh – System prerequisites and package installation (Docker, kernel modules, jq)
  • setup-auditing-ubuntu.sh – Configure audit logging for security compliance
  • setup-firewall-ubuntu.sh – Firewall configuration and rules setup

Note: These scripts are designed for Ubuntu Server 22.04 LTS / 24.04 LTS

Why automate?

  • Same setup every time across all servers
  • Deploy in minutes, not hours
  • Less chance of missing a step or typo
  • Easy to share with your team
  • Document your configuration

Usage

# Run prerequisites script
sudo bash setup-prerequisites-ubuntu.sh

# Configure auditing
sudo bash setup-auditing-ubuntu.sh

# Setup firewall
sudo bash setup-firewall-ubuntu.sh

Sneak peek of running the prereq script

The scripts handle OS updates, Docker installation, firewall rules, and security auditing. This saves you from repeating the same manual steps every time you build a server.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.