Revision e191b65c
Added by Viktor Gurov about 4 years ago
src/usr/local/pfSense/include/www/firewall_nat_out.inc | ||
---|---|---|
30 | 30 |
|
31 | 31 |
// Save Outbound mode |
32 | 32 |
function saveNAToutMode($post, $json = false) { |
33 |
global $config; |
|
33 |
global $config, $FilterIflist, $GatewaysList; |
|
34 |
|
|
35 |
init_config_arr(array('nat', 'outbound', 'rule')); |
|
36 |
$a_out = &$config['nat']['outbound']['rule']; |
|
34 | 37 |
|
35 | 38 |
if (!isset($config['nat']['outbound']['mode'])) { |
36 | 39 |
$config['nat']['outbound']['mode'] = "automatic"; |
... | ... | |
611 | 614 |
|
612 | 615 |
return($list); |
613 | 616 |
} |
614 |
?> |
|
617 |
?> |
Also available in: Unified diff
Create Outbound NAT automatic equivalent rules when switching from Automatic to Manual mode. Fixes #11982
(cherry picked from commit ec8adb56d59a293516d1a0a3fb4eb45aad299f5b)