[Tsocks-general] Configuration Question
Brought to you by:
delius
From: Ali J. <ali...@gm...> - 2012-01-07 20:10:51
|
Hi I have wanproxy setup to create a WAN link between two servers as follows : Wanproxy Client listening on port 80 <-> Wanproxy server -->>> Internet As you know not all devices/programs support SOCKS so I did setup VPN now I did setup VPN on WP Client Server <-- ?? tsocks ?? --> Wanproxy Client listening on port 80 <-> Wanproxy server -->>> Internet My Clients can connect through VPN to the Wan proxy client server which is running tsocks, I did configure tsocks as follows : server = 127.0.0.1 server_port = 80 server_type = 5 local = 10.0.0.0/255.0.0.0 And I did setup iptables as follows for testing : iptables -t nat -D PREROUTING --source 10.0.0.0/8 -p tcp --dport 80 -j DNAT --to 127.0.0.1:80 The VPN network is 10.0.0.0/8 I did this assuming that once I get VPN connected, all traffic goes through VPN to the socks server and then I redirect all traffic to port 80 "only traffic on port 80 in this case" and tsocks will take care of sending this traffic through TCP to socks. I start Wanproxy using the following command : tsocks /usr/sbin/wanproxy -c /etc/wanproxy.conf But it is not working at all, VPN on it's own is working when I masquerade the traffic and Wanproxy works when I put the SOCKS settings into a browser "using the public IP of course". Please advice. Regards |