Opengist Logo emanuelegori's Gists

Explore

  • All gists
  • Topics
  • Users
Copyright 2024 - 2025 emanuelegori.uno
Give feedback on the new UI Powered by Opengist ⋅ 33ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
w

wireguard

Recently created Least recently created Recently updated Least recently updated
emanuelegori

emanuelegori / wg0.conf server Wireguard

Last active 3 months ago debian wireguard

file /etc/wireguard/wg0.conf del VPS Debian

0 0 1
1 [Interface]
2 Address = 10.13.13.1/31
3 PostUp = wg set %i private-key /etc/wireguard/%i.key
4 ListenPort = 51820
5 DNS = 192.168.178.1
6
7 [Peer]
8 # alpha site
9 PublicKey = qnYZ6e+nPo8AY0yhmv6SJPBFdJkvrQCHiXygoExK2zY=
10 AllowedIPs = 192.168.178.0/24,10.13.13.2/31
emanuelegori

emanuelegori / wg0.conf client Wireguard

Last active 3 months ago debian wireguard

file /etc/wireguard/wg0.conf del Client Ubuntu. Questa configurazione permette al VPS che faccia da gateway per accedere alla rete locale dietro NAT tramite un PC locale che funge da client wiregurad

0 0 1
1 [Interface]
2 Address = 10.13.13.2/31
3 PostUp = wg set %i private-key /etc/wireguard/%i.key
4 ListenPort = 51820
5
6 [Peer]
7 # alfa site
8 PublicKey = /m4J1nIK4z2voC5qkk1krKV7Lwb4qJtt++XIhNGSskY=
9 AllowedIPs = 10.13.13.0/31
10 Endpoint = 51.255.50.17:51820