<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>I ran into this weird issue in debian running kernel 4.19.0 while simulating packet loss an latency. My SSH session to the fw after I enable the tc rules act as if it is also degraded. Response to my typing is sporadic. Network traffic between my fw and my desktop does not seem to be affected. Traffic between the fw and the target is degraded and the rules seem to work. What baffles me is the affect it has on a SSH connection to the fw and to fix that I have to disable the rules. Possibly, the tc config is wrong?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>----- [ cut here ] ------------<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><pre><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">#!/bin/bash</span><br><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">NIC=br0</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">TARGET=192.168.1.6</span><br><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">if [[ ! -z ${1+x} ]]; then</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> if [[ "${1}" == "stop" ]]; then</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> tc qdisc del dev ${NIC} root</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> exit 0</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> else</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> echo "$0 <stop>"</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> exit 1</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> fi</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">fi</span><br><br><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">tc qdisc del dev ${NIC} root &>/dev/null</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">tc qdisc add dev ${NIC} root handle 1: prio</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">tc qdisc add dev ${NIC} parent 1:1 handle 2: netem delay 150ms loss 30% 30%</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">tc filter add dev ${NIC} parent 1:0 protocol ip pref 55 handle ::55 u32 match ip dst ${TARGET} flowid 2:1</span><br></pre><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div></body></html>