Community discussions

 
nabati
just joined
Topic Author
Posts: 3
Joined: Thu Sep 27, 2018 6:35 pm

help me to add more than 1 ip

Sun Sep 30, 2018 5:03 pm

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"
question, how to add more than 1 ip from adress list to address user

Who is online

Users browsing this forum: No registered users and 7 guests