V
V
Vimx2016-01-21 06:36:34
openvpn
Vimx, 2016-01-21 06:36:34

Why doesn't OpenVPN pass requests through squid-privoxy to tor?

Good afternoon. I'm trying to set up such a bunch of OpenVPN -> squid -> privoxy -> tor. Squid does not pass requests to privoxy. Everything works individually.
What is the reason?
tun0 10.8.0.0 - openvpn network interface.
Added/Changed in default config:
1) squid
acl lanvpn src 10.8.0.0/255.255.255.0
acl torhost dstdomain .onion
http_access allow lanvpn
http_port 10.8.0.1:3128 transparent
cache_peer 10.8.0.1 parent 8118 0 no-query proxy-only
cache_peer .0.1 allow torhost
cache_peer_access 10.8.0.1 deny all
2) privoxy
listen-address 10.8.0.1:8118
forward-socks5 / 10.8.0.1:9050 .
3) tor
SocksListenAddress 10.8.0.1
iptables:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to 1.2.3.4 #(1.2.3.4 - ip vps)
iptables -t nat -A PREROUTING -i tun0 -p tcp --dport 80 -j REDIRECT --to-port 3128

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question