Community discussions

 
proweb
newbie
Topic Author
Posts: 48
Joined: Sat Oct 08, 2005 10:04 pm

how to put text scripts for firewall rule [Blok list]??

Wed Nov 02, 2005 5:12 pm

Guy's...i have some problemo here....
how to setup mikrotik to input filter rule to firewall except put one by one?
Porn Block List
sampel :
/ip web-proxy access add url= http://www.0000-sex-pics.com method=any action=deny
/ip web-proxy access add url= http://www.000sex.com method=any action=deny
/ip web-proxy access add url= http://www.007absoluteadult.com method=any action=deny
/ip web-proxy access add url= http://www.007blackbooty.com method=any action=deny
/ip web-proxy access add url= http://www.007girl.com method=any action=deny
/ip web-proxy access add url= http://www.007girls.net method=any action=deny
/ip web-proxy access add url= http://www.007teens.net method=any action=deny
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 993
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Thu Nov 03, 2005 10:50 am

It was told once very well:
... from your previous posts it sounds like you need to read the manual, and after you've read it once, read it three more times.
TRY to READ the manual first.
Tout individu a droit à la vie, à la liberté et à la sûreté de sa personne.
 
onowojemma
Member Candidate
Member Candidate
Posts: 129
Joined: Sun Sep 11, 2005 5:27 pm
Location: Nigeria

Thu Dec 22, 2005 11:31 pm

Hello pls pardon me for the way i write i have a firewall rule that i try using for my web-proxy to deny Porn which look like this .
/ip web-proxy access add url= http://www.0000-sex-pics.com method=any action=deny
/ip web-proxy access add url= http://www.000sex.com method=any action=deny
/ip web-proxy access add url= http://www.007absoluteadult.com method=any action=deny
/ip web-proxy access add url= http://www.007blackbooty.com method=any action=deny
/ip web-proxy access add url= http://www.007girl.com method=any action=deny
/ip web-proxy access add url= http://www.007girls.net method=any action=deny
/ip web-proxy access add url= http://www.007teens.net method=any action=deny
They are more then this, the database is 2mgbit when i try to past then the router using winbox terminal the router will discont and non will be pasted.and when i past few lines to it it work well ,Is there a way i can run is from the router console? or runing it frin the Ftp? will appriciate ur respond





It was told once very well:
... from your previous posts it sounds like you need to read the manual, and after you've read it once, read it three more times.
TRY to READ the manual first.
hell
Mikrotik! making networking easy
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 993
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Fri Dec 23, 2005 10:25 am

Upload the file to the router using ftp and then run /import <file-name> command from the console.
Tout individu a droit à la vie, à la liberté et à la sûreté de sa personne.
 
User avatar
YazzY
Member Candidate
Member Candidate
Posts: 140
Joined: Fri May 28, 2004 3:26 pm
Location: Norway, Østfold
Contact:

Fri Dec 23, 2005 10:41 am

That's what loops are made for.
Put your rules in a list and let a command go throug it.
Then create a script, upload it to your box and run it.
If you add new rules to your script, don't forget to flush your old rules before rerunning the ruleset.
Btw, how do you keep track of all the prohibited sites?
 
onowojemma
Member Candidate
Member Candidate
Posts: 129
Joined: Sun Sep 11, 2005 5:27 pm
Location: Nigeria

Sun Dec 25, 2005 12:44 pm

I have just tried it now but the system put does not match any value of file-name [admin@MikroTik] file> /import sexlist
input does not match any value of file-namet
i also treid this
/import file-sexlist
"sexlist" is the name of the file please can u give me the correct syntex
Thanks for ur help
Upload the file to the router using ftp and then run /import <file-name> command from the console.
Last edited by onowojemma on Sun Dec 25, 2005 7:12 pm, edited 1 time in total.
Mikrotik! making networking easy
 
User avatar
lastguru
Trainer
Trainer
Posts: 435
Joined: Fri May 28, 2004 9:04 pm
Location: Certified Trainer/Consultant in Riga, Latvia
Contact:

Tue Dec 27, 2005 2:27 pm

I have just tried it now but the system put does not match any value of file-name [admin@MikroTik] file> /import sexlist
input does not match any value of file-namet
i also treid this
/import file-sexlist
"sexlist" is the name of the file please can u give me the correct syntex
Thanks for ur help
Upload the file to the router using ftp and then run /import <file-name> command from the console.
you should not prefix "file-" to the filename:
/import sexlist
International MikroTik Certified Trainer and Consultant form Latvia.
I do RouterOS Training and Certification worldwide!

skype: lastguru
 
onowojemma
Member Candidate
Member Candidate
Posts: 129
Joined: Sun Sep 11, 2005 5:27 pm
Location: Nigeria

Mon Jan 16, 2006 8:59 am

thanks for all the replay i had try that i up load it into the MOT ftp but run the command but it still tells me' input does not match any value of file-name" i use notpad to create the script ,thanks in advances



That's what loops are made for.
Put your rules in a list and let a command go throug it.
Then create a script, upload it to your box and run it.
If you add new rules to your script, don't forget to flush your old rules before rerunning the ruleset.
Btw, how do you keep track of all the prohibited sites?
Mikrotik! making networking easy
 
onowojemma
Member Candidate
Member Candidate
Posts: 129
Joined: Sun Sep 11, 2005 5:27 pm
Location: Nigeria

Mon Jan 16, 2006 9:00 am

thanks for all the replay i had try that i up load it into the MOT ftp but run the command but it still tells me' input does not match any value of file-name" i use notpad to create the script ,thanks in advances
Mikrotik! making networking easy
 
GJS
Member
Member
Posts: 418
Joined: Sat May 29, 2004 4:07 pm
Location: London

Mon Jan 16, 2006 4:35 pm

Use /file print to check if the file has uploaded to the router.
Guy

wispuk.org
A Forum Community for UK WISPs
 
onowojemma
Member Candidate
Member Candidate
Posts: 129
Joined: Sun Sep 11, 2005 5:27 pm
Location: Nigeria

Tue Jan 17, 2006 9:55 am

I have done that it it show there as "sexlist.txt" i tupy in /Import sexlist.txt it did not work and i try /import sexlist it still show me the same thing
Mikrotik! making networking easy
 
Znuff
Member Candidate
Member Candidate
Posts: 139
Joined: Tue Sep 26, 2006 2:42 am
Contact:

Tue Sep 26, 2006 11:53 pm

nvm, figured out
 
Znuff
Member Candidate
Member Candidate
Posts: 139
Joined: Tue Sep 26, 2006 2:42 am
Contact:

Wed Sep 27, 2006 3:06 am

this is so freakin' frustratring... I borked my configuration... I reset everything and now scripts won't work AGAIN X(

there's doesn't say anywhere in the manual that the script has to have the extension .rsc and when you /import you have to omit the extension...
 
Dryanta
newbie
Posts: 46
Joined: Mon Jan 30, 2006 7:39 pm

Mon Oct 02, 2006 7:14 am

Why don't you just filter the porn through a proxy and not bother the mt with it?

Who is online

Users browsing this forum: No registered users and 12 guests