1
20.7 Legacy Series / Adding packet loss with Dummynet to simulate bad WAN
« on: December 26, 2020, 09:20:49 pm »
Hi All:
I'm relatively new to OPNsense so am maybe missing something. I'd like to intentionally add packet loss to a traffic shaper pipe. This is so I can do some testing and simulate a bad WAN connection. I found this post from a few years ago which talks about it: https://forum.opnsense.org/index.php?topic=7140.0
I see that the delay option to add latency is exposed in the GUI now but nothing for packet loss. Ok, but I figured I could maybe just add it from the CLI. Looking at the man page for ipfw I see the option is called loss-level. Looking at ipfw.rules my existing pipe looks like this:
But that gives an error: ipfw: unrecognised option ``loss-level''
Is the IPFW that comes with OPNsense compiled without that option or something? Any one know of a way to make this work?
Thank you,
Brad
I'm relatively new to OPNsense so am maybe missing something. I'd like to intentionally add packet loss to a traffic shaper pipe. This is so I can do some testing and simulate a bad WAN connection. I found this post from a few years ago which talks about it: https://forum.opnsense.org/index.php?topic=7140.0
I see that the delay option to add latency is exposed in the GUI now but nothing for packet loss. Ok, but I figured I could maybe just add it from the CLI. Looking at the man page for ipfw I see the option is called loss-level. Looking at ipfw.rules my existing pipe looks like this:
Code: [Select]
pipe 10002 config bw 1Mbit/s mask dst-ip 0xffffffff type wf2q+ delay 50
So I figured I could do this at the command line:Code: [Select]
ipfw pipe 10002 config bw 1Mbit/s mask dst-ip 0xffffffff type wf2q+ delay 50 loss-level .1
But that gives an error: ipfw: unrecognised option ``loss-level''
Is the IPFW that comes with OPNsense compiled without that option or something? Any one know of a way to make this work?
Thank you,
Brad