mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
find interface in absence of default gateway
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user