[ Avaa Bypassed ]




Upload:

Command:

www-data@18.224.3.26: ~ $
# redhat-linux-lib.pl
# Networking functions for redhat linux

if ($gconfig{'os_type'} eq 'openmamba-linux') {
	# OpenMamba Linux
	$net_scripts_dir = "/etc/sysconfig/network-devices";
	$devices_dir = "/etc/sysconfig/network-devices";
	}
else {
	# Redhat, Mandrake, etc..
	$net_scripts_dir = "/etc/sysconfig/network-scripts";
	$devices_dir = "/etc/sysconfig/networking/devices";
	}
$route_files_dir = -d $devices_dir ? $devices_dir : $net_scripts_dir;
$network_config = "/etc/sysconfig/network";
$static_route_config = "/etc/sysconfig/static-routes";
$sysctl_config = "/etc/sysctl.conf";

# Redhat 7.2+ and Mandrake 9.1+ support separate gateways in each interface file
$supports_dev_gateway = ($gconfig{'os_type'} eq 'redhat-linux' &&
			 $gconfig{'os_version'} >= 7.2) ||
			($gconfig{'os_type'} eq 'mandrake-linux' &&
			 $gconfig{'os_version'} >= 9.1) ||
			($gconfig{'os_type'} eq 'coherant-linux' &&
			 $gconfig{'os_version'} >= 3.0) ||
			($gconfig{'os_type'} eq 'trustix-linux');

# Redhat 8.0+ and Mandrake 9.1+ have a separate file for static routes for
# each interface
$supports_dev_routes = ($gconfig{'os_type'} eq 'redhat-linux' &&
		        $gconfig{'os_version'} >= 8.0) ||
			($gconfig{'os_type'} eq 'mandrake-linux' &&
			 $gconfig{'os_version'} >= 9.1) ||
			($gconfig{'os_type'} eq 'coherant-linux' &&
			 $gconfig{'os_version'} >= 3.0) ||
			($gconfig{'os_type'} eq 'trustix-linux');

# Redhat 10 (ES/AS 3) uses route-$dev instead of $dev.route
$supports_route_dev = ($gconfig{'os_type'} eq 'redhat-linux' &&
		       $gconfig{'os_version'} >= 10.0) ||
		      ($gconfig{'os_type'} eq 'coherant-linux' &&
		       $gconfig{'os_version'} >= 3.0);

# Redhat 9.0+ uses the ONPARENT variable for virtual interfaces
$uses_on_parent = ($gconfig{'os_type'} eq 'redhat-linux' &&
		   $gconfig{'os_version'} >= 9.0) ||
		  ($gconfig{'os_type'} eq 'mandrake-linux' &&
		   $gconfig{'os_version'} >= 9.1) ||
		  ($gconfig{'os_type'} eq 'coherant-linux' &&
		   $gconfig{'os_version'} >= 3.0);

# Redhat versions 7.2 and above allow the MTU to be set at boot time
$supports_mtu = ($gconfig{'os_type'} eq 'redhat-linux' &&
		 $gconfig{'os_version'} >= 7.2) ||
		($gconfig{'os_type'} eq 'coherant-linux' &&
 		 $gconfig{'os_version'} >= 3.0);

do 'linux-lib.pl';

# boot_interfaces()
# Returns a list of interfaces brought up at boot time
sub boot_interfaces
{
my (@rv, $f);
my %bridge_map;
my @active;
opendir(CONF, &translate_filename($net_scripts_dir));
while($f = readdir(CONF)) {
	my (%conf, $b);
	if ($f =~ /^ifcfg-([a-z0-9:\.]+)\-range([a-z0-9\.\_]+)$/) {
		# A range of addresses
		&read_env_file("$net_scripts_dir/$f", \%conf);
		$b->{'fullname'} = "$1-range$2";
		$b->{'name'} = $1;
		$b->{'range'} = $2;
		$b->{'start'} = $conf{'IPADDR_START'};
		$b->{'end'} = $conf{'IPADDR_END'};
		$b->{'num'} = $conf{'CLONENUM_START'};
		$b->{'up'} = 1;
		$b->{'edit'} = 1;
		$b->{'desc'} = $conf{'NAME'};
		$b->{'index'} = scalar(@rv);
		$b->{'file'} = "$net_scripts_dir/$f";
		push(@rv, $b);
		}
	elsif ($f !~ /\.(bak|old)$/i && $f =~ /^ifcfg-([a-zA-Z_0-9:\.\-]+)$/) {
		# Normal interface
		my $fname = $1;
		&read_env_file("$net_scripts_dir/$f", \%conf);
		if ($conf{'DEVICE'}) {
			# Device is set in the file
			$b->{'fullname'} = $conf{'DEVICE'};
			}
		elsif (&iface_type($fname) ne $text{'ifcs_unknown'}) {
			# Filename looks like a regular device
			$b->{'fullname'} = $fname;
			}
		elsif ($conf{'HWADDR'}) {
			# Filename is something odd, like Auto_Ethernet .. so
			# lookup real device by MAC
			if (!@active) {
				@active = &active_interfaces(1);
				}
			my ($a) = grep { lc($_->{'ether'}) eq
					 lc($conf{'HWADDR'}) &&
					 $_->{'name'} !~ /^br/ } @active;
			next if (!$a);
			$b->{'fullname'} = $a->{'fullname'};
			# XXX virtuals?
			}
		else {
			# No idea what to do here, probably isn't even an
			# interface file
			next;
			}
		if ($b->{'fullname'} =~ /(\S+):(\d+)/) {
			$b->{'name'} = $1;
			$b->{'virtual'} = $2;
			}
		else {
			$b->{'name'} = $b->{'fullname'};
			}
		if ($b->{'fullname'} =~ /(\S+)\.(\d+)/) {
			my ($k, $v) = split(/\./, $b->{'fullname'});
			$b->{'physical'} = $k;
			$b->{'vlanid'} = $v;
			$b->{'vlan'} = 1;
			}
		$b->{'up'} = defined($conf{'ONPARENT'}) &&
			     $b->{'virtual'} ne '' ?
				($conf{'ONPARENT'} eq 'yes') :
				($conf{'ONBOOT'} eq 'yes');
		$b->{'address'} = $conf{'IPADDR'} || $conf{'IPADDR0'};
		$b->{'netmask'} = $conf{'NETMASK'} || $conf{'NETMASK0'};
		if (!$conf{'NETMASK'} && $conf{'PREFIX'}) {
			$b->{'netmask'} = &prefix_to_mask($conf{'PREFIX'});
			}
		elsif (!$conf{'NETMASK'} && $conf{'PREFIX0'}) {
			$b->{'netmask'} = &prefix_to_mask($conf{'PREFIX0'});
			}
		$b->{'broadcast'} = $conf{'BROADCAST'};
		$b->{'gateway'} = $conf{'GATEWAY'};
		$b->{'gateway6'} = $conf{'IPV6_DEFAULTGW'};
		$b->{'mtu'} = $conf{'MTU'};
		if ($b->{'fullname'} =~ /^bond/) {
			$b->{'partner'} = &get_teaming_partner($conf{'DEVICE'});
			}
                my @values = split(/\s+/, $conf{'BONDING_OPTS'});
                foreach my $val (@values) {
                         my ($k, $v) = split(/=/, $val, 2);
				if ($k eq "mode") {
					$b->{'mode'} = $v;
					}
				elsif ($k eq "miimon") {
					$b->{'miimon'} = $v;
					}
				elsif ($k eq "updelay") {
					$b->{'updelay'} = $v;
					}
				elsif ($k eq "downdelay") {
					$b->{'downdelay'} = $v;
					}
                        }
		$b->{'ether'} = $conf{'MACADDR'};
		$b->{'dhcp'} = ($conf{'BOOTPROTO'} eq 'dhcp');
		$b->{'bootp'} = ($conf{'BOOTPROTO'} eq 'bootp');
		my @ip6s;
		push(@ip6s, [ split(/\//, $conf{'IPV6ADDR'}) ])
			if ($conf{'IPV6ADDR'});
		push(@ip6s, map { [ split(/\//, $_) ] }
				split(/\s+/, $conf{'IPV6ADDR_SECONDARIES'}));
		if (@ip6s) {
			# Static IPv6 addresses
			$b->{'address6'} = [ map { $_->[0] } @ip6s ];
			$b->{'netmask6'} = [ map { $_->[1] } @ip6s ];
			}
		elsif (lc($conf{'IPV6INIT'}) eq 'yes') {
			$b->{'auto6'} = 1;
			}
		$b->{'edit'} = ($b->{'name'} !~ /^ppp|irlan/);
		$b->{'desc'} = $conf{'NAME'};
		$b->{'index'} = scalar(@rv);
		$b->{'file'} = "$net_scripts_dir/$f";
		if ($conf{'BRIDGE'}) {
			$bridge_map{$conf{'BRIDGE'}} = $b->{'fullname'};
			}
		push(@rv, $b);

		# Extra IPADDRn lines in the config are virtual IPs
		my $i = 0;
		while(defined($conf{'IPADDR'.($i+1)})) {
			my $acfg = { 'name' => $b->{'name'},
				     'virtual' => $i,
				     'fullname' => $b->{'name'}.":".$i,
				     'file' => $b->{'file'},
				     'parent' => $b->{'fullname'},
				     'edit' => 1,
				     'up' => 1, };
			$acfg->{'address'} = $conf{'IPADDR'.($i+1)};
			$acfg->{'netmask'} = $conf{'NETMASK'.($i+1)} ||
				&prefix_to_mask($conf{'PREFIX'.($i+1)}) ||
				$b->{'netmask'};
			$acfg->{'index'} = scalar(@rv);
			push(@rv, $acfg);
			$i++;
			}
		}
	}
closedir(CONF);
foreach my $b (@rv) {
	if ($b->{'fullname'} =~ /^br\d+$/) {
		$b->{'bridge'} = 1;
		$b->{'bridgeto'} = $bridge_map{$b->{'fullname'}};
		}
	}
return @rv;
}

# save_bond_interface(device, master)
# Create or update a boot-time bond slave interface
sub save_bond_interface
{
local(%conf);
&lock_file("$net_scripts_dir/ifcfg-$_[0]");
$conf{'DEVICE'} = $_[0];
$conf{'BOOTPROTO'} = none;
$conf{'ONBOOT'} = yes;
$conf{'MASTER'} = $_[1];
$conf{'SLAVE'} = "yes";
$conf{'USERCTL'} = "no";
&write_env_file("$net_scripts_dir/ifcfg-$_[0]", \%conf);
&unlock_file("$net_scripts_dir/ifcfg-$_[0]");
}

# save_interface(&details)
# Create or update a boot-time interface
sub save_interface
{
my ($b) = @_;
my $pmode = $b->{'parent'} && $b->{'virtual'} ne '' ||
	    $gconfig{'os_version'} >= 16 && $b->{'virtual'} ne '';
my $name = $b->{'range'} ne "" ? $b->{'name'}."-range".$b->{'range'} :
	   $b->{'virtual'} ne "" ? $b->{'name'}.":".$b->{'virtual'} :
	   $b->{'vlanid'} ne "" ? $b->{'physical'}.".".$b->{'vlanid'}
				: $b->{'name'};
if ($pmode) {
	# Virtual interface being updated in it's parent's config file
	$name =~ s/:\d+$//;
	my $file = $b->{'file'} || "$net_scripts_dir/ifcfg-$name";
	&lock_file($file);
	&read_env_file($file, \%conf);
	my $n = $b->{'virtual'} + 1;
	$conf{'IPADDR'.$n} = $b->{'address'};
	$conf{'PREFIX'.$n} = &mask_to_prefix($b->{'netmask'});
	delete($conf{'NETMASK'.$n});
	&write_env_file($file, \%conf);
	&unlock_file($file);
	$b->{'parent'} ||= $b->{'name'};
	}
else {
	# Interface has it's own file
	local(%conf);
	my $file = $b->{'file'} || "$net_scripts_dir/ifcfg-$name";
	&lock_file($file);
	&read_env_file($file, \%conf);
	if ($b->{'range'} ne "") {
		# Special case - saving a range
		$conf{'IPADDR_START'} = $b->{'start'};
		$conf{'IPADDR_END'} = $b->{'end'};
		$conf{'CLONENUM_START'} = $b->{'num'};
		}
	else {
		# Saving a normal interface
		$conf{'DEVICE'} = $name;
		my $pfx = $conf{'IPADDR0'} ? '0' : '';
		$conf{'IPADDR'.$pfx} = $b->{'address'};
		$conf{'NETMASK'.$pfx} = $b->{'netmask'};
		delete($conf{'PREFIX'.$pfx});
		if ($b->{'address'} && $b->{'netmask'}) {
			$conf{'NETWORK'.$pfx} = &compute_network($b->{'address'},
								 $b->{'netmask'});
			}
		else {
			$conf{'NETWORK'.$pfx} = '';
			}
		$conf{'BROADCAST'.$pfx} = $b->{'broadcast'};
		if ($b->{'gateway'}) {
			$conf{'GATEWAY'} = $b->{'gateway'};
			}
		else {
			delete($conf{'GATEWAY'});
			}
		if ($b->{'gateway6'}) {
			$conf{'IPV6_DEFAULTGW'} = $b->{'gateway6'};
			}
		else {
			delete($conf{'IPV6_DEFAULTGW'});
			}
		$conf{'MTU'} = $b->{'mtu'};
		$conf{'MACADDR'} = $b->{'ether'};
		$conf{'ONBOOT'} = $b->{'up'} ? "yes" : "no";
		$conf{'ONPARENT'} = $b->{'up'} ? "yes" : "no"
			if ($b->{'virtual'} ne '');
		$conf{'BOOTPROTO'} = $b->{'bootp'} ? "bootp" :
				     $b->{'dhcp'} ? "dhcp" : "none";
		delete($conf{'IPV6ADDR'});
		delete($conf{'IPV6ADDR_SECONDARIES'});
		my @ip6s;
		for(my $i=0; $i<@{$b->{'address6'}}; $i++) {
			push(@ip6s, $b->{'address6'}->[$i]."/".
				    $b->{'netmask6'}->[$i]);
			}
		if ((@ip6s || $b->{'auto6'}) && lc($conf{'IPV6INIT'}) ne 'yes') {
			$conf{'IPV6INIT'} = 'yes';
			}
		elsif (!@ip6s && !$b->{'auto6'}) {
			$conf{'IPV6INIT'} = 'no';
			}
		if (@ip6s) {
			$conf{'IPV6ADDR'} = shift(@ip6s);
			$conf{'IPV6ADDR_SECONDARIES'} = join(" ", @ip6s);
			}
		if ($b->{'fullname'} =~ /^br(\d+)$/) {
			&has_command("brctl") || &has_command("ip") ||
				&error("Bridges cannot be created unless the ".
				       "brctl command is installed");
			$conf{'TYPE'} = 'Bridge';
			}
		if ($b->{'fullname'} =~ /^bond(\d+)$/) {
			$conf{'BONDING_OPTS'} = "mode=$b->{'mode'}";
			if ($b->{'miimon'}) {
				$conf{'BONDING_OPTS'} .= " miimon=$b->{'miimon'}";
				}
			if ($b->{'updelay'}) {
				$conf{'BONDING_OPTS'} .= " updelay=$b->{'updelay'}";
				}
			if ($b->{'downdelay'}) {
				$conf{'BONDING_OPTS'} .= " downdelay=$b->{'downdelay'}";
				}

			my @values = split(/\s+/, $b->{'partner'});
			foreach my $val (@values) {
				&save_bond_interface($val, $b->{'fullname'});
				}
			}
		if ($b->{'vlan'} == 1) {
			$conf{'VLAN'} = "yes";
			}
		}
	$conf{'NAME'} = $b->{'desc'};
	if (!-r $file) {
		# New interfaces shouldn't be controller by network manager
		$conf{'NM_CONTROLLED'} = 'no';
		}
	&write_env_file($file, \%conf);

	# If this is a bridge, set BRIDGE in real interface
	if ($b->{'bridge'}) {
		foreach my $efile (glob("$net_scripts_dir/ifcfg-e*")) {
			my %bconf;
			&lock_file($efile);
			&read_env_file($efile, \%bconf);
			if ($bconf{'DEVICE'} eq $b->{'bridgeto'} &&
			    $b->{'bridgeto'}) {
				# Correct device for bridge
				$bconf{'BRIDGE'} = $b->{'fullname'};
				&write_env_file($efile, \%bconf);
				}
			elsif ($bconf{'BRIDGE'} eq $b->{'fullname'} &&
			       $bconf{'BRIDGE'}) {
				# Was using this bridge, shouldn't be
				delete($bconf{'BRIDGE'});
				&write_env_file($efile, \%bconf);
				}
			&unlock_file($efile);
			}
		}

	# Link to devices directory
	if (-d &translate_filename($devices_dir)) {
		&link_file($file, "$devices_dir/ifcfg-$name");
		}
	&unlock_file($file);

	# Make sure IPv6 is enabled globally
	if (@{$b->{'address6'}}) {
		my %conf;
		&lock_file($network_config);
		&read_env_file($network_config, \%conf);
		if (lc($conf{'NETWORKING_IPV6'}) ne 'yes') {
			$conf{'NETWORKING_IPV6'} = 'yes';
			&write_env_file($network_config, \%conf);
			}
		&unlock_file($network_config);
		}
	}
}

# delete_interface(&details)
# Delete a boot-time interface
sub delete_interface
{
my ($b) = @_;
my $file = $b->{'file'} || "$net_scripts_dir/ifcfg-$name";
if ($b->{'virtual'} ne '' && $b->{'parent'}) {
	# Virtual interface in it's parent's file .. just remove the IP
	my %conf;
	my $i = $b->{'virtual'}+1;
	&lock_file($file);
	&read_env_file($file, \%conf);
	for($n=$i; defined($conf{'IPADDR'.$n}); $n++) {
		$conf{'IPADDR'.$n} = $conf{'IPADDR'.($n+1)};
		$conf{'NETMASK'.$n} = $conf{'NETMASK'.($n+1)};
		$conf{'PREFIX'.$n} = $conf{'PREFIX'.($n+1)};
		delete($conf{'IPADDR'.($n+1)});
		delete($conf{'NETMASK'.($n+1)});
		delete($conf{'PREFIX'.($n+1)});
		}
	&write_env_file($file, \%conf);
	&unlock_file($file);
	}
else {
	# Interface has it's own file that should be deleted
	my $name = $b->{'range'} ne "" ? $b->{'name'}."-range".
					 $b->{'range'} :
		   $b->{'virtual'} ne "" ? $b->{'name'}.":".$b->{'virtual'}
					 : $b->{'name'};
	&lock_file($file);
	&unlink_file("$net_scripts_dir/ifcfg-$name");
	if (-d &translate_filename($devices_dir)) {
		&unlink_file("$devices_dir/ifcfg-$name");
		}
	&unlock_file($file);
	}
}

# can_edit(what)
# Can some boot-time interface parameter be edited?
sub can_edit
{
if ($supports_mtu) {
	return 1;
	}
else {
	return $_[0] ne "mtu";
	}
}

sub can_broadcast_def
{
return 1;
}

# valid_boot_address(address)
# Is some address valid for a bootup interface
sub valid_boot_address
{
return &check_ipaddress($_[0]);
}

# get_hostname()
sub get_hostname
{
my %conf;
&read_env_file($network_config, \%conf);
if ($conf{'HOSTNAME'}) {
	return $conf{'HOSTNAME'};
	}
return &get_system_hostname();
}

# save_hostname(name)
sub save_hostname
{
my $old = &get_hostname();
my %conf;
&system_logged("hostname ".quotemeta($_[0])." >/dev/null 2>&1");
&open_lock_tempfile(HOST, ">/etc/HOSTNAME");
&print_tempfile(HOST, $_[0],"\n");
&close_tempfile(HOST);
&lock_file($network_config);
&read_env_file($network_config, \%conf);
$conf{'HOSTNAME'} = $_[0];
&write_env_file($network_config, \%conf);
&unlock_file($network_config);

# If any ifcfg-XXX files have the old hostname in DHCP_HOSTNAME, fix it
foreach my $b (&boot_interfaces()) {
	my %ifc;
	&read_env_file($b->{'file'}, \%ifc);
	if ($ifc{'DHCP_HOSTNAME'} eq $old) {
		$ifc{'DHCP_HOSTNAME'} = $_[0];
		&lock_file($b->{'file'});
		&write_env_file($b->{'file'}, \%ifc);
		&unlock_file($b->{'file'});
		}
	}

# Update /etc/hostname if exists
if (-r "/etc/hostname") {
	&open_lock_tempfile(HOST, ">/etc/hostname");
	&print_tempfile(HOST, $_[0],"\n");
	&close_tempfile(HOST);
	}

# Use the hostnamectl command as well
if (&has_command("hostnamectl")) {
	&system_logged("hostnamectl set-hostname ".quotemeta($_[0]).
		       " >/dev/null 2>&1");
	}

undef(@main::get_system_hostname);	# clear cache
}

# get_domainname()
sub get_domainname
{
my $d;
&execute_command("domainname", undef, \$d, undef);
chop($d);
return $d;
}

# save_domainname(domain)
sub save_domainname
{
my %conf;
&execute_command("domainname ".quotemeta($_[0]));
&read_env_file($network_config, \%conf);
if ($_[0]) {
	$conf{'NISDOMAIN'} = $_[0];
	}
else {
	delete($conf{'NISDOMAIN'});
	}
&write_env_file($network_config, \%conf);
}

sub routing_config_files
{
my @rv = ( $network_config, $sysctl_config );
if (!$supports_dev_routes) {
	push(@rv, $static_route_config);
	}
else {
	foreach my $dir ($devices_dir, $net_scripts_dir) {
		opendir(DIR, &translate_filename($dir));
		while(my $f = readdir(DIR)) {
			if ($f =~ /^([a-z]+\d*(\.\d+)?(:\d+)?)\.route$/ ||
			    $f =~ /^route\-([a-z]+\d*(\.\d+)?(:\d+)?)$/) {
				push(@rv, "$dir/$f");
				}
			}
		closedir(DIR);
		}
	}
return @rv;
}

sub network_config_files
{
return ( "/etc/HOSTNAME", $network_config );
}

sub routing_input
{
my (%conf, @st, @hr, %sysctl);
&read_env_file($network_config, \%conf);
if (!$supports_dev_gateway) {
	# show default router and device
	print &ui_table_row($text{'routes_default'},
		&ui_opt_textbox("gateway", $conf{'GATEWAY'}, 15,
				$text{'routes_none'}));

	print &ui_table_row($text{'routes_device2'},
		&ui_opt_textbox("gatewaydev", $conf{'GATEWAYDEV'}, 6,
			        $text{'routes_none'}));
	}
else {
	# multiple default routers can exist, one per interface
	my @table;
	my $r = 0;
	if ($conf{'GATEWAY'} || $conf{'IPV6_DEFAULTGW'}) {
		push(@table, [
		    &interface_sel("gatewaydev$r",
				   $conf{'GATEWAYDEV'} ||
				     $conf{'IPV6_DEFAULTDEV'} || "*"),
		    &ui_textbox("gateway$r", $conf{'GATEWAY'}, 15),
		    &ui_textbox("gateway6$r", $conf{'IPV6_DEFAULTGW'}, 30),
		    ]);
		$r++;
		}
	my @boot = &boot_interfaces();
	foreach $b (grep { $_->{'gateway'} && $_->{'virtual'} eq '' } @boot) {
		push(@table, [ &interface_sel("gatewaydev$r", $b->{'name'}),
			       &ui_textbox("gateway$r", $b->{'gateway'}, 15),
			       &ui_textbox("gateway6$r", $b->{'gateway6'}, 30),
			     ]);
		$r++;
		}
	push(@table, [ &interface_sel("gatewaydev$r"),
		       &ui_textbox("gateway$r", undef, 15),
		       &ui_textbox("gateway6$r", undef, 30), ]);
	print &ui_table_row($text{'routes_default2'},
		&ui_columns_table(
			[ $text{'routes_ifc'}, $text{'routes_gateway'},
			  $text{'routes_gateway6'} ],
			undef, \@table, undef, 1));
	}

# show routing
if ($gconfig{'os_version'} < 7.0) {
	print &ui_table_row($text{'routes_forward'},
		&ui_yesno_radio("forward",
				$conf{'FORWARD_IPV4'} eq "yes" ? 1 : 0));
	}
else {
	&read_env_file($sysctl_config, \%sysctl);
	print &ui_table_row($text{'routes_forward'},
		&ui_yesno_radio("forward",
				$sysctl{'net.ipv4.ip_forward'} ? 1 : 0));
	}

if (!$supports_dev_routes) {
	# get static routes from single file
	&open_readfile(STATIC, $static_route_config);
	while(<STATIC>) {
		if (/(\S+)\s+net\s+(\S+)\s+netmask\s+(\S+)\s+gw\s+(\S+)/) {
			push(@st, [ $1, $2, $3, $4 ]);
			}
		elsif (/(\S+)\s+host\s+(\S+)\s+gw\s+(\S+)/) {
			push(@st, [ $1, $2, '255.255.255.255', $3 ]);
			}
		elsif (/(\S+)\s+net\s+(\S+)\s+netmask\s+(\S+)/) {
			push(@hr, [ $1, $2, $3 ]);
			}
		elsif (/(\S+)\s+host\s+(\S+)/) {
			push(@hr, [ $1, $2, '255.255.255.255' ]);
			}
		}
	close(STATIC);
	}
else {
	# get static routes from per-interface files
	my $f;
	opendir(DIR, &translate_filename($route_files_dir));
	while($f = readdir(DIR)) {
		if ($f =~ /^([a-z]+\d*(\.\d+)?(:\d+)?)\.route$/ ||
		    $f =~ /^route\-([a-z]+\d*(\.\d+)?(:\d+)?)$/) {
			my $dev = $1;
			my (%rfile, $i);
			&read_env_file("$route_files_dir/$f", \%rfile);
			for($i=0; defined($rfile{"ADDRESS$i"}); $i++) {
				if ($rfile{"GATEWAY$i"}) {
					push(@st, [ $dev, $rfile{"ADDRESS$i"},
							  $rfile{"NETMASK$i"},
							  $rfile{"GATEWAY$i"}]);
					}
				else {
					push(@hr, [ $dev, $rfile{"ADDRESS$i"},
							  $rfile{"NETMASK$i"} ||
							  "255.255.255.255" ]);
					}
				}
			}
		}
	closedir(DIR);
	}

# Show static network routes
my @table;
for($i=0; $i<=@st; $i++) {
	my $st = $st[$i];
	push(@table, [ &ui_textbox("dev_$i", $st->[0], 6),
		       &ui_textbox("net_$i", $st->[1], 15),
		       &ui_textbox("netmask_$i", $st->[2], 15),
		       &ui_textbox("gw_$i", $st->[3], 15) ]);
	}
print &ui_table_row($text{'routes_static'},
	&ui_columns_table([ $text{'routes_ifc'}, $text{'routes_net'},
			    $text{'routes_mask'}, $text{'routes_gateway'} ],
			  undef, \@table, undef, 1));

# Show static host routes
my @table;
for($i=0; $i<=@hr; $i++) {
	my $st = $hr[$i];
	push(@table, [ &ui_textbox("ldev_$i", $st->[0], 6),
		       &ui_textbox("lnet_$i", $st->[1], 15),
		       &ui_textbox("lnetmask_$i", $st->[2], 15) ]);
	}
print &ui_table_row($text{'routes_local'},
	&ui_columns_table([ $text{'routes_ifc'}, $text{'routes_net'},
			    $text{'routes_mask'} ],
			  undef, \@table, undef, 1));
}

sub parse_routing
{
my (%conf, @st, %sysctl, %st, @boot);
&lock_file($network_config);
&read_env_file($network_config, \%conf);
if (!$supports_dev_gateway) {
	# Just update a single file
	if ($in{'gateway_def'}) { delete($conf{'GATEWAY'}); }
	elsif (!&to_ipaddress($in{'gateway'})) {
		&error(&text('routes_edefault', &html_escape($in{'gateway'})));
		}
	else { $conf{'GATEWAY'} = $in{'gateway'}; }

	if ($in{'gatewaydev_def'}) { delete($conf{'GATEWAYDEV'}); }
	elsif ($in{'gatewaydev'} !~ /^\S+$/) {
		&error(&text('routes_edevice', &html_escape($in{'gatewaydev'})));
		}
	else { $conf{'GATEWAYDEV'} = $in{'gatewaydev'}; }
	}
else {
	# Multiple defaults can be specified!
	my ($r, $b);
	@boot = grep { $->{'virtual'} eq '' } &boot_interfaces();
	foreach $b (@boot) {
		delete($b->{'gateway'});
		}
	delete($conf{'GATEWAY'});
	delete($conf{'GATEWAYDEV'});
	delete($conf{'IPV6_DEFAULTDEV'});
	delete($conf{'IPV6_DEFAULTGW'});

	for($r=0; defined($in{"gatewaydev$r"}); $r++) {
		next if (!$in{"gatewaydev$r"});
		&check_ipaddress($in{"gateway$r"}) ||
			&error(&text('routes_edefault2', $r+1));
		if ($in{"gatewaydev$r"} eq "*") {
			# For any interface
			$conf{'GATEWAY'} && &error(&text('routes_eclash'));
			$conf{'GATEWAY'} = $in{"gateway$r"};
			$conf{'IPV6_DEFAULTGW'} &&
				&error(&text('routes_eclash6'));
			$conf{'IPV6_DEFAULTGW'} = $in{"gateway6$r"};
			}
		else {
			# For a specific interface
			my ($b) = grep { $_->{'fullname'} eq
					    $in{"gatewaydev$r"} } @boot;
			$b->{'gateway'} && &error(&text('routes_eclash2',
							&html_escape($in{"gatewaydev$r"})));
			$b->{'gateway'} = $in{"gateway$r"};
			$b->{'gateway6'} = $in{"gateway6$r"};
			}
		}
	}

if ($gconfig{'os_version'} < 7.0) {
	if ($in{'forward'}) { $conf{'FORWARD_IPV4'} = 'yes'; }
	else { $conf{'FORWARD_IPV4'} = 'no'; }
	}
else {
	&lock_file($sysctl_config);
	&read_env_file($sysctl_config, \%sysctl);
	$sysctl{'net.ipv4.ip_forward'} = $in{'forward'};
	}

# Parse static and my routes
for($i=0; defined($dev = $in{"dev_$i"}); $i++) {
	next if (!$dev);
	$net = $in{"net_$i"}; $netmask = $in{"netmask_$i"}; $gw = $in{"gw_$i"};
	$dev =~ /^\S+$/ || &error(&text('routes_edevice', &html_escape($dev)));
	&to_ipaddress($net) || &error(&text('routes_enet', &html_escape($net)));
	&check_ipaddress($netmask) || &error(&text('routes_emask', &html_escape($netmask)));
	&to_ipaddress($gw) || &error(&text('routes_egateway', &html_escape($gw)));
	if ($netmask eq "255.255.255.255") {
		push(@st, "$dev host $net gw $gw\n");
		}
	else {
		push(@st, "$dev net $net netmask $netmask gw $gw\n");
		}
	push(@{$st{$dev}}, [ $net, $netmask, $gw ]);
	}
for($i=0; defined($dev = $in{"ldev_$i"}); $i++) {
	$net = $in{"lnet_$i"}; $netmask = $in{"lnetmask_$i"};
	next if (!$dev && !$net);
	$dev =~ /^\S+$/ || &error(&text('routes_edevice', &html_escape($dev)));
	&to_ipaddress($net) ||
	    $net =~ /^(\S+)\/(\d+)$/ && &to_ipaddress("$1") ||
		&error(&text('routes_enet', &html_escape($net)));
	&check_ipaddress($netmask) || &error(&text('routes_emask', &html_escape($netmask)));
	if ($netmask eq "255.255.255.255") {
		push(@st, "$dev host $net\n");
		}
	else {
		push(@st, "$dev net $net netmask $netmask\n");
		}
	push(@{$st{$dev}}, [ $net, $netmask ]);
	}
if (!$supports_dev_routes) {
	# Write to a single file
	&open_lock_tempfile(STATIC, ">$static_route_config");
	&print_tempfile(STATIC, @st);
	&close_tempfile(STATIC);
	}
else {
	# Write to one file per interface (delete old, then save new/updated)
	my $f;
	opendir(DIR, &translate_filename($route_files_dir));
	while($f = readdir(DIR)) {
		if (($f =~ /^([a-z]+\d*(\.\d+)?(:\d+)?)\.route$/ ||
		     $f =~ /^route\-([a-z]+\d*(\.\d+)?(:\d+)?)$/) && !$st{$1}) {
			&unlink_logged("$devices_dir/$f");
			&unlink_logged("$net_scripts_dir/$f");
			}
		}
	closedir(DIR);
	foreach $dev (keys %st) {
		$f = $supports_route_dev ? "route-$dev" : "$dev.route";
		my (%rfile, $i);
		for($i=0; $i<@{$st{$dev}}; $i++) {
			$rfile{"ADDRESS$i"} = $st{$dev}->[$i]->[0];
			$rfile{"NETMASK$i"} = $st{$dev}->[$i]->[1];
			$rfile{"GATEWAY$i"} = $st{$dev}->[$i]->[2];
			}
		&lock_file("$route_files_dir/$f");
		&write_env_file("$route_files_dir/$f", \%rfile);
		&unlock_file("$route_files_dir/$f");
		if ($route_files_dir ne $net_scripts_dir) {
			&lock_file("$net_scripts_dir/$f");
			&link_file("$route_files_dir/$f",
				   "$net_scripts_dir/$f");
			&unlock_file("$net_scripts_dir/$f");
			}
		}
	}
&write_env_file($network_config, \%conf);
&unlock_file($network_config);
if (%sysctl) {
	&write_env_file($sysctl_config, \%sysctl);
	&unlock_file($sysctl_config);
	}
if (@boot) {
	my $b;
	foreach $b (@boot) {
		&save_interface($b);
		}
	}
}

# interface_sel(name, value)
# Returns a menu for all boot-time interfaces
sub interface_sel
{
my ($name, $value) = @_;
my @opts = ( [ "", "&nbsp;" ],
		[ "*", $text{'routes_any'} ] );
@boot_interfaces_cache = sort { $a->{'fullname'} cmp $b->{'fullname'} }
	&boot_interfaces() if (!@boot_interfaces_cache);
foreach $b (@boot_interfaces_cache) {
	push(@opts, [ $b->{'fullname'}, $b->{'fullname'} ]);
	}
return &ui_select($name, $value, \@opts);
}

# apply_network()
# Apply the interface and routing settings
sub apply_network
{
&foreign_require("init");
if (&init::action_status("network")) {
	# Older system that has an init.d/network script
	my $err = &init::restart_action("network");
	&error($err) if ($err);
	}
else {
	# Probably CentOS 8 that has no apply command
	foreach my $b (&boot_interfaces()) {
		&apply_interface($b) if ($b->{'virtual'} eq '');
		}
	}
}

# apply_interface(&iface)
# Calls an OS-specific function to make a boot-time interface active
sub apply_interface
{
my ($i) = @_;
my $out;
if ($i->{'parent'} && $i->{'virtual'} ne '') {
	$out = &backquote_logged(
		"cd / ; ".
		"ifup ".quotemeta($i->{'name'})." 2>&1 </dev/null");
	}
else {
	$out = &backquote_logged(
		"cd / ; ".
		"ifdown ".quotemeta($i->{'fullname'}).
			" >/dev/null 2>&1 </dev/null ; ".
		"ifup ".quotemeta($i->{'fullname'}).
			" 2>&1 </dev/null");
	}
return $? || $out =~ /error/i ? $out : undef;
}

# unapply_interface(&iface)
# Calls an OS-specific function to make a boot-time interface inactive
#sub unapply_interface
#{
#my ($i) = @_;
#my $out = &backquote_logged(
#	"cd / ; ifdown ".quotemeta($i->{'fullname'})." 2>&1 </dev/null");
#return $? ? $out : undef;
#}

# get_default_gateway()
# Returns the default gateway IP (if one is set) and device (if set) boot time
# settings.
sub get_default_gateway
{
my %conf;
&read_env_file($network_config, \%conf);
my @boot = &boot_interfaces();
my ($gifc) = grep { $_->{'gateway'} && $_->{'virtual'} eq '' } @boot;
return ( $gifc->{'gateway'}, $gifc->{'fullname'} ) if ($gifc);
return $conf{'GATEWAY'} ? ( $conf{'GATEWAY'}, $conf{'GATEWAYDEV'} ) : ( );
}

# set_default_gateway(gateway, device)
# Sets the default gateway to the given IP accessible via the given device,
# in the boot time settings.
sub set_default_gateway
{
my ($gw, $gwdev) = @_;
my %conf;
&lock_file($network_config);
&read_env_file($network_config, \%conf);
if (!$supports_dev_gateway) {
	# Just update the network config file
	if ($gw) {
		$conf{'GATEWAY'} = $gw;
		$conf{'GATEWAYDEV'} = $gwdev;
		}
	else {
		delete($conf{'GATEWAY'});
		delete($conf{'GATEWAYDEV'});
		}
	}
else {
	# Set the gateway in the specified interface file, and clear the rest
	my @boot = grep { $->{'virtual'} eq '' } &boot_interfaces();
	foreach $b (@boot) {
		delete($b->{'gateway'});
		if ($gw && $b->{'fullname'} eq $gwdev) {
			$b->{'gateway'} = $gw;
			&save_interface($b);
			}
		}
	delete($conf{'GATEWAY'});
	delete($conf{'GATEWAYDEV'});
	}
&write_env_file($network_config, \%conf);
&unlock_file($network_config);
}

# get_default_ipv6_gateway()
# Returns the default gateway IPv6 address (if one is set) and device (if set)
# boot time settings.
sub get_default_ipv6_gateway
{
my %conf;
&read_env_file($network_config, \%conf);
my @boot = &boot_interfaces();
my ($gifc) = grep { $_->{'gateway6'} && $_->{'virtual'} eq '' } @boot;
return ( $gifc->{'gateway6'}, $gifc->{'fullname'} ) if ($gifc);
return $conf{'IPV6_DEFAULTGW'} ? ( $conf{'IPV6_DEFAULTGW'},
				   $conf{'IPV6_DEFAULTDEV'} ) : ( );
}

# set_default_ipv6_gateway(gateway, device)
# Sets the default gateway to the given IPv6 address accessible via the given
# device, in the boot time settings.
sub set_default_ipv6_gateway
{
&lock_file($network_config);
&read_env_file($network_config, \%conf);
my @boot = grep { $->{'virtual'} eq '' } &boot_interfaces();
foreach $b (@boot) {
	delete($b->{'gateway6'});
	if ($_[0] && $b->{'fullname'} eq $_[1]) {
		$b->{'gateway6'} = $_[0];
		&save_interface($b);
		}
	}
delete($conf{'IPV6_DEFAULTGW'});
delete($conf{'IPV6_DEFAULTDEV'});
&write_env_file($network_config, \%conf);
&unlock_file($network_config);
}

# supports_ranges()
# Returns 1 for newer redhat versions
sub supports_ranges
{
return ($gconfig{'os_type'} eq 'redhat-linux' &&
	$gconfig{'os_version'} >= 7.3) ||
       ($gconfig{'os_type'} eq 'mandrake-linux' &&
	$gconfig{'os_version'} >= 8.0) ||
       ($gconfig{'os_type'} eq 'coherant-linux' &&
	$gconfig{'os_version'} >= 3.0);
}

sub supports_bonding
{
return $gconfig{'os_type'} eq 'redhat-linux' &&
       $gconfig{'os_version'} >= 13.0 &&
       &has_command("ifenslave");
}

sub supports_vlans
{
return $gconfig{'os_type'} eq 'redhat-linux' &&
	$gconfig{'os_version'} >= 13.0 &&
	&has_command("vconfig");
}


# range_input([&interface])
# Print HTML for a IP range interface
sub range_input
{
my $new = !$_[0];

# Range description
print &ui_table_row($text{'ifcs_desc'},
	&ui_textbox("desc", $_[0] ? $_[0]->{'desc'} : undef, 60));

# Base interface
my $ifaceinput;
if ($new) {
	$ifaceinput = &ui_select("iface", $_[0]->{'name'},
		[ map { $_->{'fullname'} } grep { $b->{'virtual'} eq '' }
		      &boot_interfaces() ]);
	}
else {
	$ifaceinput = "<tt>$_[0]->{'name'}</tt>";
	}
print &ui_table_row($text{'range_iface'}, $ifaceinput);

# Name for this range
print &ui_table_row($text{'range_name'},
	$new ? &ui_textbox("range", undef, 10)
	     : "<tt>$_[0]->{'range'}</tt>");

# Start
print &ui_table_row($text{'range_start'},
	&ui_textbox("start", $_[0]->{'start'}, 15));

# Stop
print &ui_table_row($text{'range_end'},
	&ui_textbox("end", $_[0]->{'end'}, 15));

# Base number
print &ui_table_row($text{'range_num'},
	&ui_textbox("num", $_[0]->{'num'}, 5));
}

# parse_range(&range, &in)
sub parse_range
{
my %in = %{$_[1]};
if ($in{'new'}) {
	$_[0]->{'name'} = $in{'iface'};
	$in{'range'} =~ /^[a-z0-9\.\_]+$/ || &error($text{'range_ename'});
	$_[0]->{'range'} = $in{'range'};
	$_[0]->{'fullname'} = $in{'iface'}."-range".$in{'range'};
	}
$_[0]->{'desc'} = $in{'desc'};

&check_ipaddress($in{'start'}) || &error($text{'range_estart'});
$_[0]->{'start'} = $in{'start'};

&check_ipaddress($in{'end'}) || &error($text{'range_eend'});
$_[0]->{'end'} = $in{'end'};

my @sip = split(/\./, $in{'start'});
my @eip = split(/\./, $in{'end'});
$sip[0] == $eip[0] && $sip[1] == $eip[1] && $sip[2] == $eip[2] ||
	&error($text{'range_eclass'});
$sip[3] <= $eip[3] || &error($text{'range_ebefore'});

$in{'num'} =~ /^\d+$/ || &error($text{'range_enum'});
$_[0]->{'num'} = $in{'num'};
}

# get_dhcp_hostname()
# Returns 0 if the hostname is not set by DHCP, 1 if it is, or -1 if this
# feature is not supported on this OS.
sub get_dhcp_hostname
{
return -1 if ($gconfig{'os_type'} ne 'redhat-linux' ||
	      $gconfig{'os_version'} < 11);
my @boot = &boot_interfaces();
my ($eth) = grep { $_->{'fullname'} =~ /^(eth|em)\d+$/ } @boot;
return -1 if (!$eth);
my %eth;
&read_env_file($eth->{'file'}, \%eth);
return $eth{'DHCP_HOSTNAME'} ne &get_system_hostname();
}

# save_dhcp_hostname(set)
# If called with a parameter of 0, the hostname is fixed and not set by
# DHCP. If called with 1, the hostname is chosen by DHCP.
sub save_dhcp_hostname
{
}

# get_teaming_partner(devicename)
# Gets the teamingpartners of a configured bond interface
sub get_teaming_partner
{
my ($g, $return);
opendir(CONF2, &translate_filename($net_scripts_dir));
while($g = readdir(CONF2)) {
        my %conf2;
        if ($g !~ /\.(bak|old)$/i && $g =~ /^ifcfg-([a-z0-9:\.]+)$/) {
                &read_env_file("$net_scripts_dir/$g", \%conf2);
                if ($conf2{'MASTER'} eq "$_[0]") {
			$return .= $conf2{'DEVICE'}." ";
                	}
        	}
	}
return $return;
}

sub boot_iface_hardware
{
return $_[0] =~ /^(eth|em)/;
}

# supports_address6([&iface])
# Returns 1 if managing IPv6 interfaces is supported
sub supports_address6
{
my ($iface) = @_;
return !$iface || $iface->{'virtual'} eq '';
}

# Returns 1, as boot-time interfaces on Redhat can exist without an IP (such as
# for bridging)
sub supports_no_address
{
return 1;
}

# Bridge interfaces can be created on redhat
sub supports_bridges
{
return 1;
}

# supports_dns_interface(&iface)
# Returns 1 if DNS servers can be set in interface config files
sub supports_dns_interface
{
my ($ifc) = @_;
return $ifc->{'DNS1'} || $gconfig{'os_version'} >= 15 &&
		         &iface_type($ifc->{'DEVICE'}) =~ /Ethernet/i;
}

# os_save_dns_config(&config)
# Updates DNSx lines in all network-scripts files that have them
sub os_save_dns_config
{
my ($conf) = @_;
my @boot = &boot_interfaces();
foreach my $b (@boot) {
	my %ifc;
	&read_env_file($b->{'file'}, \%ifc);
	next if (!&supports_dns_interface(\%ifc));
	&lock_file($b->{'file'});
	foreach my $k (keys %ifc) {
		delete($ifc{$k}) if ($k =~ /^DNS\d+$/);
		}
	&write_env_file($b->{'file'}, \%ifc);
	my $i = 1;
	foreach my $ns (@{$conf->{'nameserver'}}) {
		$ifc{'DNS'.$i} = $ns;
		$i++;
		}
	if (!@{$conf->{'nameserver'}}) {
		# Add an empty DNS1 line so that we know to update this file
		# later if DNS resolves come back
		$ifc{'DNS1'} = ''
		}
	my @d = @{$conf->{'domain'}};
	if (@d) {
		$ifc{'DOMAIN'} = $d[0];
		}
	else {
		delete($ifc{'DOMAIN'});
		}
	&write_env_file($b->{'file'}, \%ifc);
	&unlock_file($b->{'file'});
	}
return (0, 0);
}

1;


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 5.55 KB 0644
acl_security.pl File 3.08 KB 0755
apply.cgi File 184 B 0755
backup_config.pl File 1005 B 0755
cgi_args.pl File 752 B 0755
cobalt-linux-lib.pl File 32.85 KB 0755
coherent-linux-lib.pl File 32.85 KB 0755
config File 48 B 0644
config-ALL-linux File 48 B 0644
config-cygwin File 82 B 0644
config-freebsd File 48 B 0644
config-macos File 48 B 0644
config-netbsd File 48 B 0644
config-openbsd File 48 B 0644
config-solaris File 79 B 0644
config-syno-linux File 48 B 0644
config-unixware File 48 B 0644
config-windows File 78 B 0644
config.info File 193 B 0644
config.info.ca File 241 B 0644
config.info.cs File 205 B 0644
config.info.de File 219 B 0644
config.info.es File 175 B 0644
config.info.fa File 255 B 0644
config.info.fr File 246 B 0644
config.info.hu File 0 B 0644
config.info.ja File 68 B 0644
config.info.nl File 197 B 0644
config.info.no File 208 B 0644
config.info.pl File 240 B 0644
config.info.pt_BR File 229 B 0644
config.info.ru File 361 B 0644
config.info.sk File 225 B 0644
config.info.sv File 42 B 0644
config.info.tr File 65 B 0644
config.info.uk File 87 B 0644
config.info.zh File 43 B 0644
config.info.zh_TW File 44 B 0644
create_route.cgi File 1004 B 0755
cygwin-lib.pl File 11.28 KB 0755
debian-linux-lib.pl File 33.58 KB 0755
defaultacl File 114 B 0644
delete_aifcs.cgi File 537 B 0755
delete_bifcs.cgi File 1.44 KB 0755
delete_hosts.cgi File 523 B 0755
delete_ipnodes.cgi File 542 B 0755
delete_routes.cgi File 458 B 0755
edit_aifc.cgi File 5.09 KB 0755
edit_bifc.cgi File 10.42 KB 0755
edit_host.cgi File 1.13 KB 0755
edit_ipnode.cgi File 1.04 KB 0755
edit_range.cgi File 1.34 KB 0755
freebsd-lib.pl File 19.22 KB 0755
gentoo-linux-lib.pl File 8.47 KB 0755
index.cgi File 1.25 KB 0755
interface_chooser.cgi File 3.8 KB 0755
linux-lib.pl File 27.58 KB 0755
list_dns.cgi File 2.3 KB 0755
list_hosts.cgi File 1.36 KB 0755
list_ifcs.cgi File 7.96 KB 0755
list_ipnodes.cgi File 1.07 KB 0755
list_routes.cgi File 3.38 KB 0755
log_parser.pl File 1.24 KB 0755
macos-lib.pl File 11.57 KB 0755
mandrake-linux-lib.pl File 32.85 KB 0755
mod_aifc.cgi File 720 B 0755
module.info File 485 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 123 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 170 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 226 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 261 B 0644
module.info.ca File 127 B 0644
module.info.ca.auto File 25 B 0644
module.info.cs File 27 B 0644
module.info.cs.auto File 111 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 129 B 0644
module.info.de File 121 B 0644
module.info.de.auto File 19 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 229 B 0644
module.info.es File 30 B 0644
module.info.es.auto File 116 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 142 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 194 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 145 B 0644
module.info.fr File 30 B 0644
module.info.fr.auto File 128 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 161 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 148 B 0644
module.info.hu File 34 B 0644
module.info.hu.auto File 148 B 0644
module.info.it File 28 B 0644
module.info.it.auto File 112 B 0644
module.info.ja File 33 B 0644
module.info.ja.auto File 153 B 0644
module.info.ko File 28 B 0644
module.info.ko.auto File 105 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 157 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 157 B 0644
module.info.ms File 136 B 0644
module.info.ms.auto File 18 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 144 B 0644
module.info.nl File 29 B 0644
module.info.nl.auto File 105 B 0644
module.info.no File 31 B 0644
module.info.no.auto File 99 B 0644
module.info.pl File 122 B 0644
module.info.pl.auto File 19 B 0644
module.info.pt File 31 B 0644
module.info.pt.auto File 125 B 0644
module.info.pt_BR File 34 B 0644
module.info.pt_BR.auto File 131 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 143 B 0644
module.info.ru File 36 B 0644
module.info.ru.auto File 167 B 0644
module.info.sk File 28 B 0644
module.info.sk.auto File 113 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 140 B 0644
module.info.sv File 31 B 0644
module.info.sv.auto File 103 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 327 B 0644
module.info.tr File 30 B 0644
module.info.tr.auto File 130 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 223 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 210 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 170 B 0644
module.info.zh File 21 B 0644
module.info.zh.auto File 90 B 0644
module.info.zh_TW File 24 B 0644
module.info.zh_TW.auto File 96 B 0644
msc-linux-lib.pl File 32.85 KB 0755
net-lib.pl File 12 KB 0755
netbsd-lib.pl File 19.22 KB 0755
netplan-lib.pl File 21.01 KB 0644
open-linux-lib.pl File 7.2 KB 0755
openbsd-lib.pl File 12.6 KB 0755
openmamba-linux-lib.pl File 32.85 KB 0755
pardus-linux-lib.pl File 32.85 KB 0755
rbac-mapping File 180 B 0644
rc.inet1 File 1.95 KB 0644
redhat-linux-lib.pl File 32.85 KB 0755
save_aifc.cgi File 5.78 KB 0755
save_bifc.cgi File 10.12 KB 0755
save_dns.cgi File 3.65 KB 0755
save_host.cgi File 1.18 KB 0755
save_ipnode.cgi File 1.26 KB 0755
save_range.cgi File 1.42 KB 0755
save_routes.cgi File 283 B 0755
slackware-linux-9.1-ALL-lib.pl File 7.85 KB 0755
slackware-linux-lib.pl File 6.71 KB 0755
solaris-lib.pl File 20.79 KB 0755
suse-linux-8.0-lib.pl File 7.31 KB 0755
suse-linux-8.2-lib.pl File 7.31 KB 0755
suse-linux-9.0-lib.pl File 8.74 KB 0755
suse-linux-9.1-lib.pl File 8.74 KB 0755
suse-linux-9.2-ALL-lib.pl File 11.23 KB 0755
suse-linux-lib.pl File 9.08 KB 0755
system_info.pl File 2.42 KB 0644
trustix-linux-lib.pl File 32.85 KB 0755
turbo-linux-lib.pl File 32.85 KB 0755
united-linux-lib.pl File 7.31 KB 0755
unixware-lib.pl File 9.9 KB 0755
windows-lib.pl File 11.28 KB 0755