From 616bc6f1e637d3b5d0af582c29e0cb0a67b70498 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Wed, 28 Jan 2015 12:27:12 +0100 Subject: [PATCH] Start tunnel before export LD_PRELOAD --- ...ewall.rest => Installation-behind-a-firewall.rest | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename Installation behind a firewall.rest => Installation-behind-a-firewall.rest (83%) diff --git a/Installation behind a firewall.rest b/Installation-behind-a-firewall.rest similarity index 83% rename from Installation behind a firewall.rest rename to Installation-behind-a-firewall.rest index cb98e1a..1ed1067 100644 --- a/Installation behind a firewall.rest +++ b/Installation-behind-a-firewall.rest @@ -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