Skip to main content
Contributor
July 15, 2006
Question

Importing block list ...

  • July 15, 2006
  • 6 replies
  • 4243 views
Hi Folks, I did install my Fortinet-100 with 3.0 OS, how or where can i import my URL block or banned word list ? i remember in 2.8 one could do this. can " Import Bulk CLI command" help me regarding this issue? Best Rgds, Kamyar

    6 replies

    abelio
    SuperUser
    SuperUser
    July 16, 2006
    Hi, System->Maintance->Backup&Restore->Advanced you can import bulk CLI commands from a text file regards,
    Contributor
    July 24, 2006
    Thank you Abelio, i tried it and did work,but the problem is if i want to add 500-600 URLs to the list i sould paste 500 times the URLs and type " edit" & " next" & " end" commands for each URL, how should i solve this problem? Brgds, Kamyar
    abelio
    SuperUser
    SuperUser
    July 24, 2006
    i sould paste 500 times the URLs and type " edit" & " next" & " end" commands for each URL, how should i solve this problem?
    you could write a small bash or perl script to parse these URL and compose the right syntax or follow ukwizard' s advice about internals structure of these filters
    UkWizard
    New Member
    July 24, 2006
    Create a text file listing the urls, in the syntax like below. If you just have a flat file of urls, then use excel to format it correctly. Then use the restore option in the backup/restore URL list option NOTE: restoring will remove whats in there, so make sure you export these into the new file. banned1.com::01000000:: banned2.co.uk::01000000:: banned3.net::01000000:: banned4.org::01000000::
    UkWizard
    New Member
    July 24, 2006
    Or, i could send you the windows utlity to convert them if needed.... Given to me by fortinet support, seems to work
    Contributor
    July 25, 2006
    thanks UKWizard, i think that your previous post works on FortiOS Ver2.8 if i want to use Ver3.0 what should i do? I will be thankful for any program or advice. Brgds, Kamyar
    UkWizard
    New Member
    July 25, 2006
    Thought it was the same, but abelio is right, how rubbish is that ... my god. Just another reason why i refuse to go to v3 at this early stage. Also, it can only handle 5000 URL entries ...... So as abelio said, you would have to create an text file with all the entries in the format; config webfilter urlfilter edit " testtest.com" set action block next edit " testtestest.com" set action block next end
    UkWizard
    New Member
    July 25, 2006
    I tell you what, as i got it wrong, send me the list and i will format it for you and send it back.
    Contributor
    July 25, 2006
    ok, will send the list for you as soon as it get ready. thanks in advance, Kamyar
    UkWizard
    New Member
    July 25, 2006
    Paste it here, if you dont mind. otherwise let me know and i will email you.