Commit 4599da22 authored by Reimar Stier's avatar Reimar Stier

Disable ipv4 in squid.conf

parent 8d648ce3
...@@ -34,8 +34,14 @@ choco install windows\packages\virtualization.config ...@@ -34,8 +34,14 @@ choco install windows\packages\virtualization.config
choco install windows\packages\desktop.config choco install windows\packages\desktop.config
``` ```
* Configure squid proxy on windows host and change username in configuration file * Configure squid proxy on windows host and change username in configuration file
Copy files\squid.conf C:\Squid\etc\squid\squid.conf
Copy files\squid.conf C:\Squid\etc\squid\squid.conf * Restart Squid proxy using windows system service
* Configure vagrant to use the proxy
```
source proxy.sh
vagrant plugin install vagrant-proxyconf
vagrant plugin install vagrant-disksize
```
* Start VM * Start VM
``` ```
......
...@@ -58,6 +58,11 @@ http_port 3128 ...@@ -58,6 +58,11 @@ http_port 3128
# all other queries are handled directly by squid # all other queries are handled directly by squid
never_direct allow all never_direct allow all
# use ipv4 and define internal dns server
dns_nameservers 53.64.7.144 53.64.7.145
tcp_outgoing_address 0.0.0.0 all
dns_v4_first on
# proxy parent # proxy parent
#cache_peer 53.48.15.138 parent 3128 0 no-query no-digest no-netdb-exchange login=USERNAME:PASSWORD #cache_peer 53.48.15.138 parent 3128 0 no-query no-digest no-netdb-exchange login=USERNAME:PASSWORD
#cache_peer s415078c.detss.corpintra.net parent 3128 0 no-query no-digest no-netdb-exchange login=USERNAME:PASSWORD #cache_peer s415078c.detss.corpintra.net parent 3128 0 no-query no-digest no-netdb-exchange login=USERNAME:PASSWORD
......
#!/bin/sh #!/bin/sh
export http_proxy=http://192.168.200.1:3128 export http_proxy=http://192.168.56.1:3128
export https_proxy="$http_proxy" export https_proxy="$http_proxy"
export no_proxy="localhost,127.0.0.1,192.168.200.0/24" export no_proxy="localhost,127.0.0.1,192.168.56.0/24"
export VAGRANT_HTTP_PROXY="$http_proxy" export VAGRANT_HTTP_PROXY="$http_proxy"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment