socks5 redirect all connected appvm traffic to socks5 port in vpnVM

42 views
Skip to first unread message

Eva Star

unread,
Aug 12, 2020, 5:07:31 AM8/12/20
to qubes-users
Hello,

How to redirect all traffic to specific socks5 port in vpnVM (not system-wide, but from connected AppVMs) ?

I want to create vpnVM. It is not using openvpn as client, but other specific software with opened socks5 port. I want to redirect all incoming connections from connected appvsm to this socket port.

I'm not sure, but maybe it will request to setup redsocks to work, but let's assume that I already have redsocks running with opened 1080 port and I want to redirect all traffic from connected appVMs to this vpnVM to port 1080! How to do this right?

Thanks

Eva Star

unread,
Aug 12, 2020, 8:55:44 AM8/12/20
to qubes-users
sudo iptables -t nat -A PREROUTING -p tcp -j REDIRECT --to-ports 1080

this rule not work :-(

donoban

unread,
Aug 12, 2020, 10:13:14 AM8/12/20
to qubes...@googlegroups.com
On 2020-08-12 14:55, Eva Star wrote:
> sudo iptables -t nat -A PREROUTING -p tcp -j REDIRECT --to-ports 1080
>
> this rule not work :-(
>

Maybe your proxy should be running in some kind of transparent mode.
Have you tested before with an iptables redirect?
Reply all
Reply to author
Forward
0 new messages