mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Don't hard code the target IP in auto-generated outbound NAT rules, use
previous behavior of setting it to the interface IP.
This commit is contained in:
parent
3c36413133
commit
2f56ac49ee
@ -1515,7 +1515,7 @@ function filter_nat_rules_outbound_automatic($src) {
|
||||
$natent['interface'] = $if;
|
||||
$natent['source']['network'] = $src;
|
||||
$natent['dstport'] = "500";
|
||||
$natent['target'] = $ifcfg['ip'];
|
||||
$natent['target'] = "";
|
||||
$natent['destination']['any'] = true;
|
||||
$natent['staticnatport'] = true;
|
||||
$natent['descr'] = gettext('Auto created rule for ISAKMP');
|
||||
@ -1525,7 +1525,7 @@ function filter_nat_rules_outbound_automatic($src) {
|
||||
$natent['interface'] = $if;
|
||||
$natent['source']['network'] = $src;
|
||||
$natent['sourceport'] = "";
|
||||
$natent['target'] = $ifcfg['ip'];
|
||||
$natent['target'] = "";
|
||||
$natent['destination']['any'] = true;
|
||||
$natent['natport'] = "";
|
||||
$natent['descr'] = gettext('Auto created rule');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user