Revision ad5fb4a0
Added by Chris Buechler about 9 years ago
src/usr/local/www/diag_dump_states.php | ||
---|---|---|
255 | 255 |
} |
256 | 256 |
|
257 | 257 |
for ($i = 0; $i < $states; $i++) { |
258 |
if ($res[$i]['direction'] === "out") { |
|
259 |
$info = $res[$i]['src']; |
|
260 |
if ($res[$i]['src-orig']) |
|
261 |
$info .= " (" . $res[$i]['src-orig'] . ")"; |
|
262 |
$info .= " -> "; |
|
263 |
$info .= $res[$i]['dst']; |
|
264 |
if ($res[$i]['dst-orig']) |
|
265 |
$info .= " (" . $res[$i]['dst-orig'] . ")"; |
|
266 |
$srcip = get_ip($res[$i]['src']); |
|
267 |
$dstip = get_ip($res[$i]['dst']); |
|
268 |
} else { |
|
269 |
$info = $res[$i]['dst']; |
|
270 |
if ($res[$i]['dst-orig']) |
|
271 |
$info .= " (" . $res[$i]['dst-orig'] . ")"; |
|
272 |
$info .= " <- "; |
|
273 |
$info .= $res[$i]['src']; |
|
274 |
if ($res[$i]['src-orig']) |
|
275 |
$info .= " (" . $res[$i]['src-orig'] . ")"; |
|
276 |
$srcip = get_ip($res[$i]['dst']); |
|
277 |
$dstip = get_ip($res[$i]['src']); |
|
258 |
$info = $res[$i]['src']; |
|
259 |
if ($res[$i]['src-orig']) { |
|
260 |
$info .= " (" . $res[$i]['src-orig'] . ")"; |
|
278 | 261 |
} |
262 |
$info .= " -> "; |
|
263 |
$info .= $res[$i]['dst']; |
|
264 |
if ($res[$i]['dst-orig']) { |
|
265 |
$info .= " (" . $res[$i]['dst-orig'] . ")"; |
|
266 |
} |
|
267 |
$srcip = get_ip($res[$i]['src']); |
|
268 |
$dstip = get_ip($res[$i]['dst']); |
|
279 | 269 |
|
280 | 270 |
?> |
281 | 271 |
<tr> |
Also available in: Unified diff
pfSense_get_pf_states always returns source as src and dest as dst, this flipping based on direction is wrong. Ticket #6530