Community discussions

MikroTik App
 
MayestroPW
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Wed Oct 26, 2016 3:28 pm

Adding dynamic interfaces to interface list.

Tue Nov 01, 2016 7:37 pm

Hi there,
I have a problem with MikroTik. I need to make a script which adds my dynamic interface from PPTP to interface list when user connects, but I don't know how the script would look like.
/interface list member add interface=[find interface=<pptp*] list=LAN
MikroTik creates dynamic interface as user connects, and I wan't to add this interface to my list LAN.
Last edited by MayestroPW on Wed Nov 02, 2016 9:20 am, edited 1 time in total.
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Adding dynamic interfaces to interface list.

Tue Nov 01, 2016 9:47 pm

Maybe through the use of PPP profile Script On Up / On Down section?
 
MayestroPW
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Wed Oct 26, 2016 3:28 pm

Re: Adding dynamic interfaces to interface list.

Tue Nov 01, 2016 10:53 pm

Actually i'm using this, but I don't know how to code it.
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Adding dynamic interfaces to interface list.

Wed Nov 02, 2016 10:28 am

I moved this post to the Scripting forum, a more suitable place to get help regarding this.

Additionally, you can refer to the Wiki

May I ask why do you need to add the ppp interfaces to an interface list?
 
MayestroPW
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Wed Oct 26, 2016 3:28 pm

Re: Adding dynamic interfaces to interface list.

Wed Nov 02, 2016 6:43 pm

Because my firewall blocks traffic which is not coming from LAN and going to the WAN.
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Adding dynamic interfaces to interface list.

Thu Nov 03, 2016 12:09 am

Maybe you should change firewall logic from 'interface list' to 'address list'?
It's pretty simple to add dynamic PPTP interface's address to address list.

HTH,
 
MayestroPW
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Wed Oct 26, 2016 3:28 pm

Re: Adding dynamic interfaces to interface list.

Thu Nov 03, 2016 3:15 pm

I'd rather to keep firewall like is now.
 
ollit
newbie
Posts: 25
Joined: Tue May 23, 2017 3:14 pm

Re: Adding dynamic interfaces to interface list.

Sun Aug 06, 2017 12:18 pm

Hello,

I have the same Problem. Is there any solution for or don't work like this?

KR
Oliver
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: Adding dynamic interfaces to interface list.

Sun Aug 06, 2017 1:27 pm

On up and on down should work.

Sent from my Pixel XL using Tapatalk

Who is online

Users browsing this forum: No registered users and 5 guests