Pakete mit scapy auf FreeBSD tun device ausgeben

From: Matthias Teege <matthias-dbq(at)mteege.de>
Date: Tue, 2 Jun 2009 18:20:08 +0200

Hallo,

ich möchte Pakete von einem Netzwerkinterface auf ein anderes
kopieren. Folgende Python/Scapy Sequenz funktioniert unter Linux.

sniff(iface="eth0", prn=lambda x: sendp(x, verbose=0, iface="tun0"))

Ich kann die Pakete mit tcpdump auf tun0 sehen.

Unter FreeBSD 7.2 funktioniert das nicht, zumindest sehe ich keine Pakete
auf dem tun Device. Das Skript bricht nach ein paar Pakete mit

    sniff(iface=ippp, prn=lambda x: sendp(x, verbose=0, iface=itun))
  File "/usr/local/lib/python2.5/site-packages/scapy/sendrecv.py", line 243, in sendp
    __gen_send(conf.L2socket(iface=iface, *args, **kargs), x, inter=inter, loop=loop, count=count, verbose=verbose)
  File "/usr/local/lib/python2.5/site-packages/scapy/arch/pcapdnet.py", line 287, in __init__
    self.outs = dnet.eth(iface)
  File "dnet.pyx", line 112, in dnet.eth.__init__

ab.

Wie bekomme ich die Pakete auf ein zweites Device?

Vielen Dank
Matthias

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Tue 02 Jun 2009 - 18:20:17 CEST

search this site