Project

General

Profile

« Previous | Next » 

Revision b533da85

Added by Jim Pingle almost 9 years ago

Fix up help text on outbound NAT.

View differences:

src/usr/local/www/firewall_nat_out_edit.php
475 475
	'Interface',
476 476
	$pconfig['interface'],
477 477
	$interfaces
478
))->setHelp('Choose which interface this rule applies to. In most cases "WAN" is specified.');
478
))->setHelp('The interface on which traffic is matched as it exits the firewall. In most cases this is "WAN" or another externally-connected interface.');
479 479

  
480 480
$protocols = "any TCP UDP TCP/UDP ICMP ESP AH GRE IPV6 IGMP carp pfsync";
481 481

  
......
506 506
	null,
507 507
	'text',
508 508
	$pconfig['sourceport']
509
))->setHelp('Port')->setWidth('2');
509
))->setHelp('Port or Range')->setWidth('2');
510 510

  
511 511
$section->add($group);
512 512

  
......
530 530
	null,
531 531
	'text',
532 532
	$pconfig['dstport']
533
))->setHelp('Port')->setWidth('2');
533
))->setHelp('Port or Range')->setWidth('2');
534 534

  
535 535
$section->add($group);
536 536

  
......
551 551
	'Address',
552 552
	$pconfig['target'],
553 553
	build_target_list()
554
));
554
))->setHelp(	'Connections matching this rule will be mapped to the specified <b>Address</b>.' . '<br />' .
555
		'The <b>Address</b> can be an Interface, a Host-type Alias, or a ' .
556
		'<a href="firewall_virtual_ip.php">' . gettext("Virtual IP") . '</a> ' . ' address.');
555 557

  
556 558
$section->addInput(new Form_IpAddress(
557 559
	'targetip',
558 560
	'Other subnet',
559 561
	$pconfig['targetip']
560 562
))->addMask('targetip_subnet', $pconfig['targetip_subnet'])->setHelp(
561
		'Packets matching this rule will be mapped to the IP address given here.' . '<br />' .
562
		'To apply this rule to a different IP address than the IP address of the interface chosen above, ' .
563
		'select it here (' .
564
		'<a href="firewall_virtual_ip.php">' . gettext("Virtual IP") . '</a> ' .
565
		'addresses need to be defined on the interface first)');
563
		'This subnet must be routed to the firewall or each address in the subnet must be defined in one or more ' .
564
		'<a href="firewall_virtual_ip.php">' . gettext("Virtual IP") . '</a> ' . ' addresses.');
566 565

  
567 566
$section->addInput(new Form_Select(
568 567
	'poolopts',
......
593 592
	$pconfig['source_hash_key']
594 593
))->setHelp('The key that is fed to the hashing algorithm in hex format, preceeded by "0x", or any string. A non-hex string is hashed using md5 to a hexadecimal key. Defaults to a randomly generated value.')->setWidth(10);
595 594

  
596
$group = new Form_Group('Port');
595
$group = new Form_Group('Port or Range');
597 596
$group->addClass('natportgrp');
598 597

  
599 598
$group->add(new Form_Input(
......
601 600
	null,
602 601
	'text',
603 602
	$pconfig['natport']
604
))->setHelp('Enter the source port or range for the outbound NAT mapping.');
603
))->setHelp('Enter the external source <b>Port or Range</b> used for remapping '.
604
		'the original source port on connections matching the rule. <br/><br/>'.
605
		'Port ranges are a low port and high port number separated by ":".<br/>'.
606
		'Leave blank when <b>Static Port</b> is checked.');
605 607

  
606 608
$group->add(new Form_Checkbox(
607 609
	'staticnatport',
608 610
	null,
609
	'Static port',
611
	'Static Port',
610 612
	$pconfig['staticnatport']
611 613
));
612 614

  

Also available in: Unified diff