Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vagrantsetup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
devbox
vagrantsetup
Commits
4599da22
Commit
4599da22
authored
Sep 17, 2019
by
Reimar Stier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable ipv4 in squid.conf
parent
8d648ce3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
Readme.md
Readme.md
+8
-2
squid.conf
files/squid.conf
+5
-0
proxy.sh
proxy.sh
+2
-2
No files found.
Readme.md
View file @
4599da22
...
...
@@ -34,8 +34,14 @@ choco install windows\packages\virtualization.config
choco install windows\packages\desktop.config
```
*
Configure squid proxy on windows host and change username in configuration file
Copy files
\s
quid.conf C:
\S
quid
\e
tc
\s
quid
\s
quid.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
```
...
...
files/squid.conf
View file @
4599da22
...
...
@@ -58,6 +58,11 @@ http_port 3128
# all other queries are handled directly by squid
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
#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
...
...
proxy.sh
View file @
4599da22
#!/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
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
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment