Wireguard changes the IP address of the destination after a while and the session breaks.

Unnamed Road semenenvy at gmail.com
Mon Oct 7 12:27:15 CEST 2019


Hello to all!

I encountered a problem while using Wireguard. Here is my traffic dump

tcpdump -vnr wg_02-10-2019_03-17-03.pcap | grep 10.10.10.12 | head -n 10
reading from file wg_02-10-2019_03-17-03.pcap, link-type EN10MB (Ethernet)
    10.10.10.225.49267 > 10.10.10.12.https: UDP, length 96
    10.10.10.12.https > 10.10.10.225.49267: UDP, length 96
    10.10.10.225.49267 > 10.10.10.12.https: UDP, length 96
    10.10.10.12.https > 10.10.10.225.49267: UDP, length 96
    10.10.10.12.https > 10.10.10.225.49267: UDP, length 96

tcpdump -vnr wg_02-10-2019_03-47-03.pcap | grep 10.10.10.10 | head -n 10
reading from file wg_02-10-2019_03-47-03.pcap, link-type EN10MB (Ethernet)
    10.10.10.10.https > 10.10.10.225.49267: UDP, length 148
    10.10.10.10.https > 10.10.10.225.49267: UDP, length 96
    10.10.10.10.https > 10.10.10.225.49267: UDP, length 96
    10.10.10.10.https > 10.10.10.225.49267: UDP, length 148
    10.10.10.10.https > 10.10.10.225.49267: UDP, length 96
    10.10.10.10.https > 10.10.10.225.49267: UDP, length 96

In this place (02-10-2019_03-47-03) where the address in the dump changes
on 10.10.10.10 and my session breaks.

Where is the IP address 10.10.10.12/32 in lo interface (CentOS7) and
10.10.10.10/30 is enp0s25 and i am using OSPF and p2p session with another
IP / 30 (ASBR)

 netstat -puntal | grep 443

udp        0      0 0.0.0.0:443             0.0.0.0:*
    -
udp6       0      0 :::443                  :::*
     -

10.10.10.225  - client with Windows 7 and settings
[Peer]
PublicKey = key
AllowedIPs = 0.0.0.0/1, 128.0.0.0/1
EndPoint = 10.10.10.12:443
PersistentKeepAlive = 30

What am I doing wrong? Why does the destination address change?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20191007/f4080f4e/attachment.html>


More information about the WireGuard mailing list