Skip to content

Instantly share code, notes, and snippets.

View johnandersen777's full-sized avatar
🐢
Rolling Alice... ⏳

John johnandersen777

🐢
Rolling Alice... ⏳
View GitHub Profile
@johnandersen777
johnandersen777 / proxy.go
Created September 27, 2016 06:48 — forked from vmihailenco/proxy.go
Simple TCP proxy in Golang
package main
import (
"flag"
"fmt"
"io"
"log"
"net"
)
@johnandersen777
johnandersen777 / README-setup-tunnel-as-systemd-service.md
Last active September 14, 2020 17:11 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target