#!/bin/sh . /usr/lib/libmodcgi.sh BUILDIN_SUPPORT=$(tinyproxy -h | sed -n "/proxy support/ s/^[ ]*// ; s/ proxy support// p" | tr '\n' ' ') check "$TINYPROXY_ENABLED" yes:auto "*":man check "$TINYPROXY_CATCHALL" yes:catchall check "$TINYPROXY_CONFSERVER" yes:confserver check "$TINYPROXY_BINDSAME" yes:bindsame check "$TINYPROXY_SYSLOG" yes:syslog check "$TINYPROXY_XTINYPROXY" yes:xtinyproxy check "$TINYPROXY_UPSTREAM" yes:upstream check "$TINYPROXY_DISABLEVIAHEADER" yes:disableviaheader check "$TINYPROXY_FILTERURLS" yes:filterurls check "$TINYPROXY_FILTEREXTENDED" yes:filterextended check "$TINYPROXY_FILTERCASESENSITIVE" yes:filtercasesensitive check "$TINYPROXY_FILTERDEFAULTDENY" yes:filterdefaultdeny check "$TINYPROXY_REVERSEONLY" yes:reverseonly check "$TINYPROXY_REVERSEMAGIC" yes:reversemagic sec_begin '$(lang de:"Starttyp" en:"Start type")' cat << EOF

EOF sec_end sec_begin '$(lang de:"Proxy-Grundkonfiguration" en:"Basic proxy configuration")' cat << EOF

(*): $(lang de:"Optionen mit mehreren möglichen Einträgen, per Komma getrennt
(z.B. \"Allow: 127.0.0.1;192.168.178.0/24\" oder \"ConnectPort: 443;563\") " en:"Multiple entries are separated by \";\"
(eg. \"Allow: 127.0.0.1;192.168.178.0/24\" or \"ConnectPort: 443;563\")")

Port:    Listen:
Timeout:    MaxRequestsPerChild:
MaxClients:    StartServers:
MinSpareServers:    MaxSpareServers:
ViaProxyName:    DisableViaHeader:
ConnectPort (*):    XTinyproxy:

EOF /usr/sbin/iptables -t nat -A PREROUTING -i lan -p tcp --dport 80 -j REDIRECT --to-port 8080 --help > /dev/null 2>&1 if [ 0 -eq $? ] && echo "$BUILDIN_SUPPORT" | grep -q -i transparent ; then cat << EOF

EOF else echo '' fi sec_end sec_begin '$(lang de:"Konfigurationsserver Einstellungen" en:"Configure a HTTP server to deliver a PAC file")' cat << EOF

        $(lang de:"auf Port" en:"on port"):

EOF sec_end sec_begin '$(lang de:"Sicherheit und Filter" en:"Security and filter configuration")' cat << EOF
Allow (*):
Deny (*):
Anonymous (*):

$(lang de:"Inhalt der Filterdatei" en:"content of filter file"):

FilterDefaultDeny:    FilterCaseSensitive:
FilterExtended:    FilterURLs:
EOF sec_end sec_begin '$(lang de:"weitere Proxy Konfiguration" en:"Extended proxy configuration")' cat << EOF EOF if echo "$BUILDIN_SUPPORT" | grep -q -i upstream ; then cat << EOF EOF fi if echo "$BUILDIN_SUPPORT" | grep -q -i reverse ; then cat << EOF EOF fi cat << EOF
Bind:    BindSame:
Upstream (*):
No Upstream (*):
ReversePath:
ReverseBaseURL:
ReverseOnly:    ReverseMagic:
DefaultErrorFile:
ErrorFile (*):
AddHeader:
LogFile:
Use Syslog:    $(lang de:"Hinweis: Datei-Log wird abgeschaltet" en:"Note: Disables logging to file")
LogLevel:
EOF sec_end