1
German - Deutsch / [solved] Re: Nginx - Basic Auth mit Advanced ACLs funktioniert nicht
« on: September 30, 2024, 07:08:59 pm »
Erst mal gelöst, siehe https://github.com/opnsense/plugins/issues/4266
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
2024/09/25 19:15:32 [error] 65485#105117: *762 auth request unexpected status: 302 while sending to client, client: x.x.x.x, server: xxx.xxx.cc, request: "GET /favicon.ico HTTP/2.0", host: "xxx.xxx.cc", referrer: "xxx.xxx.cc/?login&href="
#/usr/local/bin/bash
current_ip=$(ifconfig pppoe2 | grep 'inet' | awk -F ' ' '{ print $2 }')
read cached_ip < /opt/cached_ip
if [[ $current_ip == $cached_ip ]]; then
echo "IPs gleich"
else
pfctl -k $cached_ip
echo "$current_ip" > /opt/cached_ip
echo "States gekillt"
fi