40 lines
689 B
Markdown
40 lines
689 B
Markdown
# Wireguard
|
|
|
|
## Proton VPN
|
|
|
|
```bash
|
|
sudo apt install wireguard resolvconf
|
|
|
|
sudo vim /etc/wireguard/wg0.conf
|
|
```
|
|
|
|
Download [Configuration File](https://account.proton.me/u/0/vpn/WireGuard)
|
|
|
|
```conf
|
|
[Interface]
|
|
# Key for sandy
|
|
# Bouncing = 0
|
|
# NetShield = 1
|
|
# Moderate NAT = off
|
|
# NAT-PMP (Port Forwarding) = off
|
|
# VPN Accelerator = on
|
|
PrivateKey = CEGA0TO7WhxIdwbTIV9p4XMG2CfdPSiNmpRwwHzaeXo=
|
|
Address = 10.2.0.2/32
|
|
DNS = 10.2.0.1
|
|
|
|
[Peer]
|
|
# FR#97
|
|
PublicKey = Z/l/+DAz1YilevRfmEMMjNbzYOVCB0sOJc3vVKhQ/gw=
|
|
AllowedIPs = 0.0.0.0/0
|
|
Endpoint = 146.70.194.18:51820
|
|
```
|
|
|
|
`sudo wg-quick up wg0.conf`
|
|
|
|
#### enable
|
|
|
|
`sudo systemctl enable --now wg-quick@wg0`
|
|
|
|
#### Check...
|
|
|
|
`sudo wgcurl https://ip.me` |