I'm using Scapy and the sniff function on eth1. Can I filter the direction, so that only incoming packages are captured?
My Code:
import sys
from scapy.all import *
def packet_callback(packet):
print(packet.show())
def main():
sniff(iface="eth1", prn=packet_callback)
if __name__ == '__main__':
main()