Révision 93caffc0
Ajouté par Daniel Becker il y a presque 10 ans
usr/local/www/status_upnp.php | ||
---|---|---|
86 | 86 |
<td width="10%" class="listhdrr"><?=gettext("Port");?></td> |
87 | 87 |
<td width="10%" class="listhdrr"><?=gettext("Protocol");?></td> |
88 | 88 |
<td width="20%" class="listhdrr"><?=gettext("Internal IP");?></td> |
89 |
<td width="60%" class="listhdr"><?=gettext("Description");?></td> |
|
89 |
<td width="10%" class="listhdrr"><?=gettext("Int. Port");?></td> |
|
90 |
<td width="50%" class="listhdr"><?=gettext("Description");?></td> |
|
90 | 91 |
</tr> |
91 | 92 |
<?php $i = 0; foreach ($rdr_entries as $rdr_entry) { |
92 |
if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" rtable [0-9] -> (.*) port (.*)/", $rdr_entry, $matches)) |
|
93 |
if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) keep state label \"(.*)\" rtable [0-9] -> (.*) port (.*)/", $rdr_entry, $matches))
|
|
93 | 94 |
$rdr_proto = $matches[2]; |
94 | 95 |
$rdr_port = $matches[3]; |
95 |
$rdr_ip = $matches[5]; |
|
96 | 96 |
$rdr_label =$matches[4]; |
97 |
$rdr_ip = $matches[5]; |
|
98 |
$rdr_iport = $matches[6]; |
|
97 | 99 |
?> |
98 | 100 |
<tr> |
99 | 101 |
<td class="listlr"> |
... | ... | |
105 | 107 |
<td class="listlr"> |
106 | 108 |
<?php print $rdr_ip;?> |
107 | 109 |
</td> |
110 |
<td class="listlr"> |
|
111 |
<?php print $rdr_iport;?> |
|
112 |
</td> |
|
108 | 113 |
<td class="listlr"> |
109 | 114 |
<?php print $rdr_label;?> |
110 | 115 |
</td> |
Formats disponibles : Unified diff
add column for internal port on UPnP status page