Community discussions

MikroTik App
MayestroPW
常客
常客
Topic Author
Posts: 52
加入: 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.
Code:Select all
/interface list member add interface=[find interface=
MikroTik creates dynamic interface as user connects, and I wan't to add this interface to my list LAN.
Last edited byMayestroPWon Wed Nov 02, 2016 9:20 am, edited 1 time in total.
Top
用户头像
pukkita
Trainer
Trainer
Posts: 3051
加入: 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?
Top
MayestroPW
常客
常客
Topic Author
Posts: 52
加入: 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.
Top
用户头像
pukkita
Trainer
Trainer
Posts: 3051
加入: 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 theWiki

May I ask why do you need to add the ppp interfaces to an interface list?
Top
MayestroPW
常客
常客
Topic Author
Posts: 52
加入: 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.
Top
ditonet
Forum Veteran
Forum Veteran
Posts: 835
加入: 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,
Top
MayestroPW
常客
常客
Topic Author
Posts: 52
加入: 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.
Top
ollit
newbie
Posts: 25
加入: 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
Top
efaden
Forum Guru
Forum Guru
Posts: 1708
加入: 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
Top

Who is online

Users browsing this forum: No registered users and 3 guests

Baidu
map