Add artificial package loss and lag?

To test how the game reacts it would be very useful to induce artificial package loss and lag to simulate real network connections. I know that you can emulate a connection like a modem, but there doesn’t seem to be any customization of it. Like setting it to 112ms lag and 11% package loss.

Is there any way to achieve this?

It isn’t possible in Unity to my knowledge (Disclaimer: I’m definitely not a Unity pro).

You will probably have to look at some kind of third party testing software like Itrinegy’s Software (Windows only, Paid) or WANem (Open Source).

Just make sure it supports UDP traffic (most do).

I have personally used WANem for testing large scale business applications for work, though I’m sure it would translate over just fine.