]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - html/cgi-bin/iptables.cgi
2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
22 require '/var/ipfire/general-functions.pl';
23 require "${General::swroot}/lang.pl";
24 require "${General::swroot}/header.pl";
33 system('/usr/local/bin/getipstat');
35 &Header
::showhttpheaders
();
36 &Header
::openpage
($Lang::tr
{'ipts'}, 1, '');
37 &Header
::openbigbox
('100%', 'LEFT');
38 &Header
::openbox
('100%', 'LEFT', $Lang::tr
{'ipts'}.':');
45 open (FILE
, '/srv/web/ipfire/html/iptables.txt');
48 $iplines[$lines] = $_;
52 foreach $_ (@iplines) {
65 &Header
::openbox
('100%', 'LEFT', $Lang::tr
{'iptmangles'}.':');
72 open (FILEMAN
, '/srv/web/ipfire/html/iptablesmangle.txt');
75 $ipmanlines[$manlines] = $_;
79 foreach $_ (@ipmanlines) {
92 &Header
::openbox
('100%', 'LEFT', $Lang::tr
{'iptnats'}.':');
99 open (FILENAT
, '/srv/web/ipfire/html/iptablesnat.txt');
102 $ipnatlines[$natlines] = $_;
106 foreach $_ (@ipnatlines) {
117 &Header
::closebigbox
();
118 &Header
::closepage
();
120 system(rm
-f
"/srv/web/ipfire/html/iptables.txt");
121 system(rm
-f
"/srv/web/ipfire/html/iptablesmangle.txt");
122 system(rm
-f
"/srv/web/ipfire/html/iptablesnat.txt");