X7ROOT File Manager
Current Path:
/usr/libexec/webmin/firewall
usr
/
libexec
/
webmin
/
firewall
/
📁
..
📄
CHANGELOG
(2.79 KB)
📄
acl_security.pl
(1.41 KB)
📄
apply.cgi
(512 B)
📄
backup_config.pl
(649 B)
📄
bootup.cgi
(600 B)
📄
cgi_args.pl
(430 B)
📄
cluster.cgi
(2.08 KB)
📄
cluster_add.cgi
(2.19 KB)
📄
cluster_delete.cgi
(651 B)
📄
coherent-linux-lib.pl
(1.54 KB)
📄
config
(83 B)
📄
config.info
(1.23 KB)
📄
config.info.bg
(2.48 KB)
📄
config.info.ca
(1.5 KB)
📄
config.info.cs
(982 B)
📄
config.info.de
(1.42 KB)
📄
config.info.fr
(1.63 KB)
📄
config.info.ja
(421 B)
📄
config.info.nl
(976 B)
📄
config.info.no
(968 B)
📄
config.info.pl
(1012 B)
📄
config.info.pt_BR
(983 B)
📄
config.info.ru
(1.31 KB)
📄
config.info.sk
(989 B)
📄
config.info.tr
(827 B)
📄
convert.cgi
(756 B)
📄
debian-linux-lib.pl
(4.59 KB)
📄
defaultacl
(100 B)
📄
edit_rule.cgi
(14.88 KB)
📄
firewall-lib.pl
(17.32 KB)
📄
firewall4-lib.pl
(1.82 KB)
📄
firewall6-lib.pl
(1.76 KB)
📄
gentoo-linux-lib.pl
(722 B)
📁
help
📁
images
📄
index.cgi
(16.42 KB)
📄
install_check.pl
(841 B)
📁
lang
📄
log_parser.pl
(835 B)
📄
mandrake-linux-lib.pl
(1.69 KB)
📄
module.info
(207 B)
📄
module.info.af
(0 B)
📄
module.info.af.auto
(173 B)
📄
module.info.ar
(0 B)
📄
module.info.ar.auto
(258 B)
📄
module.info.be
(0 B)
📄
module.info.be.auto
(271 B)
📄
module.info.bg
(0 B)
📄
module.info.bg.auto
(292 B)
📄
module.info.ca
(150 B)
📄
module.info.ca.auto
(17 B)
📄
module.info.cs
(24 B)
📄
module.info.cs.auto
(148 B)
📄
module.info.da
(0 B)
📄
module.info.da.auto
(167 B)
📄
module.info.de
(155 B)
📄
module.info.de.auto
(17 B)
📄
module.info.el
(0 B)
📄
module.info.el.auto
(331 B)
📄
module.info.es
(26 B)
📄
module.info.es.auto
(149 B)
📄
module.info.eu
(0 B)
📄
module.info.eu.auto
(160 B)
📄
module.info.fa
(0 B)
📄
module.info.fa.auto
(272 B)
📄
module.info.fi
(0 B)
📄
module.info.fi.auto
(192 B)
📄
module.info.fr
(0 B)
📄
module.info.fr.auto
(173 B)
📄
module.info.he
(0 B)
📄
module.info.he.auto
(243 B)
📄
module.info.hr
(0 B)
📄
module.info.hr.auto
(166 B)
📄
module.info.hu
(33 B)
📄
module.info.hu.auto
(172 B)
📄
module.info.it
(0 B)
📄
module.info.it.auto
(167 B)
📄
module.info.ja
(39 B)
📄
module.info.ja.auto
(218 B)
📄
module.info.ko
(0 B)
📄
module.info.ko.auto
(198 B)
📄
module.info.lt
(0 B)
📄
module.info.lt.auto
(197 B)
📄
module.info.lv
(0 B)
📄
module.info.lv.auto
(174 B)
📄
module.info.ms
(158 B)
📄
module.info.ms.auto
(17 B)
📄
module.info.mt
(0 B)
📄
module.info.mt.auto
(181 B)
📄
module.info.nl
(23 B)
📄
module.info.nl.auto
(157 B)
📄
module.info.no
(23 B)
📄
module.info.no.auto
(146 B)
📄
module.info.pl
(141 B)
📄
module.info.pl.auto
(23 B)
📄
module.info.pt
(0 B)
📄
module.info.pt.auto
(170 B)
📄
module.info.pt_BR
(26 B)
📄
module.info.pt_BR.auto
(150 B)
📄
module.info.ro
(0 B)
📄
module.info.ro.auto
(178 B)
📄
module.info.ru
(51 B)
📄
module.info.ru.auto
(241 B)
📄
module.info.sk
(24 B)
📄
module.info.sk.auto
(174 B)
📄
module.info.sl
(0 B)
📄
module.info.sl.auto
(174 B)
📄
module.info.sv
(0 B)
📄
module.info.sv.auto
(174 B)
📄
module.info.th
(0 B)
📄
module.info.th.auto
(306 B)
📄
module.info.tr
(0 B)
📄
module.info.tr.auto
(215 B)
📄
module.info.uk
(0 B)
📄
module.info.uk.auto
(277 B)
📄
module.info.ur
(0 B)
📄
module.info.ur.auto
(307 B)
📄
module.info.vi
(0 B)
📄
module.info.vi.auto
(204 B)
📄
module.info.zh
(0 B)
📄
module.info.zh.auto
(145 B)
📄
module.info.zh_TW
(0 B)
📄
module.info.zh_TW.auto
(154 B)
📄
move.cgi
(1.29 KB)
📄
newchain.cgi
(898 B)
📄
open-ports.pl
(3.4 KB)
📄
prefs.info
(55 B)
📄
redhat-linux-lib.pl
(2.14 KB)
📄
save_policy.cgi
(7.15 KB)
📄
save_rule.cgi
(12.4 KB)
📄
save_rule6.cgi
(12.04 KB)
📄
setup.cgi
(9.36 KB)
📄
setup6.cgi
(8.12 KB)
📄
trustix-linux-lib.pl
(2.14 KB)
📄
unapply.cgi
(609 B)
Editing: firewall4-lib.pl
# firewall4-lib.pl # has to be included after firewall-lib from every cgi # ipv4 initialization if ($config{'save_file'}) { # Force use of a different save file, and webmin's functions $iptables_save_file = $config{'save_file'}; } else { if (-r "$module_root_directory/$gconfig{'os_type'}-lib.pl") { # Use the operating system's save file and functions do "$gconfig{'os_type'}-lib.pl"; } if (!$iptables_save_file) { # Use webmin's own save file $iptables_save_file = "$module_config_directory/iptables.save"; } } %access = &get_module_acl(); @known_tables = ( "filter", "mangle", "nat" ); @known_args = ('-p', '-m', '-s', '-d', '-i', '-o', '-f', '--dport', '--sport', '--tcp-flags', '--tcp-option', '--icmp-type', '--mac-source', '--limit', '--limit-burst', '--ports', '--uid-owner', '--gid-owner', '--pid-owner', '--sid-owner', '--state', '--ctstate', '--tos', '-j', '--to-ports', '--to-destination', '--to-source', '--reject-with', '--dports', '--sports', '--match-set', '--comment', '--physdev-is-bridged', '--physdev-is-in', '--physdev-is-out', '--physdev-in', '--physdev-out'); @ipvx_rtypes = ( "icmp-net-unreachable", "icmp-host-unreachable", "icmp-port-unreachable", "icmp-proto-unreachable", "icmp-net-prohibited", "icmp-host-prohibited", "echo-reply", "tcp-reset" ); $ipvx_todestpattern='^([0-9\.]+)(\-([0-9\.]+))?(:(\d+)(\-(\d+))?)?$'; # set IP Version &set_ipvx_version('ipv4'); # IP V4 only functions sub check_ipmask { foreach my $w (split(/[ \t\r\n,]+/, $_[0])) { my $ok = &to_ipaddress($w) || $w =~ /^([0-9\.]+)\/([0-9\.]+)$/ && &to_ipaddress("$1") && (&check_ipaddress("$2") || ($2 =~ /^\d+$/ && $2 <= 32)); return 0 if (!$ok); } return 1; } # check_ipvx_ipaddress(ipv4) # Validates an IPv4 address sub check_ipvx_ipaddress { return &check_ipaddress(@_); } 1;
Upload File
Create Folder