10
0
mirror of https://github.com/LCPQ/quantum_package synced 2025-01-03 10:05:57 +01:00

Start tunnel before export LD_PRELOAD

Anthony Scemama 2015-01-28 12:27:12 +01:00
parent b4f7587503
commit 616bc6f1e6

@ -20,17 +20,19 @@
make
6) Add the ``libtsocks.so.1.8`` to the ``LD_PRELOAD`` environment variable::
6) Start a `tsocks` ssh tunnel::
ssh -fN -D 10000 user@external-server.com
7) Add the ``libtsocks.so.1.8`` to the ``LD_PRELOAD`` environment variable::
export LD_PRELOAD="${PWD}/libtsocks.so.1.8"
7) Create a custom curl command to set the tsocks option: open a file named
8) Create a custom curl command to set the tsocks option: open a file named
``curl``, which is accessible from your ``PATH`` environment variable before the
real ``curl`` command, and fill this file with::
#!/bin/bash
/usr/bin/curl --socks5 127.0.0.1:10000 $@
8) Start a `tsocks` ssh tunnel::
ssh -fN -D 10000 user@external-server.com