This set of files will help you to connect to a network behind carrier-grade NAT using WireGuard. You'll be able to access the LAN of the WireGuard peer behind the CGNAT and route your entire internet traffic to it.
wireguard-hub.conf
: This config is intended for the WireGuard peer that has access to a public IP address, e.g. VPSopenwrt.conf
: This config is intended for the WireGuard peer behind the CGNAT, e.g. OpenWrt router or Raspberry Piclient.conf
: This config is inteded for a WireGuard peer that wants to access the LAN of the device behind the CGNAT and route its entire internet traffic to it, e.g. computer or mobile phone
Install wireguard-tools
and use these commands to generate the keys:
- Private Key:
$ umask 077 && wg genkey > privatekey
- Public Key:
$ wg pubkey < privatekey > publickey
- Preshared Key:
$ wg genpsk > presharedkey