]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
proxy: allow access to IPFire itself if nets are blocked.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 14 Feb 2013 18:33:37 +0000 (19:33 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 14 Feb 2013 18:33:37 +0000 (19:33 +0100)
This fixes missing pictures on blocking pages.
fixes #10138

html/cgi-bin/ovpnmain.cgi [changed mode: 0755->0644]
html/cgi-bin/proxy.cgi

old mode 100755 (executable)
new mode 100644 (file)
index 0b28c2adf36a4fa0738147fc1bc768c158144755..cc7416a9439ba86fb54bc8d41f3fa8e4e2dfb738 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2012  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2013  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -3556,15 +3556,15 @@ if ($delaypools) {
 
 if ($proxysettings{'NO_PROXY_LOCAL'} eq 'on')
 {
-       print FILE "#Prevent internal proxy access to Green\n";
-       print FILE "http_access deny IPFire_green_servers !IPFire_green_network\n\n";
+       print FILE "#Prevent internal proxy access to Green except IPFire itself\n";
+       print FILE "http_access deny IPFire_green_servers !IPFire_ips !IPFire_green_network\n\n";
 }
 
 if ($proxysettings{'NO_PROXY_LOCAL_BLUE'} eq 'on')
 {
-       print FILE "#Prevent internal proxy access from Blue\n";
+       print FILE "#Prevent internal proxy access from Blue except IPFire itself\n";
        print FILE "http_access allow IPFire_blue_network IPFire_blue_servers\n";
-       print FILE "http_access deny  IPFire_blue_network IPFire_servers\n\n";
+       print FILE "http_access deny  IPFire_blue_network !IPFire_ips IPFire_servers\n\n";
 }
 
        print FILE <<END