Is it possible to install zscaler on virtual machine (e.g. linux), and use that machine for accessing only few hostnames? I would point other machines to go via this virtual machine only for those few hostnames, and everything else would go normal way (via my local gateway). Is there some easier way to achieve this?
Basically, I want to prevent zscaler investigating all the traffic I do on my machine.
UPDATE
So, I managed do to this somewhat. I just installed zscaler to vmware ubuntu server, and added iptables rule:
sudo iptables -t nat -A POSTROUTING -o zcctun0 -j MASQUERADE
where zcctun0
is interface that is added by zscaler
I also set in windows hosts file:
55.22.22.22 some.server.com
And I added static route in windows:
route add 55.22.0.0 mask 255.255.0.0 192.168.44.131 if 19
Where if 19
is vmware NAT network interface that virtual machine is using, and 192.168.44.131
is ubuntu's IP on ens33
interface.
The problem I have now - I need to manually visit some.server.com
from firefox from within the vmware ubuntu server first, otherwise, in windows I only get connection timeouts, when it tries to connect for the first time. As soon as I open some.server.com
in ubuntu, I can access all the servers from windows also.
Any idea?
UPDATE
Seems I don't even need to open the page. I can just do
nslookup some.server.com
inside Ubuntu server and then it works in Windows also (but only for that domain name).
Strange thing is that nslookup
returns 55.22.22.22
as the IP (which is my setting already in hosts file). Also seems that zscaler has it's own DNS (127.0.0.53#53) - so I guess it has to be something because of that.
UPDATE
After installing bind9
and making it forwarder to 127.0.0.53, and after adding this in windows power shell Add-DnsClientNrptRule -Namespace ".somedomain.com" -NameServers "192.168.44.131"
everything works from beginning. Nice...
Only remaining thing is - how to automatically add static route to the windows when answer is returned by 192.168.44.131 DNS - so it goes via vmware VM