forward capture from pipe to virtual NIC
Hi!
I have a script running (fritzdump.sh) which captures the traffic directly from my router into a pipe:
wget --no-check-certificate -qO- $FRITZIP/cgi-bin/capture_notimeout?ifaceorminor=$IFACE\&snaplen=\&capture=Start\&sid=$SID | /usr/bin/tshark -r -
I would like to "forward" this traffic to a service (on the same machine) which analyzes the traffic for VoIP data (http://oreka.sourceforge.net/).
Is this possible with tshark?
Something like:
programname -i - -OPTION_FOR_FORWARD_TRAFFIC_TO_VIRTUAL_IP_WHICH_CAN_BE_ANALYZED_BY_ANOTHER_TOOL
Capturing the traffic to a pcap file first and then analyzing with wireshark is way to complicated. I am looking for an automated solution. I don't want to:
save pcap -> open pcap in wireshark -> analyze for VoIP -> export to Audio
greetz duffy6
Does this answer your question? It seems to need raw packets, nothing captured.
Thank you for your reply.
I already know this page, but it do not help because I can not get the capture stream out of the router in that way oreka want it (Ethernet switch SPAN monitoring port, Ethernet tap, PBX or media gateway server, Ethernet hub, Ethernet bridge).
I am looking for a way from forwarding pipe (stdin) to network-interface (e.g. eth0) or make oreka (or VoiPong) accepting traffic from a pipe.
Any help appreciated :-)
greetz duffy6
@duffy6: your 'answer' was converted to a comment. This is not a forum, but a Question and Answer site.