[ Avaa Bypassed ]




Upload:

Command:

www-data@3.137.198.25: ~ $
# 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;


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 2.79 KB 0644
acl_security.pl File 1.02 KB 0755
apply.cgi File 512 B 0755
backup_config.pl File 649 B 0755
bootup.cgi File 600 B 0755
cgi_args.pl File 430 B 0755
cluster.cgi File 2.08 KB 0755
cluster_add.cgi File 2.19 KB 0755
cluster_delete.cgi File 651 B 0755
coherent-linux-lib.pl File 1.54 KB 0755
config File 83 B 0644
config.info File 1.23 KB 0644
config.info.bg File 2.48 KB 0644
config.info.ca File 1.5 KB 0644
config.info.cs File 982 B 0644
config.info.de File 1.42 KB 0644
config.info.fr File 1.63 KB 0644
config.info.ja File 421 B 0644
config.info.nl File 976 B 0644
config.info.no File 968 B 0644
config.info.pl File 1012 B 0644
config.info.pt_BR File 983 B 0644
config.info.ru File 1.31 KB 0644
config.info.sk File 989 B 0644
config.info.tr File 827 B 0644
convert.cgi File 756 B 0755
debian-linux-lib.pl File 4.69 KB 0755
defaultacl File 100 B 0644
edit_rule.cgi File 14.88 KB 0755
firewall-lib.pl File 17.32 KB 0755
firewall4-lib.pl File 1.82 KB 0755
firewall6-lib.pl File 1.76 KB 0755
gentoo-linux-lib.pl File 722 B 0755
index.cgi File 16.42 KB 0755
install_check.pl File 841 B 0755
log_parser.pl File 835 B 0755
mandrake-linux-lib.pl File 1.69 KB 0755
module.info File 207 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 173 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 258 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 271 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 292 B 0644
module.info.ca File 150 B 0644
module.info.ca.auto File 17 B 0644
module.info.cs File 24 B 0644
module.info.cs.auto File 148 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 167 B 0644
module.info.de File 155 B 0644
module.info.de.auto File 17 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 331 B 0644
module.info.es File 26 B 0644
module.info.es.auto File 149 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 160 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 272 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 192 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 173 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 243 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 166 B 0644
module.info.hu File 33 B 0644
module.info.hu.auto File 172 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 167 B 0644
module.info.ja File 39 B 0644
module.info.ja.auto File 218 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 198 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 197 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 174 B 0644
module.info.ms File 158 B 0644
module.info.ms.auto File 17 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 181 B 0644
module.info.nl File 23 B 0644
module.info.nl.auto File 157 B 0644
module.info.no File 23 B 0644
module.info.no.auto File 146 B 0644
module.info.pl File 141 B 0644
module.info.pl.auto File 23 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 170 B 0644
module.info.pt_BR File 26 B 0644
module.info.pt_BR.auto File 150 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 178 B 0644
module.info.ru File 51 B 0644
module.info.ru.auto File 241 B 0644
module.info.sk File 24 B 0644
module.info.sk.auto File 174 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 174 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 174 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 306 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 215 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 277 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 307 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 204 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 145 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 154 B 0644
move.cgi File 1.29 KB 0755
newchain.cgi File 898 B 0755
open-ports.pl File 3.4 KB 0755
prefs.info File 55 B 0644
redhat-linux-lib.pl File 2.14 KB 0755
save_policy.cgi File 7.15 KB 0755
save_rule.cgi File 12.4 KB 0755
save_rule6.cgi File 12.05 KB 0755
setup.cgi File 9.37 KB 0755
setup6.cgi File 8.12 KB 0755
trustix-linux-lib.pl File 2.14 KB 0755
unapply.cgi File 609 B 0755