# Bad encapsulated packet warning

**URL:** https://forum.pritunl.com/t/bad-encapsulated-packet-warning/1282
**Category:** Pritunl VPN
**Tags:** pritunl
**Created:** [August 4, 2023, 12:49am UTC](https://forum.pritunl.com/t/bad-encapsulated-packet-warning/1282 "2023-08-04T00:49:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Europe](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/e/8dc957/32.png) [@Europe](https://forum.pritunl.com/u/Europe)
#### Post date: [August 4, 2023, 12:49am UTC](https://forum.pritunl.com/t/bad-encapsulated-packet-warning/1282/1 "2023-08-04T00:49:08Z")

</div>

I’m getting this error message in the server logs:

WARNING: Bad encapsulated packet length from peer (5635), which must be \> 0 and \<= 1627 – please ensure that --tun-mtu or --link-mtu is equal on both peers – this condition could also indicate a possible active attack on the TCP link – [Attempting restart…]

---

<div class="post-metadata">

### Author: ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)
#### Post date: [August 7, 2023, 3:19pm UTC](https://forum.pritunl.com/t/bad-encapsulated-packet-warning/1282/2 "2023-08-07T15:19:58Z")

</div>

Try lowering the Connection MTU in the server settings to 1300.

---

<div class="post-metadata">

### Author: ![Europe](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/e/8dc957/32.png) [@Europe](https://forum.pritunl.com/u/Europe)
#### Post date: [August 15, 2023, 3:12pm UTC](https://forum.pritunl.com/t/bad-encapsulated-packet-warning/1282/3 "2023-08-15T15:12:23Z")

</div>

Is there anyway to fix that on the free version?  
Like editing a file or any special command?  
I tired some various changes, none of them has worked, I’m still stuck with this problem.

---

<div class="post-metadata">

### Author: ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)
#### Post date: [August 16, 2023, 5:36pm UTC](https://forum.pritunl.com/t/bad-encapsulated-packet-warning/1282/4 "2023-08-16T17:36:15Z")

</div>

There’s no other way to set it. That would only rule out an issue with detecting the MTU. But with a packet length of 5635 it’s likely some other issue with the server configuration, I don’t have enough information to debug that issue.
