Skip to content

Instantly share code, notes, and snippets.

View ipcjk's full-sized avatar
😍
so much younger than today

Jörg Kost ipcjk

😍
so much younger than today
  • Munich, Germany
View GitHub Profile
@ipcjk
ipcjk / howto_utm_vpn_macos.md
Created July 28, 2026 17:07 — forked from lukirs95/howto_utm_vpn_macos.md
How to access Host VPN Network from UTM Guest on MacOS

Problem

Your host machine (MacOS) get's an ip address from your VPN provider and possibly some routes to the remote network, but your VPN provider has no clue about other networks inside your host machine. That's what blocks UTM (QEMU) virtual machines from accessing the vpn network. UTM generates a new network for vm's and route entries for it automatically. This network is not known at the other side of the VPN, so although your PINGs reach the VPN the receiver of that ping does not know where to send it back.

Solution

@ipcjk
ipcjk / ssh_ubuntu_cloud
Created March 11, 2019 12:08 — forked from tpaskhalis/ssh_ubuntu_cloud
Adding ssh public key to Ubuntu cloud image
# Instructions for working with QEMU image come from
# https://www.kumari.net/index.php/system-adminstration/49-mounting-a-qemu-image
1. Download image http://cloud-images.ubuntu.com/
2. Install qemu, nbd-client
3. Load the module
sudo modprobe nbd max_part=8
4. Connect image
sudo qemu-nbd --connect=/dev/nbd0 Downloads/xenial-server-cloudimg-amd64-disk1.img
5. Mount image
@ipcjk
ipcjk / container.go
Created July 16, 2017 11:56 — forked from christophberger/container.go
A container in less than 60 lines of Go
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {