I'm trying to proxify a Citrix connexion. As you may know, you can have shared file under Citrix ICA (shared between the client and the server), and I'd like to use this possibility to mount a "tunnel" between the 2.
The idea would be to have the following :
on the client side ) any program => 'in' => shared file(s) => 'out' => remote network ( on the server side
Any idea how to do this? It seems to me that socat should be able to do the trick, I'm diving into its man right now, but can't figure out everything yet.
Thanks for any input.
For the moment I'm stuck with :
On one side:
socat -x -v -d -d tcp-listen:10002,fork,reuseaddr gopen:read.txt!!write.txt
On the other side:
socat -x -v -d -d gopen:write.txt!!read.txt tcp-connect:www.google.com:80
however, this doesnt work at all: cmd1 fails when connecting in (unknown device/address "write.txt") and cmd2 fails at launch (unknown device/address "read.txt")