mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add code to allow applications on pfSense itself that bind to a socket or want to source route traffic to work. This fixes DynDns on multi-wan as the simplest of it.
This commit is contained in:
parent
52e9528649
commit
c74804cd45
@ -1878,6 +1878,14 @@ EOD;
|
||||
pass out all keep state allow-opts label "let out anything from firewall host itself"
|
||||
|
||||
EOD;
|
||||
foreach ($FilterIflist as $ifdescr => $ifcfg) {
|
||||
if(isset($ifcfg['virtual']))
|
||||
continue;
|
||||
$gw = get_interface_gateway($ifdescr);
|
||||
if (is_ipaddr($gw) && is_ipaddr($ifcfg['ip']))
|
||||
$ipfrules .= "pass out route-to ( {$ifcfg['if']} {$gw} ) from {$ifcfg['ip']} to any keep state allow-opts label \"let out anything from firewall host itself\"\n";
|
||||
}
|
||||
|
||||
|
||||
/* add ipsec interfaces */
|
||||
if(isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']['enable']))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user