diff --git a/installer/bin/clean.sh b/installer/bin/clean.sh index 5e45287c..6d573a4d 100755 --- a/installer/bin/clean.sh +++ b/installer/bin/clean.sh @@ -89,7 +89,7 @@ fuSURICATA () { chmod 760 -R /data/suricata chown tpot:tpot -R /data/suricata # Get IF, disable offloading, enable promiscious mode - myIF=$(route | grep default | awk '{ print $8 }') + myIF=$(ip route | grep $(hostname -I | awk '{print $1 }') | awk '{print $3 }') /sbin/ethtool --offload $myIF rx off tx off /sbin/ethtool -K $myIF gso off gro off /sbin/ip link set $myIF promisc on