Page 1 of 1

RAW data (ie from pipe) thru OPENVPN client ?

Posted: Sat Feb 23, 2013 1:31 am
by ntpt
Hi all,

I have a question /feature request.... OpenVPN create tunnel connection between two network points. On one point it slurp data from network stack, on oposite point it flush data to the network stack a vice versa using TUN / TAP devices as source / output of the tunneled data.

What about to allow an openvrt to slurp/flush data not only from/to network stack via TUN/TAP, but raw data from/to unix local sockets or named pipes ? ie data inlet and outlet of the tunnel will not be a TUN/TAP device but FIFO or unix domain socket ? i mean a generic connection between two programs. I hope I am understandable....



PS: Please execuse my wrong english.

Re: RAW data (ie from pipe) thru OPENVPN client ?

Posted: Sat Feb 23, 2013 8:52 am
by mwandelaar
OpenVPN is a network-based topology. If you would introduce raw-datatraffic in the same tunnel, you loose all of the addressing-capabilities here as the unix-sockets and pipes don't know how to "address" the other endpoint.

If you would transfer raw-data over a normal network, you should learn your tools some ip-knowledge or wrap them into something like netcat:

Server:

Code: Select all

cat /dev/source | nc remote-ip port
Client:

Code: Select all

nc -l port > /some/where/dest.file