Project

General

Profile

Download (22.3 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/* $Id$ */
3
/*
4
    firewall_nat_out.php
5
    Copyright (C) 2004 Scott Ullrich
6
    All rights reserved.
7

    
8
    originally part of m0n0wall (http://m0n0.ch/wall)
9
    Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
10
    All rights reserved.
11

    
12
    Redistribution and use in source and binary forms, with or without
13
    modification, are permitted provided that the following conditions are met:
14

    
15
    1. Redistributions of source code must retain the above copyright notice,
16
       this list of conditions and the following disclaimer.
17

    
18
    2. Redistributions in binary form must reproduce the above copyright
19
       notice, this list of conditions and the following disclaimer in the
20
       documentation and/or other materials provided with the distribution.
21

    
22
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
24
    AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25
    AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
    POSSIBILITY OF SUCH DAMAGE.
32
*/
33
/*
34
	pfSense_MODULE:	nat
35
*/
36

    
37
##|+PRIV
38
##|*IDENT=page-firewall-nat-outbound
39
##|*NAME=Firewall: NAT: Outbound page
40
##|*DESCR=Allow access to the 'Firewall: NAT: Outbound' page.
41
##|*MATCH=firewall_nat_out.php*
42
##|-PRIV
43

    
44
require("guiconfig.inc");
45
require_once("functions.inc");
46
require_once("filter.inc");
47
require_once("shaper.inc");
48

    
49
if (!is_array($config['nat']['advancedoutbound']))
50
	$config['nat']['advancedoutbound'] = array();
51

    
52
if (!is_array($config['nat']['advancedoutbound']['rule']))
53
	$config['nat']['advancedoutbound']['rule'] = array();
54

    
55
$a_out = &$config['nat']['advancedoutbound']['rule'];
56

    
57
if ($_POST['apply']) {
58
	write_config();
59

    
60
	$retval = 0;
61
	$retval |= filter_configure();
62

    
63
	if(stristr($retval, "error") <> true)
64
	        $savemsg = get_std_save_message($retval);
65
	else
66
		$savemsg = $retval;
67

    
68
	if ($retval == 0) {
69
		clear_subsystem_dirty('natconf');
70
		clear_subsystem_dirty('filter');
71
        }
72
}
73

    
74

    
75

    
76
if (isset($_POST['save']) && $_POST['save'] == "Save") {
77
	/* mutually exclusive settings - if user wants advanced NAT, we don't generate automatic rules */
78
	switch ($_POST['advancedoripsec']) {
79
	case "ipsecpassthru":
80
               	$config['nat']['ipsecpassthru']['enable'] = true;
81
               	unset($config['nat']['advancedoutbound']['enable']);
82
		break;
83
	case "advancedoutboundnat":
84
        	if (!isset($config['nat']['advancedoutbound']['enable'])) {
85
			$config['nat']['advancedoutbound']['enable'] = true;
86
			// if there are already AON rules configured, don't generate default ones
87
			if(!empty($a_out))
88
				continue;
89
			/*
90
			 *    user has enabled advanced outbound NAT and doesn't have rules
91
			 *    lets automatically create entries
92
			 *    for all of the interfaces to make life easier on the pip-o-chap
93
			 */
94
			$ifdescrs = get_configured_interface_with_descr();
95
				
96
			foreach($ifdescrs as $if => $ifdesc) {
97
				if (interface_has_gateway($if))
98
					continue;
99
				$osipaddr = get_interface_ip($if);
100
				$ossubnet = get_interface_subnet($if);
101
				if (!is_ipaddr($osipaddr) || empty($ossubnet))
102
					continue;
103
				$osn = gen_subnet($osipaddr, $ossubnet);
104
				foreach ($ifdescrs as $if2 => $ifdesc2) {
105
					if (!interface_has_gateway($if2))
106
						continue;
107

    
108
					$natent = array();
109
					$natent['source']['network'] = "{$osn}/{$ossubnet}";
110
					$natent['dstport'] = "500";
111
					$natent['descr'] = sprintf(gettext('Auto created rule for ISAKMP - %1$s to %2$s'),$ifdesc,$ifdesc2);
112
					$natent['target'] = "";
113
					$natent['interface'] = $if2;
114
					$natent['destination']['any'] = true;
115
					$natent['staticnatport'] = true;
116
					$a_out[] = $natent;
117
					
118
					$natent = array();
119
                                        $natent['source']['network'] = "{$osn}/{$ossubnet}";
120
                                        $natent['sourceport'] = "";
121
                                        $natent['descr'] = sprintf(gettext('Auto created rule for %1$s to %2$s'),$ifdesc,$ifdesc2);
122
                                        $natent['target'] = "";
123
                                        $natent['interface'] = $if2;
124
                                        $natent['destination']['any'] = true;
125
                                        $natent['natport'] = "";
126
                                        $a_out[] = $natent;
127
					
128
                                        $natent = array();
129
                                        $natent['source']['network'] = "127.0.0.0/8";
130
                                        $natent['dstport'] = "";
131
                                        $natent['descr'] = sprintf(gettext('Auto created rule for localhost to %1$s'),$ifdesc2);
132
                                        $natent['target'] = "";
133
                                        $natent['interface'] = $if2;
134
                                        $natent['destination']['any'] = true;
135
                                        $natent['staticnatport'] = false;
136
                                        $natent['natport'] = "1024:65535";
137
                                        $a_out[] = $natent;
138

    
139
					/* PPTP subnet */
140
					if (($config['pptpd']['mode'] == "server") && is_private_ip($config['pptpd']['remoteip'])) {
141
						$pptptopip = $config['pptpd']['n_pptp_units'] - 1; 
142
						$pptp_subnets = ip_range_to_subnet_array($config['pptpd']['remoteip'], long2ip32(ip2long($config['pptpd']['remoteip'])+$pptptopip));
143
						foreach ($pptp_subnets as $pptpsn) {
144
							$natent = array();
145
							$natent['source']['network'] = $pptpsn;
146
							$natent['sourceport'] = "";
147
							$natent['descr'] = gettext("Auto created rule for PPTP server");
148
							$natent['target'] = "";
149
							$natent['interface'] = $if2;
150
							$natent['destination']['any'] = true;
151
							$natent['natport'] = "";
152
							$a_out[] = $natent;
153
						}
154
					}
155
					/* PPPoE subnet */
156
					if (is_pppoe_server_enabled() && have_ruleint_access("pppoe")) {
157
						foreach ($config['pppoes']['pppoe'] as $pppoes) {
158
							if (($pppoes['mode'] == "server") && is_ipaddr($pppoes['localip'])) {
159
								if($pppoes['pppoe_subnet'] <> "")
160
									$ossubnet = $pppoes['pppoe_subnet'];
161
								else
162
									$ossubnet = "32";
163
								$osn = gen_subnet($pppoes['localip'], $ossubnet);
164
								$natent = array();
165
								$natent['source']['network'] = "{$osn}/{$ossubnet}";
166
								$natent['sourceport'] = "";
167
								$natent['descr'] = gettext("Auto created rule for PPPoE server");
168
								$natent['target'] = "";
169
								$natent['interface'] = $if2;
170
								$natent['destination']['any'] = true;
171
								$natent['natport'] = "";
172
								$a_out[] = $natent;
173
							}
174
						}
175
					}
176
					/* L2TP subnet */
177
					if($config['l2tp']['mode'] == "server") {
178
						if (is_ipaddr($config['l2tp']['localip'])) {
179
							if($config['l2tp']['l2tp_subnet'] <> "")
180
								$ossubnet = $config['l2tp']['l2tp_subnet'];
181
							else
182
								$ossubnet = "32";
183
							$osn = gen_subnet($config['l2tp']['localip'], $ossubnet);
184
							$natent = array();
185
							$natent['source']['network'] = "{$osn}/{$ossubnet}";
186
							$natent['sourceport'] = "";
187
							$natent['descr'] = gettext("Auto created rule for L2TP server");
188
							$natent['target'] = "";
189
							$natent['interface'] = $if2;
190
							$natent['destination']['any'] = true;
191
							$natent['natport'] = "";
192
							$a_out[] = $natent;
193
						}
194
					}
195
					/* add openvpn interfaces */
196
					if($config['openvpn']['openvpn-server']) {
197
						foreach ($config['openvpn']['openvpn-server'] as $ovpnsrv) {
198
							$natent = array();
199
							$natent['source']['network'] = $ovpnsrv['tunnel_network'];
200
							$natent['sourceport'] = "";
201
							$natent['descr'] = gettext("Auto created rule for OpenVPN server");
202
							$natent['target'] = "";
203
							$natent['interface'] = $if2;
204
							$natent['destination']['any'] = true;
205
							$natent['natport'] = "";
206
							$a_out[] = $natent;
207
						}
208
					}
209
				}	
210
			}
211

    
212
			$savemsg = gettext("Default rules for each interface have been created.");
213
		}
214
		break;
215
	}
216
        write_config();
217
	mark_subsystem_dirty('natconf');
218
        header("Location: firewall_nat_out.php");
219
        exit;
220
}
221

    
222
if (isset($_POST['del_x'])) {
223
        /* delete selected rules */
224
        if (is_array($_POST['rule']) && count($_POST['rule'])) {
225
                foreach ($_POST['rule'] as $rulei) {
226
                        unset($a_out[$rulei]);
227
                }
228
                write_config();
229
		mark_subsystem_dirty('natconf');
230
                header("Location: firewall_nat_out.php");
231
                exit;
232
        }
233

    
234
} else {
235
        /* yuck - IE won't send value attributes for image buttons, while Mozilla does - so we use .x/.y to find move button clicks instead... */
236
        unset($movebtn);
237
        foreach ($_POST as $pn => $pd) {
238
                if (preg_match("/move_(\d+)_x/", $pn, $matches)) {
239
                        $movebtn = $matches[1];
240
                        break;
241
                }
242
        }
243
        /* move selected rules before this rule */
244
        if (isset($movebtn) && is_array($_POST['rule']) && count($_POST['rule'])) {
245
                $a_out_new = array();
246

    
247
                /* copy all rules < $movebtn and not selected */
248
                for ($i = 0; $i < $movebtn; $i++) {
249
                        if (!in_array($i, $_POST['rule']))
250
                                $a_out_new[] = $a_out[$i];
251
                }
252

    
253
                /* copy all selected rules */
254
                for ($i = 0; $i < count($a_out); $i++) {
255
                        if ($i == $movebtn)
256
                                continue;
257
                        if (in_array($i, $_POST['rule']))
258
                                $a_out_new[] = $a_out[$i];
259
                }
260

    
261
                /* copy $movebtn rule */
262
                if ($movebtn < count($a_out))
263
                        $a_out_new[] = $a_out[$movebtn];
264

    
265
                /* copy all rules > $movebtn and not selected */
266
                for ($i = $movebtn+1; $i < count($a_out); $i++) {
267
                        if (!in_array($i, $_POST['rule']))
268
                                $a_out_new[] = $a_out[$i];
269
                }
270
                if (count($a_out_new) > 0)
271
			$a_out = $a_out_new;
272
		else
273
			unset($config['nat']['advancedoutbound']);
274

    
275
                write_config();
276
		mark_subsystem_dirty('natconf');
277
                header("Location: firewall_nat_out.php");
278
                exit;
279
        }
280
}
281

    
282

    
283
$pgtitle = array(gettext("Firewall"),gettext("NAT"),gettext("Outbound"));
284
include("head.inc");
285

    
286
?>
287
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
288
<?php include("fbegin.inc"); ?>
289
<form action="firewall_nat_out.php" method="post" name="iform">
290
<script type="text/javascript" language="javascript" src="/javascript/row_toggle.js">
291
</script>
292
<?php if ($savemsg) print_info_box($savemsg); ?>
293
<?php if (is_subsystem_dirty('natconf')): ?><p>
294
<?php print_info_box_np(gettext("The NAT configuration has been changed.")."<br>".gettext("You must apply the changes in order for them to take effect."));?><br>
295
<?php endif; ?>
296
<table width="100%" border="0" cellpadding="0" cellspacing="0">  <tr><td>
297
<?php
298
	$tab_array = array();
299
	$tab_array[] = array(gettext("Port Forward"), false, "firewall_nat.php");
300
	$tab_array[] = array(gettext("1:1"), false, "firewall_nat_1to1.php");
301
	$tab_array[] = array(gettext("Outbound"), true, "firewall_nat_out.php");
302
	$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
303
	display_top_tabs($tab_array);
304
?>
305
  </td></tr>
306
  <tr>
307
    <td>
308
	<div id="mainarea">
309
              <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
310
				<tr><td align="right"><b><?=gettext("Mode:"); ?></b></td>
311
                  <td>
312
                      &nbsp;&nbsp;<input name="advancedoripsec" type="radio" id="ipsecpassthru" value="ipsecpassthru" <?php if (isset($config['nat']['ipsecpassthru']['enable'])) echo "checked";?>>
313
                      <strong><?=gettext("Automatic outbound NAT rule generation"); ?><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?=gettext("(IPsec passthrough included)");?></strong>
314
                  </td>
315

    
316
                  <td>
317
                      &nbsp;&nbsp;<input name="advancedoripsec" type="radio" id="advancedoutbound" value="advancedoutboundnat" <?php if (isset($config['nat']['advancedoutbound']['enable'])) echo "checked";?>>
318
                      <strong><?=gettext("Manual Outbound NAT rule generation") . "<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" . gettext("(AON - Advanced Outbound NAT)");?></strong></td>
319
                  <td valign="middle" align="left">
320
					<input name="save" type="submit" class="formbtn" value="<?=gettext("Save");?>">
321
					&nbsp;<br/>&nbsp;
322
                  </td>
323
                </tr>
324
				<tr>
325
					<td colspan="5">
326
						&nbsp;
327
					</td>
328
				</tr>
329
				<tr>
330
					<td  class="vtable" colspan="5">
331
						&nbsp;
332
					</td>
333
				</tr>
334
              </table>
335
              <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
336
				<tr><td colspan="5"><b>&nbsp;<?=gettext("Mappings:"); ?></b></td></tr>
337
				<tr><td>&nbsp;</td></tr>
338
                <tr id="frheader">
339
                  <td width="3%" class="list">&nbsp;</td>
340
                  <td width="3%" class="list">&nbsp;</td>
341
                  <td width="10%" class="listhdrr"><?=gettext("Interface");?></td>
342
                  <td width="15%" class="listhdrr"><?=gettext("Source");?></td>
343
                  <td width="10%" class="listhdrr"><?=gettext("Source Port");?></td>
344
                  <td width="15%" class="listhdrr"><?=gettext("Destination");?></td>
345
                  <td width="10%" class="listhdrr"><?=gettext("Destination Port");?></td>
346
                  <td width="15%" class="listhdrr"><?=gettext("NAT Address");?></td>
347
                  <td width="10%" class="listhdrr"><?=gettext("NAT Port");?></td>
348
		  <td width="10%" class="listhdrr"><?=gettext("Static Port");?></td>
349
                  <td width="25%" class="listhdr"><?=gettext("Description");?></td>
350
                  <td width="5%" class="list">
351
                    <table border="0" cellspacing="0" cellpadding="1">
352
                      <tr>
353
			<td width="17"></td>
354
                        <td><a href="firewall_nat_out_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add new mapping");?>"></a></td>
355
                      </tr>
356
                    </table>
357
		  </td>
358
                </tr>
359
              <?php $nnats = $i = 0; foreach ($a_out as $natent): ?>
360
                <tr valign="top" id="fr<?=$nnats;?>">
361
                  <td class="listt"><input type="checkbox" id="frc<?=$nnats;?>" name="rule[]" value="<?=$i;?>" onClick="fr_bgcolor('<?=$nnats;?>')" style="margin: 0; padding: 0; width: 15px; height: 15px;"></td>
362
                  <td class="listt" align="center"></td>
363
                  <td class="listlr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
364
                    <?php
365
					if (!$natent['interface'])
366
					  	echo htmlspecialchars(convert_friendly_interface_to_friendly_descr("wan"));
367
					else
368
						echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($natent['interface']));
369
					?>
370
                                        &nbsp;
371
                  </td>
372
                  <td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
373
                    <?=$natent['source']['network'];?>
374
                  </td>
375
                  <td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
376
                    <?php
377
			echo ($natent['protocol']) ? $natent['protocol'] . '/' : "" ;
378
                      if (!$natent['sourceport'])
379
                          echo "*";
380
                      else
381
                          echo $natent['sourceport'];
382
                    ?>
383
                  </td>
384
                  <td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
385
                    <?php
386
                      if (isset($natent['destination']['any']))
387
                          echo "*";
388
                      else {
389
                          if (isset($natent['destination']['not']))
390
                              echo "!&nbsp;";
391
                          echo $natent['destination']['address'];
392
                      }
393
                    ?>
394
                  </td>
395
                  <td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
396
                    <?php
397
			echo ($natent['protocol']) ? $natent['protocol'] . '/' : "" ;
398
                      if (!$natent['dstport'])
399
                          echo "*";
400
                      else
401
                          echo $natent['dstport'];
402
                    ?>
403
                  </td>
404
                  <td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
405
                    <?php
406
                      if (!$natent['target'])
407
                          echo "*";
408
                      elseif ($natent['target'] == "other-subnet")
409
                          echo $natent['targetip'] . '/' . $natent['targetip_subnet'];
410
                      else
411
                          echo $natent['target'];
412
                    ?>
413
                  </td>
414
                  <td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
415
                    <?php
416
                      if (!$natent['natport'])
417
                          echo "*";
418
                      else
419
                          echo $natent['natport'];
420
                    ?>
421
                  </td>
422
                  <td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
423
                    <?php
424
			if(isset($natent['staticnatport']))
425
			    echo "<CENTER>" . gettext("YES") . "</CENTER>";
426
			else
427
			    echo "<CENTER>" . gettext("NO") . "</CENTER>";
428
                    ?>		    
429
                  </td>
430
                  <td class="listbg"  onClick="fr_toggle(<?=$nnats;?>)" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
431
                    <?=htmlspecialchars($natent['descr']);?>&nbsp;
432
                  </td>
433
                  <td class="list" valign="middle" nowrap>
434
                    <table border="0" cellspacing="0" cellpadding="1">
435
                      <tr>
436
                        <td><a href="firewall_nat_out_edit.php?id=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" title="<?=gettext("edit mapping");?>"></a></td>
437
                      </tr>
438
                      <tr>
439
                        <td><input onmouseover="fr_insline(<?=$nnats;?>, true)" onmouseout="fr_insline(<?=$nnats;?>, false)" name="move_<?=$i;?>" src="/themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" title="<?=gettext("move selected rules before this rule");?>" height="17" type="image" width="17" border="0"></td>
440
                        <td><a href="firewall_nat_out_edit.php?dup=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add a new nat based on this one");?>" width="17" height="17" border="0"></a></td>
441
                      </tr>
442
                    </table>
443
              <?php $i++; $nnats++; endforeach; ?>
444
                <tr>
445
                  <td class="list" colspan="11"></td>
446
                  <td class="list" valign="middle" nowrap>
447
                    <table border="0" cellspacing="0" cellpadding="1">
448
                      <tr>
449
                        <td><?php if ($nnats == 0): ?><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected mappings to end");?>" border="0"><?php else: ?><input name="move_<?=$i;?>" type="image" src="/themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" width="17" height="17" title="<?=gettext("move selected mappings to end");?>" border="0"><?php endif; ?></td>
450
                        <td><a href="firewall_nat_out_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add new mapping");?>"></a></td>
451
                      </tr>
452
                      <tr>
453
                        <td><?php if ($nnats == 0): ?><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title="<?=gettext("delete selected rules");?>" border="0"><?php else: ?><input name="del" type="image" src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" title="<?=gettext("delete selected mappings");?>" onclick="return confirm('<?=gettext("Do you really want to delete the selected mappings?");?>')"><?php endif; ?></td>
454
                      </tr>
455
                    </table></td>
456
                </tr>
457
                <tr>
458
                  <td colspan="12">
459
			<p><span class="vexpl"><span class="red"><strong><?=gettext("Note:"); ?><br>
460
			</strong></span>
461
			<?=gettext("With automatic outbound NAT enabled, a mapping is automatically created " .
462
			"for each interface's subnet (except WAN-type connections) and the rules " .
463
			"on this page are ignored.<br/><br/> " .
464
			"If manual outbound NAT is enabled, outbound NAT rules will not be " .
465
			"automatically generated and only the mappings you specify on this page " .
466
			"will be used. <br/><br/> " .
467
			"If a target address other than a WAN-type interface's IP address is used, " .
468
			"then depending on the way the WAN connection is setup, a "); ?>
469
			<a href="firewall_virtual_ip.php"><?=gettext("Virtual IP"); ?></a>
470
			<?= gettext(" may also be required.") ?>
471
			<br/><br/>
472
			<?= gettext("To completely disable outbound NAT, switch to Manual Outbound NAT then delete any " .
473
			"NAT rules that appear in the list.") ?>
474
                    </td>
475
                </tr>
476

    
477
              </table>
478
	    </div>
479
</td>
480
  </tr>
481
</table>
482
            </form>
483
<?php include("fend.inc"); ?>
484
</body>
485
</html>
(63-63/238)