| @@ -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 / wg0.conf client Wireguard
Last active 4 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 1 year ago
·
fd5f2ec
No changes
emanuelegori
revised this gist 2 years ago
·
f994920
No changes
emanuelegori
revised this gist 2 years ago
·
fd82734
No changes
emanuelegori
revised this gist 2 years ago
·
ec35f45
1 file changed, 2 insertions, 2 deletions
emanuelegori
revised this gist 2 years ago
·
ff07581
No changes
emanuelegori
revised this gist 2 years ago
·
d1478e3
1 file changed, 11 insertions
| @@ -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 | |