最終更新 6 months ago

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

emanuelegori revised this gist 6 months ago. Go to revision

No changes

emanuelegori revised this gist 8 months ago. Go to revision

No changes

emanuelegori revised this gist 8 months ago. Go to revision

No changes

emanuelegori revised this gist 9 months ago. Go to revision

1 file changed, 2 insertions, 2 deletions

wg0.conf

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

emanuelegori revised this gist 9 months ago. Go to revision

No changes

emanuelegori revised this gist 9 months ago. Go to revision

1 file changed, 11 insertions

wg0.conf(file created)

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