Create own role for the usersquid http_proxy functionality
This commit is contained in:
parent
68215897a6
commit
ce40cb885f
10 changed files with 584 additions and 535 deletions
8
roles/lmn_localproxy/templates/startusersquid.sh.j2
Executable file
8
roles/lmn_localproxy/templates/startusersquid.sh.j2
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/bash
|
||||
#
|
||||
|
||||
if nslookup firewall.{{ domain }}; then
|
||||
/usr/sbin/squid --foreground -f /etc/squid/squid-usermode.conf
|
||||
else
|
||||
/usr/sbin/squid --foreground -f /etc/squid/squid-usermode-external.conf
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue