Skip to content

Instantly share code, notes, and snippets.

oxyflour /
Last active January 15, 2024 08:41
how to setup non-root ssh vpn tunnel
# remember to add
#PermitTunnel yes
# in /etc/ssh/sshd_config
# create tun device on both machines
# ref:
sudo ip tuntap add dev tun0 mode tun user oxyflour group oxyflour
# delete tun
sudo ip tuntap del dev tun0 mode tun