Help with ppp on-up, on-down script maybe a bug?

Hi.

I need to do this:
When a PPPoE client connect to server the script add its interface to
/ip upnp interface

I wrote this on-UP:
:ip upnp interfaces add interface=$interface type=internal
And it works…

The problem is remove that interface when the client disconnect…
I wrote this on-DOWN
:ip upnp interfaces remove [/ip upnp interfaces find interface=<$interface>]
or
:ip upnp interfaces remove [/ip upnp interfaces find interface=$interface]
It doesn’t work…
in interface list there are an “unknown” entry for every disconnection

Please help, also workaround is good ex. a way for remove all interface called unknown
[/ip upnp interfaces find interface=unknown] <-doesnt work :frowning:

Thanks

Any suggestion please?

If i type /ip upnp interface print i obtain:
[admin@Server] /ip upnp interfaces> print
Flags: X - disabled, D - dynamic

INTERFACE TYPE FORCED-IP

0 *F00008 internal
1 ether1 external
2 *F00009 internal
3

0 and 2 are dead interfaces, there is a way to remove all entry that start to *F0 ?

Good evening, try using the command:
on-down:
:ip upnp interfaces remove [find interface=$user]