Community discussions

MikroTik App

Search found 3 matches

by nabati
Sun Sep 30, 2018 5:03 pm
Forum: Scripting
Topic: help me to add more than 1 ip
Replies: 0
Views: 688

help me to add more than 1 ip

0 Lan 192.168.50.1/24 1 Lan 172.66.10.1/24 2 Lan 200.55.8.1/24 3 Lan 10.10.1.1/23 :local sc :foreach i in=[/ip firewall address-list list="lan"] do={ :set sc [/ip address get $i address] :foreach ii in=[/user find] do={ :set sc [/user get $ii name] } }; /user set $ii address="$1"...
by nabati
Thu Sep 27, 2018 7:58 pm
Forum: Scripting
Topic: How to make 1 line
Replies: 1
Views: 992

How to make 1 line

Address - Interface
172.23.100.65/28 - bridge-network
192.168.57.1/24 - ether2
200.10.10.1/24 - ether3
10.10.10.1/24 - ether4

So the script should find those all ip and add them to an allow-address user.
by nabati
Thu Sep 27, 2018 6:47 pm
Forum: Scripting
Topic: how to combine
Replies: 0
Views: 646

how to combine

ip address : 0 192.168.101.254/24 192.168.101.0 ether1 1 172.66.50.1/24 172.66.50.0 ether2 2 10.10.10.254/24 10.10.10.0 ether3 3 100.100.100.254/24 100.100.100.0 ether4 how to combine all ip into 1 line in script example 192.168.101.254/24, 172.66.50.1/24, 10.10.10.254/24, 100.100.100.254/24