forward capture from pipe to virtual NIC

asked 2018-10-25 13:10:50 +0000

duffy6 gravatar image

updated 2018-10-25 13:11:34 +0000

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

edit retag flag offensive close merge delete

Comments

Does this answer your question? It seems to need raw packets, nothing captured.

Jaap gravatar imageJaap ( 2018-10-25 15:58:57 +0000 )edit

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 gravatar imageduffy6 ( 2018-10-26 08:56:40 +0000 )edit

@duffy6: your 'answer' was converted to a comment. This is not a forum, but a Question and Answer site.

Jaap gravatar imageJaap ( 2018-10-26 09:46:59 +0000 )edit