On the server side, the first handshake message is being received and it sends the handshake response. Проблема заключается в малиновой стороне, которая никогда не получает сообщение рукопожатия обратно. Вот файл журнала < /p>
Код: Выделить всё
[ +5.376046] wireguard: wg0: Receiving handshake initiation from peer 6 (IP:42137)
[ +0.000009] wireguard: wg0: Sending handshake response to peer 6 (IP:42137)
[ +0.000119] wireguard: wg0: Keypair 1789 destroyed for peer 6
[ +0.000003] wireguard: wg0: Keypair 1790 created for peer 6
[ +5.375619] wireguard: wg0: Receiving handshake initiation from peer 6 (IP:42137)
[ +0.000010] wireguard: wg0: Sending handshake response to peer 6 (IP:42137)
[ +0.000121] wireguard: wg0: Keypair 1790 destroyed for peer 6
[ +0.000003] wireguard: wg0: Keypair 1791 created for peer 6
< /code>
Файл конфигурации на сервере имеет соответствующие iptable правила: < /p>
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens5 -j MASQUERADE
PostDown = PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens5 -j MASQUERADE
So basically the client and server can send each other messages but the client side never receives these messages and can not connect because of this. On the client side i only see packages coming OUT from the system but never something that comes in.
I've connected to the same server with a windows machine from a different network and they succesfully carried out the handshake. Что здесь может происходить?
Подробнее здесь: https://stackoverflow.com/questions/797 ... her-in-the