From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] fix downloading Snort rules if behind upstream proxy Date: Mon, 29 Oct 2018 18:49:49 +0100 Message-ID: <20181029174949.7220-1-peter.mueller@link38.eu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0225552103415671026==" List-Id: --===============0225552103415671026== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Currently, the wget call only uses proxy information for HTTP. Since rulesets are downloaded via HTTPS now, the same information also needs to be applied for HTTPS. Signed-off-by: Peter M=C3=BCller --- html/cgi-bin/ids.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index d9d697deb..eddfc387c 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -692,7 +692,7 @@ sub downloadrulesfile { } =20 if ($peer) { - system("wget -r --proxy=3Don --proxy-user=3D$proxysettings{'UPSTREAM_USER'= } --proxy-passwd=3D$proxysettings{'UPSTREAM_PASSWORD'} -e http_proxy=3Dhttp:/= /$peer:$peerport/ -o /var/tmp/log --output-document=3D/var/tmp/snortrules.tar= .gz $url"); + system("wget -r --proxy=3Don --proxy-user=3D$proxysettings{'UPSTREAM_USER'= } --proxy-passwd=3D$proxysettings{'UPSTREAM_PASSWORD'} -e http_proxy=3Dhttp:/= /$peer:$peerport/ -e https_proxy=3Dhttp://$peer:$peerport/ -o /var/tmp/log --= output-document=3D/var/tmp/snortrules.tar.gz $url"); } else { system("wget -r -o /var/tmp/log --output-document=3D/var/tmp/snortrules.ta= r.gz $url"); } --=20 2.16.4 --===============0225552103415671026==--