Wireguard Linux Client


## Install


### centos8
```typesudo dnf install epel-release elrepo-release -ysudo dnf install kmod-wireguard wireguard-tools```
### debian
```typesudo apt install wireguard```


### conf file
```type[Interface]PrivateKey = gON3VW0p/gxxZc1dxmJ9qp7ZLuu43+SGOJ6gJ7MoGWs=Address = 192.168.200.2/24DNS = 1.1.1.1, 8.8.8.8[Peer]PublicKey = DOSg7m4+UyCEWl3qgT1xY2M/tWQYd7hyoE1EMk3hyzc=AllowedIPs = 0.0.0.0/0Endpoint = home.seongland.com:51820```
- allowed ips 로 접속할 ip 제한가능
- 모든 0000해두면 네트워크 인터페이스로 접속 못하는 이슈 생김


### make and up
```typesudo ip link add dev wg0 type wireguardsudo nano /etc/wireguard/wg0.confsudo ip link set up dev wg0sudo wg-quick up /etc/wireguard/wg0.conf```
### system
```typesudo systemctl stop wg-quick@wg0sudo systemctl start wg-quick@wg0sudo systemctl enable wg-quick@wg0curl ifconfig.me```


> Do not your wg setconf, use wg-quick up conf.file




> [Quick Start - WireGuard](https://www.wireguard.com/quickstart/#command-line-interface)

> [trailofbits/algo](https://github.com/trailofbits/algo/blob/master/docs/client-linux-wireguard.md)

> [How to Set Up WireGuard VPN Client on Ubuntu Desktop](https://tech.serhatteker.com/post/2021-01/how-to-set-up-wireguard-client-on-ubuntu-desktop/)






