Community discussions

MikroTik App
 
meconiotronic
newbie
Topic Author
Posts: 30
Joined: Wed Mar 14, 2012 9:50 am

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

Thu Jul 21, 2016 6:33 pm

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
 
meconiotronic
newbie
Topic Author
Posts: 30
Joined: Wed Mar 14, 2012 9:50 am

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

Mon Jul 25, 2016 1:48 pm

Any suggestion please?
 
meconiotronic
newbie
Topic Author
Posts: 30
Joined: Wed Mar 14, 2012 9:50 am

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

Tue Jul 26, 2016 4:24 pm

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 ? 
 
ebertyrodrigues
just joined
Posts: 4
Joined: Sun Aug 30, 2015 4:25 am

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

Mon Oct 03, 2016 12:56 am

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

Who is online

Users browsing this forum: No registered users and 8 guests