Socksify TCP connections reaching a gateway IP -- preferably without iptables
Posted
by
Alexandra Neagu
on Server Fault
See other posts from Server Fault
or by Alexandra Neagu
Published on 2013-10-17T19:35:09Z
Indexed on
2013/10/17
21:59 UTC
Read the original article
Hit count: 502
I have Virtualbox installed on Debian with a few virtual machines. I can't install anything in the guests, and I use host only networking, vboxnet0. The host IP in the host network is 192.168.56.1, and the guests have static IPs in 192.168.56.0/24.
I access Internet with a SOCKS proxy (without authentication) and I would like the Virtualbox guests TCP connections to be sent through the SOCKS proxy. This would also be useful for socksifying external TCP reaching a gateway network card or wireless access point.
I looked at transocks, tun2socks, with dante-client, etc., but I don't know how can I achieve this without enabling IP forwarding in the host and using iptables. Maybe to attach somehow the Virtualbox vboxnet0 network to the tunnel tun0 used by tun2socks? Or maybe there is a way to do NAT to tun0 in Virtualbox?
I only need TCP traffic and I don't need UDP, not even for DNS.
© Server Fault or respective owner