PPP Profile script problem ($interface var)
Posted: Mon Mar 20, 2017 1:04 am
Hello, I have a problem with PPP Profile up/down script.
Up script is working fine, but down script doesn't work.
Up:
Down:
As you can probably, I am trying to add dynamic interface created when logged in to VPN, to interface list LAN.
As I wrote earlier, Up script is working fine, but down script not. Interesting is that the $interface var value is something like *f0000x both in up and down script. Probably this is an internal interface name. Interface stays on the list, but its name is unknown. When I remove it from console by:
It works then.
When I change down script, to remove interface by its exact name it works too.
Can somebody help me with that problem?
Up script is working fine, but down script doesn't work.
Up:
Code: Select all
/interface list member add interface=$interface list=LAN
Code: Select all
/interface list member remove numbers=[find where interface=$inteface]
As I wrote earlier, Up script is working fine, but down script not. Interesting is that the $interface var value is something like *f0000x both in up and down script. Probably this is an internal interface name. Interface stays on the list, but its name is unknown. When I remove it from console by:
Code: Select all
/interface list member remove numbers=[find where interface=*f0000x]
When I change down script, to remove interface by its exact name it works too.
Code: Select all
/interface list member remove numbers=[find where interface=<pptp-userman>]