How to check command line requests routed thru TOR?

Posted by Chris on Ask Ubuntu See other posts from Ask Ubuntu or by Chris
Published on 2012-06-02T14:39:08Z Indexed on 2012/06/02 16:49 UTC
Read the original article Hit count: 327

Filed under:
|
|

I think I have virtualbox set up so that all traffic originating from the guest OS is routed through TOR. TOR is only installed on the host OS and the web browsers on the guest OS all report TOR IP's in Europe when I test with seemyip.com. The host OS shows my real IP when going to the same sites.

But I initiate a lot of requests from the Linux command line and I haven't been able to confirm to my satisfaction that these are routing through TOR, though I have no reason to think they do not.

When I use this command I get no output from the guest OS, but my real IP from the host OS:

dig myip.opendns.com @resolver1.opendns.com +short

This bash file gives no output from either OS:

#!/bin/bash

echo Your external IP Address is:
wget http://Www.whatismyip.com -O - -o /dev/null | grep '<TITLE>' | sed -r 's/<TITLE>WhatIsMyIP\.com \- //g' | sed -r 's/<\/TITLE>//g'

exit 0

Suggestions?

© Ask Ubuntu or respective owner

Related posts about virtualbox

Related posts about command