How to use the netcat to have relays? Like following I tried but not working:
cd /tmp
mknod backpipe p
nc -l -p 7007 0<backpipe | nc 192.168.1.101 9001 | tee backpipe
I want to receive data on 7007 must be listening mode
$ another application is putting packets herewhat ever comes to 7007 I need to move to 9001 (which is also a listening port)
$ telnet localhost 9001will show 7007 packets?
Any idea?
Optional: will it be also possible that I can put some extra header packets? to simulate http headers as image content type?