Project

General

Profile

« Previous | Next » 

Revision 5c87b716

Added by Stephen Beaver about 9 years ago

Merge pull request #2808 from NOYB/Firewall_/_Aliases_-_Remove_Personalizations

(cherry picked from commit e8ea99014a38450ae28d58a6daf0cc60a33ff1e0)

View differences:

src/usr/local/www/firewall_aliases.php
208 208
}
209 209

  
210 210
if (is_subsystem_dirty('aliases')) {
211
	print_apply_box(gettext("The alias list has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
211
	print_apply_box(gettext("The alias list has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
212 212
}
213 213

  
214 214
display_top_tabs($tab_array);
......
318 318
	<div class="infoblock">
319 319
		<?php print_info_box(gettext('Aliases act as placeholders for real hosts, networks or ports. They can be used to minimize the number ' .
320 320
			'of changes that have to be made if a host, network or port changes. <br />' .
321
			'You can enter the name of an alias instead of the host, network or port where indicated. The alias will be resolved according to the list above.' . '<br />' .
322
			'If an alias cannot be resolved (e.g. because you deleted it), the corresponding element (e.g. filter/NAT/shaper rule) will be considered invalid and skipped.'), 'info', false); ?>
321
			'The name of an alias can be entered instead of the host, network or port where indicated. The alias will be resolved according to the list above.' . '<br />' .
322
			'If an alias cannot be resolved (e.g. because it was deleted), the corresponding element (e.g. filter/NAT/shaper rule) will be considered invalid and skipped.'), 'info', false); ?>
323 323
	</div>
324 324
</div>
325 325

  
src/usr/local/www/firewall_aliases_edit.php
224 224
			$alias['url'] = $_POST['address0'];
225 225
			$alias['updatefreq'] = $_POST['address_subnet0'] ? $_POST['address_subnet0'] : 7;
226 226
			if (!is_URL($alias['url']) || empty($alias['url'])) {
227
				$input_errors[] = gettext("You must provide a valid URL.");
227
				$input_errors[] = gettext("A valid URL must be provided.");
228 228
			} elseif (!process_alias_urltable($alias['name'], $alias['url'], 0, true, true)) {
229 229
				$input_errors[] = gettext("Unable to fetch usable data from URL") . " " . htmlspecialchars($alias['url']);
230 230
			}
......
287 287
					$address = parse_aliases_file("{$temp_filename}/aliases", $_POST['type'], 5000);
288 288
					if ($address == null) {
289 289
						/* nothing was found */
290
						$input_errors[] = sprintf(gettext("You must provide a valid URL. Could not fetch usable data from '%s'."), $_POST['address' . $x]);
290
						$input_errors[] = sprintf(gettext("A valid URL must be provided. Could not fetch usable data from '%s'."), $_POST['address' . $x]);
291 291
					}
292 292
					mwexec("/bin/rm -rf " . escapeshellarg($temp_filename));
293 293
				} else {
......
594 594
$special_cidr_usage_text = gettext("The value after the \"/\" is the update frequency in days.");
595 595

  
596 596
$help = array(
597
	'network' => gettext("Networks are specified in CIDR format. Select the CIDR mask that pertains to each entry. /32 specifies a single IPv4 host, /128 specifies a single IPv6 host, /24 specifies 255.255.255.0, /64 specifies a normal IPv6 network, etc. Hostnames (FQDNs) may also be specified, using a /32 mask for IPv4 or /128 for IPv6. You may also enter an IP range such as 192.168.1.1-192.168.1.254 and a list of CIDR networks will be derived to fill the range."),
598
	'host' => gettext("Enter as many hosts as you would like. Hosts must be specified by their IP address or fully qualified domain name (FQDN). FQDN hostnames are periodically re-resolved and updated. If multiple IPs are returned by a DNS query, all are used. You may also enter an IP range such as 192.168.1.1-192.168.1.10 or a small subnet such as 192.168.1.16/28 and a list of individual IP addresses will be generated."),
599
	'port' => gettext("Enter as many ports as you wish. Port ranges can be expressed by separating with a colon."),
600
	'url' => gettext("Enter as many URLs as you wish. After saving we will download the URL and import the items into the alias. Use only with small sets of IP addresses (less than 3000)."),
601
	'url_ports' => gettext("Enter as many URLs as you wish. After saving we will download the URL and import the items into the alias. Use only with small sets of Ports (less than 3000)."),
602
	'urltable' => gettext("Enter a single URL containing a large number of IPs and/or Subnets. After saving we will download the URL and create a table file containing these addresses. This will work with large numbers of addresses (30,000+) or small numbers.") .
597
	'network' => gettext("Networks are specified in CIDR format. Select the CIDR mask that pertains to each entry. /32 specifies a single IPv4 host, /128 specifies a single IPv6 host, /24 specifies 255.255.255.0, /64 specifies a normal IPv6 network, etc. Hostnames (FQDNs) may also be specified, using a /32 mask for IPv4 or /128 for IPv6. An IP range such as 192.168.1.1-192.168.1.254 may also be entered and a list of CIDR networks will be derived to fill the range."),
598
	'host' => gettext("Enter as many hosts as desired. Hosts must be specified by their IP address or fully qualified domain name (FQDN). FQDN hostnames are periodically re-resolved and updated. If multiple IPs are returned by a DNS query, all are used. An IP range such as 192.168.1.1-192.168.1.10 or a small subnet such as 192.168.1.16/28 may also be entered and a list of individual IP addresses will be generated."),
599
	'port' => gettext("Enter as many ports as desired. Port ranges can be expressed by separating with a colon."),
600
	'url' => gettext("Enter as many URLs as desired. After saving, the URLs will be downloaded and the items imported into the alias. Use only with small sets of IP addresses (less than 3000)."),
601
	'url_ports' => gettext("Enter as many URLs as desired. After saving, the URLs will be downloaded and the items imported into the alias. Use only with small sets of Ports (less than 3000)."),
602
	'urltable' => gettext("Enter a single URL containing a large number of IPs and/or Subnets. After saving, the URLs will be downloaded and a table file containing these addresses will be created. This will work with large numbers of addresses (30,000+) or small numbers.") .
603 603
		"<br /><b>" . $special_cidr_usage_text . "</b>",
604
	'urltable_ports' => gettext("Enter a single URL containing a list of Port numbers and/or Port ranges. After saving we will download the URL.") .
604
	'urltable_ports' => gettext("Enter a single URL containing a list of Port numbers and/or Port ranges. After saving, the URL will be downloaded.") .
605 605
		"<br /><b>" . $special_cidr_usage_text . "</b>",
606 606
);
607 607

  
......
682 682
	'Description',
683 683
	'text',
684 684
	$pconfig['descr']
685
))->setHelp('You may enter a description here for your reference (not parsed).');
685
))->setHelp('A description may be entered here for administrative reference (not parsed).');
686 686

  
687 687
$section->addInput(new Form_Select(
688 688
	'type',
src/usr/local/www/firewall_aliases_import.php
208 208
	'Description',
209 209
	'text',
210 210
	$_POST['descr']
211
))->setHelp('You may enter a description here for your reference (not '.
212
	'parsed).');
211
))->setHelp('A description may be entered here for administrative reference (not parsed).');
213 212

  
214 213
$section->addInput(new Form_Textarea(
215 214
	'aliasimport',

Also available in: Unified diff