Last active
November 1, 2020 02:46
-
-
Save wastrachan/33781faeb72adc27fb65030aff1bf9d8 to your computer and use it in GitHub Desktop.
Wireguard Configuration for NetworkManager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Wireguard Configuration for NetworkManager | |
# | |
# sudo vim /etc/NetworkManager/system-connections/wg0.nmconnection | |
# sudo chmod 0600 /etc/NetworkManager/system-connections/wg0.nmconnection | |
# sudo nmcli connection reload | |
# | |
[connection] | |
id=home.rew1red.com | |
type=wireguard | |
autoconnect=false | |
interface-name=wg0 | |
permissions= | |
[wireguard] | |
private-key=<<BASE64>> | |
[wireguard-peer.<<BASE64>>] | |
listen-port=50000 | |
endpoint=rew1.red:46813 | |
allowed-ips=192.168.33.0/24;10.0.1.0/24; | |
[ipv4] | |
address1=192.168.33.3/24 | |
dns=1.1.1.1; | |
dns-search=rew1.red; | |
method=manual | |
[ipv6] | |
addr-gen-mode=stable-privacy | |
dns-search= | |
method=disabled | |
[proxy] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment