mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not add any reply-to information to rules with action match. Reported-by: http://forum.pfsense.org/index.php/topic,39247.msg202728.html#msg202728
This commit is contained in:
parent
ff49f684a1
commit
800d973df2
@ -1830,7 +1830,7 @@ function filter_generate_user_rule($rule) {
|
||||
update_filter_reload_status("Setting up pass/block rules {$rule['descr']}");
|
||||
|
||||
/* do not process reply-to for gateway'd rules */
|
||||
if($rule['gateway'] == "" && $aline['direction'] <> "" && interface_has_gateway($rule['interface']) && !isset($config['system']['disablereplyto'])) {
|
||||
if($rule['gateway'] == "" && $aline['direction'] <> "" && interface_has_gateway($rule['interface']) && !isset($config['system']['disablereplyto']) && $type != "match") {
|
||||
$rg = get_interface_gateway($rule['interface']);
|
||||
if(is_ipaddr($rg)) {
|
||||
$aline['reply'] = "reply-to ( {$ifcfg['if']} {$rg} ) ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user