<div dir="ltr">You're using the same AllowedIPs for multiple peers.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 6, 2018 at 12:15 PM <<a href="mailto:danny.korpan@mailbox.org">danny.korpan@mailbox.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have the problem with my wireguard server, that only the latest user<br>
"peer" from the server config can route/ping to the internal wireguard<br>
server IP or the clients in the network behind the wireguard server upon<br>
successful connection. All peers can connect to the server, but only the<br>
latest in the list last can ping other servers.<br>
I can't locate the error in the configs... does anybody have an idea?<br>
<br>
My wireguard server and client version is using 0.0.20180809-wg1~xenial with<br>
Ubuntu 18.04.1<br>
<br>
wg0.conf<br>
[Interface]<br>
Address = <a href="http://192.168.50.1/24" rel="noreferrer" target="_blank">192.168.50.1/24</a><br>
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A<br>
POSTROUTING -o eth0 -j MASQUERADE<br>
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D<br>
POSTROUTING -o eth0 -j MASQUERADE<br>
ListenPort = 51820<br>
PrivateKey = XXX<br>
<br>
[Peer]<br>
#User 1<br>
PublicKey = XXX<br>
PresharedKey = XXX<br>
AllowedIPs = <a href="http://192.168.50.0/24" rel="noreferrer" target="_blank">192.168.50.0/24</a><br>
<br>
[Peer]<br>
#User 2<br>
PublicKey = XXX<br>
PresharedKey = XXX<br>
#AllowedIPs = <a href="http://192.168.50.0/24" rel="noreferrer" target="_blank">192.168.50.0/24</a><br>
<br>
[Peer]<br>
#User 3<br>
PublicKey = XXX<br>
PresharedKey = XXX<br>
AllowedIPs = <a href="http://192.168.50.0/24" rel="noreferrer" target="_blank">192.168.50.0/24</a><br>
<br>
[Peer]<br>
#User 4<br>
PublicKey = XXX<br>
PresharedKey = XXX<br>
AllowedIPs = <a href="http://192.168.50.0/24" rel="noreferrer" target="_blank">192.168.50.0/24</a><br>
<br>
<br>
<br>
client.config<br>
[Interface]<br>
PrivateKey = XXX<br>
DNS = 192.168.178.1<br>
Address = <a href="http://192.168.50.2/24" rel="noreferrer" target="_blank">192.168.50.2/24</a><br>
<br>
[Peer]<br>
PublicKey = XXX<br>
PresharedKey = XXX<br>
AllowedIPs = <a href="http://192.168.50.0/24" rel="noreferrer" target="_blank">192.168.50.0/24</a>, <a href="http://190.168.178.0/24" rel="noreferrer" target="_blank">190.168.178.0/24</a><br>
Endpoint = my.remote.server:51820<br>
PersistentKeepalive = 25<br>
<br>
My sysctl.conf includes<br>
net.ipv4.conf.all.proxy_arp = 1<br>
net.ipv4.ip_forward = 1<br>
<br>
Does anybody have an idea?<br>
<br>
<br>
Kind Regards,<br>
Danny<br>
<br>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>