M
M
minminminmin2014-03-20 18:12:39
Tor
minminminmin, 2014-03-20 18:12:39

VPN + tor (on one Centos 6.5 server). How to configure possible solution paths?

There is a Centos server, VPN is raised on it.
I also want to install tor on this server and let all VPN traffic go through it.
How is this possible? Those. connect to the server via VPN, and have VPN traffic go through tor on the same server.
My knowledge is very poor. I installed tor - yum -y install tor I
check through the test file

<?php
error_reporting(E_ALL);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://internet.yandex.ru/");
curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:9050');
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>
- works
I think you need to write something like this in iptables:
iptables -t nat -A POSTROUTING -s 10.10.1.0/24 -j SNAT --to-source 127.0.0.1 -p tcp --dport 9050
Or am I wrong - it is necessary that all traffic of the VPN 10.10.1.0/24 local network go through the proxy 127.0.01:9050.
Can you please tell me how to make a rule?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nojoke, 2015-02-05
@nojoke

TOR is not an HTTP proxy, so you won't get anything that easy.
As an option, put a bunch of tor + privoxy + squid
Here is an example in English:
https://www.howtoforge.com/ultimate-security-proxy...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question