Wireguard and Xbox streaming

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Omicron6
Posts: 1
Joined: Sun Apr 07, 2019 8:28 am

Wireguard and Xbox streaming

Post by Omicron6 »

I'm able to connect to the wireguard VPN server, able to pass data/browse. The one issue I am having is streaming my Xbox. My main reason for using wireguard over OpenVPN/pivpn, was speed. With pivpn I was getting around 4-6Mbps, wireguard is 8-9Mbps (via speed test.net app)

I can start a stream from the Xbox, but shortly after starting the stream, it'll hang - audio still plays, but video will stall and eventually kick back in. I'm using an iPad as the wireguard client and using one connect as the Xbox streaming client. I know that one connect does not officially support this, but with pivpn (like 4 days ago) I was able to stream, though I'd have similar issues, just much more infrequently compared to now.

After installing/using wireguard, I noticed that the MTU for wg0 is set to 1420. I bring this up because with pivpn, after increasing MTU stability improved, but again my cap seemed to be upload speed. Changing MTU to 9000 on the wg0 interface helps, but still not as good as I think it can be.

Is there a way to change the MTU size for wireguard permanently? And is there something else I should consider to help?

My Pi3 is connected via Ethernet, running pretty bare bones install of dietpi.
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: Wireguard and Xbox streaming

Post by MichaIng »

@Omicron6
Could you try to remove the ::1 from allowed IPs (tunnelled IPs) in the clients config? We got some reports that this causes currently issues, also since the server does not handle IPv6 redirects correctly. We did some fixes/improvements for v6.23 but handling IPv6 turns out to be a bid nasty with unexpected difficulties.

About the MTU, I think the best solution is to add it (the related ip or ifconfig command) as PostUp entry to the server config (wg0.conf). You can add multiple PostUp = ... lines, so no need to take care existing ones.

I have no experience with streaming through WireGuard, but I will be happy to add your experience/solution/enhancement to our documentation, for users that want to steam as well.
carlevans459
Posts: 4
Joined: Sun Sep 09, 2018 5:02 pm

Re: Wireguard and Xbox streaming

Post by carlevans459 »

Omicron6 wrote: Sun Apr 07, 2019 9:16 am I can start a stream from the Xbox, but shortly after starting the stream, it'll hang - audio still plays, but video will stall and eventually kick back in. I'm using an iPad as the wireguard client and using one connect as the Xbox streaming client. I know that one connect does not officially support this, but with pivpn (like 4 days ago) I was able to stream, though I'd have similar issues, just much more infrequently compared to now.

After installing/using wireguard, I noticed that the MTU for wg0 is set to 1420. I bring this up because with pivpn, after increasing MTU stability improved, but again my cap seemed to be upload speed. Changing MTU to 9000 on the wg0 interface helps, but still not as good as I think it can be.

Is there a way to change the MTU size for wireguard permanently? And is there something else I should consider to help?

My Pi3 is connected via Ethernet, running pretty bare bones install of dietpi.

I had the same question I wanted to ask. I am also using an iPad 6th generation as the WireGuard and using one connect as PlayStation 4 and I also want to start streaming from my PS4. Thanks Omicron6 for the solution.
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Wireguard and Xbox streaming

Post by Joulinar »

Hi,

I guess you like to access your PS4 via internet using WireGuard? right? There are a couple of tools on the web that can help to calculate the best MTU value along the path between Client > Internet > PS4. Usually 1420 is a good value. keep in mind that every network device between client and target could influence the MTU.

for windows clients I could recommend MTUPath to test max MTU

https://www.iea-software.com/products/mtupath/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
emmawatson
Posts: 1
Joined: Tue Mar 03, 2020 10:10 pm

Re: Wireguard and Xbox streaming

Post by emmawatson »

I wanted to ask. I am also using an iPad 5th generation as the WireGuard and using one connect as PS4 and I also want to start streaming netflix from my PS4. Thanks Omicron6 for the solution.
Top
Post Reply