Tunnel ssh/balabit
Client
1. mount the remote filesystem with sshfs
$ sshfs sshremote_server:/tmp /tmp/remote_dir
2. mock your webserver with netcat and redirect request to the file /request
and response to the file response
$ while true; do
nc -l 8080 < /tmp/remote_dir/response | cat > /tmp/pastaremota/request;
done
3. Unmount the filesystem
fusermount -u /tmp/remote_dir
Server behind balabit
Wait for input in file request with tail and redirect to the real webserver using netcat
$ while true; do
tail -f /tmp/request | nc localhost 10010 > /tmp/response;
done
No comments:
Post a Comment