diff options
author | Ermal <eri@pfsense.org> | 2011-04-05 19:55:11 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-04-05 19:55:11 +0000 |
commit | 262595f0d5756ad4411e3e83023b24db1de8fdac (patch) | |
tree | 39abdc1e728759041ec980d31e5f644606567902 /etc | |
parent | 5b64e3369ae2ad38e4384741160e7f59cd414c7b (diff) | |
download | pfsense-262595f0d5756ad4411e3e83023b24db1de8fdac.zip pfsense-262595f0d5756ad4411e3e83023b24db1de8fdac.tar.gz |
Unbreak inetd.conf generation to avoid entries containing Array entries. This gixes nat reflection and a spamming of the system with nc processes with wrong parameters.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index e6b27d5..cde7a5f 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1059,6 +1059,7 @@ function filter_generate_reflection($rule, $nordr, $rdr_ifs, $srcaddr, $dstaddr_ $toadd_array = array_merge($toadd_array, range($loc_pt[0], $loc_pt[0] + $delta)); if(!empty($toadd_array)) { + $target = explode(" ", trim($target)); foreach($toadd_array as $tda) { if (empty($tda)) continue; @@ -1070,7 +1071,6 @@ function filter_generate_reflection($rule, $nordr, $rdr_ifs, $srcaddr, $dstaddr_ $socktype = "stream"; $dash_u = ""; } - $target = explode(" ", trim($target)); foreach ($target as $targip) { if (empty($targip)) continue; |