Page 1 of 1

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

Posted: Thu Jul 21, 2016 6:33 pm
by meconiotronic
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 :(

Thanks

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

Posted: Mon Jul 25, 2016 1:48 pm
by meconiotronic
Any suggestion please?

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

Posted: Tue Jul 26, 2016 4:24 pm
by meconiotronic
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   <pppoe-dan> 

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

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

Posted: Mon Oct 03, 2016 12:56 am
by ebertyrodrigues
Good evening, try using the command:
on-down:
:ip upnp interfaces remove [find interface=$user]