How to setup proxy server in VM?
I would like to know if it is possible to setup proxy server in virtual machine (VM). I am not sure about it but I read some articles that are similar. Here is what I found:
When this article said that you need extra packages for Squid, I checked on my Ubuntu and Squid is already there. But the article also says you should set up two NICs so you can make a transparent proxy.
So my question is how do I get access to both of them or to be able to see the different networks in one virtual machine? Here is what happens when I set up a proxy as per the above link. Root@mongo-virtual:/etc# systemctl enable squid. Root@mongo-virtual:/etc# service squid start. Root@mongo-virtual:/etc# sysctl net.ipv4.conf.default.proxyarp
Net.proxyarp = 1 root@mongo-virtual:/etc# route add -net 192.168.20.0/24 dev eth0
Root@mongo-virtual:/etc# route add default gw 192.1 root@mongo-virtual:/etc# ifconfig. Eth0 Link encap:Ethernet HWaddr 00:1f:9e:f3:08:3d. inet addr:192.10 Bcast:192.255 Mask:255.
Related Answers
Is DNS server a proxy server?
I am trying to understand what DNS server does. I am aware that DNS server do...
What does proxy mean?
If you are asking about VPN vs proxy, then VPN vs proxy is a question that comes more...
What is a proxy server and why do I need it?
A proxy server is a server computer that makes web connections...