2025-06-26-13-33-49: Cronjob
This commit is contained in:
commit
29049c8da1
127 changed files with 7089 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
acl local-servers dstdomain .{{ domain }}
|
||||
cache_peer {{ localproxy_parent }} parent 3128 0 no-query default login=NEGOTIATE auth-no-keytab
|
||||
never_direct deny local-servers
|
||||
always_direct allow all
|
||||
#access_log stdio:/tmp/access.log squid
|
||||
access_log none
|
||||
cache_log /dev/null
|
||||
logfile_rotate 0
|
||||
pid_filename none
|
||||
{% if vm_support %}
|
||||
http_port 192.168.122.1:3128
|
||||
{% endif %}
|
||||
http_port 127.0.0.1:3128
|
||||
http_access allow all
|
||||
14
roles/lmn_localproxy/templates/squid-usermode.conf.j2
Normal file
14
roles/lmn_localproxy/templates/squid-usermode.conf.j2
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
acl local-servers dstdomain .{{ domain }}
|
||||
cache_peer {{ localproxy_parent }} parent 3128 0 no-query default login=NEGOTIATE auth-no-keytab
|
||||
never_direct deny local-servers
|
||||
never_direct allow all
|
||||
#access_log stdio:/tmp/access.log squid
|
||||
access_log none
|
||||
cache_log /dev/null
|
||||
logfile_rotate 0
|
||||
pid_filename none
|
||||
{% if vm_support %}
|
||||
http_port 192.168.122.1:3128
|
||||
{% endif %}
|
||||
http_port 127.0.0.1:3128
|
||||
http_access allow all
|
||||
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