From d1a3fd9e0debf994055a410fbc7e5ba7c7c074b0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 22 Sep 2024 14:33:03 +0000 Subject: [PATCH 1/3] ovpnmain.cgi: Fix IP address calculation with static pools Signed-off-by: Michael Tremer --- config/rootfiles/core/189/filelists/files | 1 + html/cgi-bin/ovpnmain.cgi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/core/189/filelists/files b/config/rootfiles/core/189/filelists/files index 7afa1ac2e..7e7959886 100644 --- a/config/rootfiles/core/189/filelists/files +++ b/config/rootfiles/core/189/filelists/files @@ -5,6 +5,7 @@ etc/rc.d/init.d/networking/functions.network etc/rc.d/init.d/suricata srv/web/ipfire/cgi-bin/getrrdimage.cgi srv/web/ipfire/cgi-bin/ids.cgi +srv/web/ipfire/cgi-bin/ovpnmain.cgi srv/web/ipfire/html/include/rrdimage.js usr/bin/suricata-watcher var/ipfire/graphs.pl diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 72695f892..daaa059a4 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -569,7 +569,7 @@ sub getccdadresses for (my $i=1;$i<=$count;$i++) { my $tmpip=$iprange[$i-1]; my $stepper=$i*4; - $iprange[$i]= &General::getnextip($tmpip,4); + $iprange[$i]= &Network::bin2ip(&Network::ip2bin($tmpip) + 4); } my $r=0; foreach my $key (keys %ccdhash) { From 0555434effc70080d8278ca3db38fef51bba1efa Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 26 Sep 2024 14:13:10 +0000 Subject: [PATCH 2/3] header.pl: Force browsers to reload rrdimage.js Signed-off-by: Michael Tremer --- config/cfgroot/header.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/header.pl b/config/cfgroot/header.pl index 3778c4e59..2d4aa89f2 100644 --- a/config/cfgroot/header.pl +++ b/config/cfgroot/header.pl @@ -195,7 +195,7 @@ print < - + $extrahead