Skip to content

Commit 76d1792

Browse files
committed
Fixes to squid setup.
1 parent 9c6fc86 commit 76d1792

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

misc/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ DNSMASQ_DIR=$(WORK)/dnsmasq-$(DNSMASQ_VERSION)
2020
SQUID_DIR=$(WORK)/squid-$(SQUID_VERSION)
2121

2222
SQUIDROOT=$(shell readlink -f .)/squidroot
23+
SQUID_VAR_OWNER=$(shell stat -c '%u' .)
24+
SQUID_VAR_GROUP=$(shell stat -c '%g' .)
2325

2426
all: dnsmasq squid
2527

@@ -41,6 +43,8 @@ squid: $(SQUIDROOT)/sbin/squid
4143

4244
$(SQUIDROOT)/sbin/squid: $(SQUID_DIR)/src/squid
4345
make -C $(SQUID_DIR) install
46+
chown -R $(SQUID_VAR_OWNER) $(SQUIDROOT)/var
47+
chgrp -R $(SQUID_VAR_GROUP) $(SQUIDROOT)/var
4448

4549
$(SQUID_DIR)/src/squid: $(SQUID_DIR)/Makefile
4650
make -C $(SQUID_DIR) -j$(SUBMAKE_JOBS)

uml/run-bash.sh

-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ if [ "$1" = '-n' ]; then
4242

4343
echo "Configuring squid"
4444
cat > "$SQUID_CONF" <<EOS
45-
acl manager proto cache_object
46-
acl localhost src 127.0.0.1/32 ::1
47-
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
48-
4945
acl SSL_ports port 443
5046
acl Safe_ports port 80 # http
5147
acl Safe_ports port 8080 # alternative http

web/lib/squid.rb

-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ def self.ensure_swap_dirs_created
6565

6666
def self.write_config_file(tapdevs)
6767
config = <<EOS
68-
acl manager proto cache_object
69-
acl localhost src 127.0.0.1/32 ::1
70-
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
71-
7268
acl SSL_ports port 443
7369
acl Safe_ports port 80 # http
7470
acl Safe_ports port 8080 # alternative http

0 commit comments

Comments
 (0)