Commit cc0864c1 authored by Franco Fichtner's avatar Franco Fichtner

filter: almost done

parent 964786b3
......@@ -1156,13 +1156,12 @@ function filter_generate_reflection_nat(&$FilterIflist, $rule, &$route_table, $n
return $natrules;
}
function filter_generate_reflection_proxy($rule, $nordr, $rdr_ifs, $srcaddr, $dstaddr_port, &$starting_localhost_port, &$reflection_txt) {
function filter_generate_reflection_proxy(&$FilterIflist, $rule, $nordr, $rdr_ifs, $srcaddr, $dstaddr_port, &$starting_localhost_port, &$reflection_txt)
{
global $config;
$FilterIflist = filter_generate_optcfg_array() ;
// Initialize natrules holder string
$natrules = "";
$reflection_txt = array();
$natrules = '';
if(!empty($rdr_ifs)) {
if($config['system']['reflectiontimeout']) {
......@@ -2075,7 +2074,7 @@ function filter_nat_rules_generate(&$FilterIflist)
if ($reflection_type != "none") {
if($reflection_type == "proxy" && !isset($rule['nordr'])) {
$natrules .= filter_generate_reflection_proxy($rule, $nordr, $nat_if_list, $srcaddr, $dstaddr, $starting_localhost_port, $reflection_rules);
$natrules .= filter_generate_reflection_proxy($FilterIflist, $rule, $nordr, $nat_if_list, $srcaddr, $dstaddr, $starting_localhost_port, $reflection_rules);
$nat_if_list = array($natif);
foreach ($reflection_rules as $txtline) {
fwrite($inetd_fd, $txtline);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment