Community discussions

MikroTik App
 
tom65
newbie
Topic Author
Posts: 27
Joined: Mon Mar 18, 2019 8:24 pm
Location: South Africa

ppp secret print only in remote range

Fri Jul 09, 2021 5:36 pm

Hi,
I want to search and print to file only when remote-address is in a specific ip address block range.
I tried with the "~" instead of "=" but this does not work.
ppp sec print detail without-paging where remote-address~172.16
Any suggestions please
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: ppp secret print only in remote range  [SOLVED]

Fri Jul 09, 2021 6:28 pm

just ask!

in
/ppp secret print detail without-paging file=results where remote-address in 172.16.0.0/12

not in
/ppp secret print detail without-paging file=results where !(remote-address in 172.16.0.0/12)

or
/ppp secret print detail without-paging file=results where (remote-address in 172.16.0.0/12) or (remote-address in 192.168.0.0/10)


Where you want this results, only on file?
Or you must use it on script?
PRINT DO NOT BE USED ON SCRIPT (except some minimal cases)
 
tom65
newbie
Topic Author
Posts: 27
Joined: Mon Mar 18, 2019 8:24 pm
Location: South Africa

Re: ppp secret print only in remote range

Sat Jul 10, 2021 7:44 pm

just ask!

in
/ppp secret print detail without-paging file=results where remote-address in 172.16.0.0/12

not in
/ppp secret print detail without-paging file=results where !(remote-address in 172.16.0.0/12)

or
/ppp secret print detail without-paging file=results where (remote-address in 172.16.0.0/12) or (remote-address in 192.168.0.0/10)


Where you want this results, only on file?
Or you must use it on script?
PRINT DO NOT BE USED ON SCRIPT (except some minimal cases)
Thanks a lot !! Just what I needed. Its a recurring 5 min script to my internal Linux box for personnel web page. All is in secure (behind firewall) environment.
Web page is to generate sites up, sites down, etc.
Regards,
Tom

Who is online

Users browsing this forum: No registered users and 29 guests