GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pboyd/initscripts

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
gen
gen
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
aws-debian.sh
aws-debian.sh
 
 
aws-ubuntu.sh
aws-ubuntu.sh
 
 
linode.sh
linode.sh
 
 

Repository files navigation

Init Scripts

Variants of a script for initialzing a VM runnig Debian 11 (Bullseye) or Ubuntu 22.04. These are meant to be used after the host boots the first time, before Ansible or a similar tool takes over.

These scripts will:

  • Create an admin account with sudo access
  • Disable root logins
  • Disable SSH passwords
  • Configure SSH keys to be read from /etc/ssh/authorized_keys/$USER
  • Configure WireGuard (generate keys, set port number, configure the first peer)
  • On Linode, configures ufw to block SSH except over WireGuard

Currently there are published scripts for AWS and Linode.

This automates the steps from this guide.

Linode

The Linode script can be imported as a StackScript (or use this one).

The WireGuard peer information will be written to /etc/issue, so you can grab the public key and port number from the web console. You may need to wait for the console to refresh before it appears (reboot it if you're impatient).

This version of the script enables ufw to restrict SSH to the WireGuard interface. If you use Linode's firewall you might prefer to remove that behavior.

AWS

To use the AWS scripts, modify the variables at the beginning as supply it as user data.

The WireGuard peer information will be written to the system log (Actions -> Monitoring -> Get system log). The config will need the host's public IP filled in.

The AWS scripts do not configure ufw. You will need to open the WireGuard port in the AWS firewall (remember it's UDP), and also block public SSH.

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

36 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.