Wireguard static ip
by PROBLEMCHYLD from LinuxQuestions.org on (#5RTBQ)
I will be setting up WG on a machine that has a static ip 192.168.0.100.
I want the client that is connecting to have the static ip 192.168.0.104.
Did I set this up correctly?
server.conf
Code:[Interface]
Address = 192.168.0.100/24
ListenPort = 51820
PrivateKey = QMzXZuwgGn8EnQ=
[Peer]
PublicKey = 5EyxXePqxJSaLeZwyc=
PresharedKey = rWq6A14=
AllowedIPs = 192.168.0.104/32client.conf
Code:[Interface]
Address = 192.168.0.104/24
ListenPort = 51820
PrivateKey = K0FH2UFsZMAFM=
[Peer]
PublicKey = hRWWmxc=
PresharedKey = cRq6A14=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = 192.168.0.100:51820
I want the client that is connecting to have the static ip 192.168.0.104.
Did I set this up correctly?
server.conf
Code:[Interface]
Address = 192.168.0.100/24
ListenPort = 51820
PrivateKey = QMzXZuwgGn8EnQ=
[Peer]
PublicKey = 5EyxXePqxJSaLeZwyc=
PresharedKey = rWq6A14=
AllowedIPs = 192.168.0.104/32client.conf
Code:[Interface]
Address = 192.168.0.104/24
ListenPort = 51820
PrivateKey = K0FH2UFsZMAFM=
[Peer]
PublicKey = hRWWmxc=
PresharedKey = cRq6A14=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = 192.168.0.100:51820