WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Wireguard changes the IP address of the destination after a while and the session breaks.
@ 2019-10-07 10:27 Unnamed Road
  0 siblings, 0 replies; only message in thread
From: Unnamed Road @ 2019-10-07 10:27 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 1682 bytes --]

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?

[-- Attachment #1.2: Type: text/html, Size: 2474 bytes --]

<div dir="ltr">Hello to all!<br><br>I encountered a problem while using Wireguard. Here is my traffic dump<div><br><div>tcpdump -vnr wg_02-10-2019_03-17-03.pcap | grep 10.10.10.12 | head -n 10<br>reading from file wg_02-10-2019_03-17-03.pcap, link-type EN10MB (Ethernet)<br>    10.10.10.225.49267 &gt; 10.10.10.12.https: UDP, length 96<br>    10.10.10.12.https &gt; 10.10.10.225.49267: UDP, length 96<br>    10.10.10.225.49267 &gt; 10.10.10.12.https: UDP, length 96<br>    10.10.10.12.https &gt; 10.10.10.225.49267: UDP, length 96<br>    10.10.10.12.https &gt; 10.10.10.225.49267: UDP, length 96<br><br>tcpdump -vnr wg_02-10-2019_03-47-03.pcap | grep 10.10.10.10 | head -n 10<br>reading from file wg_02-10-2019_03-47-03.pcap, link-type EN10MB (Ethernet)<br>    10.10.10.10.https &gt; 10.10.10.225.49267: UDP, length 148<br>    10.10.10.10.https &gt; 10.10.10.225.49267: UDP, length 96<br>    10.10.10.10.https &gt; 10.10.10.225.49267: UDP, length 96<br>    10.10.10.10.https &gt; 10.10.10.225.49267: UDP, length 148<br>    10.10.10.10.https &gt; 10.10.10.225.49267: UDP, length 96<br>    10.10.10.10.https &gt; 10.10.10.225.49267: UDP, length 96<br></div><div><br></div><div>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.</div><div><br></div><div>Where is the IP address <a href="http://10.10.10.12/32" target="_blank">10.10.10.12/32</a> in lo interface (CentOS7) and <a href="http://10.10.10.10/30" target="_blank">10.10.10.10/30</a> is enp0s25 and i am using OSPF and p2p session with another IP / 30 (ASBR)<br></div><div><br></div><div> netstat -puntal | grep 443<br></div><div><br></div><div>udp        0      0 <a href="http://0.0.0.0:443/" target="_blank">0.0.0.0:443</a>             0.0.0.0:*                           -<br>udp6       0      0 :::443                  :::*                                -<br></div><div><br></div><div>10.10.10.225  - client with Windows 7 and settings</div><div>[Peer]<br></div><div>PublicKey = key</div><div>AllowedIPs = <a href="http://0.0.0.0/1" target="_blank">0.0.0.0/1</a>, <a href="http://128.0.0.0/1" target="_blank">128.0.0.0/1</a></div><div>EndPoint = <a href="http://10.10.10.12:443/" target="_blank">10.10.10.12:443</a></div><div>PersistentKeepAlive = 30</div><div><br></div><div>What am I doing wrong? Why does the destination address change?</div></div></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 10:27 Wireguard changes the IP address of the destination after a while and the session breaks Unnamed Road

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git