Skip to main content
cuongtl
New Member
June 8, 2021
Question

install policy error when enable url filter

  • June 8, 2021
  • 1 reply
  • 5445 views

Hi all,

I am using FMG 1000F ver 7.0. When i enable "url filter" and install to fortigate then appear errors:

------- Start to retry --------

FG100E-01 $ config webfilter urlfilter FG100E-01 (urlfilter) $ edit 1 FG100E-01 (1) $ config entries FG100E-01 (entries) $ edit 1 FG100E-01 (1) $ set url "youtube.com" FG100E-01 (1) $ set action block FG100E-01 (1) $ next FG100E-01 (entries) $ end FG100E-01 (1) $ next Attribute 'name' MUST be set. Command fail. Return code 1 FG100E-01 (urlfilter) $ end FG100E-01 $ config webfilter profile FG100E-01 (profile) $ edit "BLOCK URL" FG100E-01 (BLOCK URL) $ config web FG100E-01 (web) $ set urlfilter-table 1 entry not found in datasource

value parse error before '1' Command fail. Return code -3 FG100E-01 (web) $ end FG100E-01 (BLOCK URL) $ next FG100E-01 (profile) $ end

---> generating verification report ( webfilter urlfilter ) add entry 1 ( webfilter urlfilter entries ) add entry 1 (vdom root: webfilter urlfilter 1 entries 1:url) remote original: to be installed: "youtube.com"

(vdom root: webfilter urlfilter 1 entries 1:action) remote original: to be installed: block

(vdom root: webfilter profile "BLOCK URL" web:urlfilter-table) remote original: to be installed: 1

<--- done generating verification report

install failed

-----------------------------------------------

Someone can give me an advice?

Thanks!

    1 reply

    jorge_americo
    New Member
    June 8, 2021

    Initially you have a syntax error:

    ===================

    Attribute 'name' MUST be set. Command fail. Return code 1

    ===================

     

    it's missing

    set name {string} look this:

    https://docs.fortinet.com...ig-webfilter-urlfilter

    Toshi_Esumi
    SuperUser
    SuperUser
    June 8, 2021

    Then must be a bug since you created "test" url filter under Object Configuration->Security Profiles->[webfilter_name]->URL Filter GUI.

    cuongtl
    cuongtlAuthor
    New Member
    June 9, 2021

    toshiesumi wrote:

    Then must be a bug since you created "test" url filter under Object Configuration->Security Profiles->[webfilter_name]->URL Filter GUI.

    Hi, full log as following:

     

    Starting log (Run on device)

    Start installing FG100E-01 $ config webfilter urlfilter FG100E-01 (urlfilter) $ edit 3 FG100E-01 (3) $ config entries FG100E-01 (entries) $ edit 1 FG100E-01 (1) $ set url "youtube.com" FG100E-01 (1) $ set action block FG100E-01 (1) $ next FG100E-01 (entries) $ end FG100E-01 (3) $ next Attribute 'name' MUST be set. Command fail. Return code 1 FG100E-01 (urlfilter) $ end FG100E-01 $ config webfilter profile FG100E-01 (profile) $ edit "BLOCK URL" FG100E-01 (BLOCK URL) $ config web FG100E-01 (web) $ set urlfilter-table 3 entry not found in datasource

    value parse error before '3' Command fail. Return code -3 FG100E-01 (web) $ end FG100E-01 (BLOCK URL) $ next FG100E-01 (profile) $ end

    ---> generating verification report ( webfilter urlfilter ) add entry 3 ( webfilter urlfilter entries ) add entry 1 (vdom root: webfilter urlfilter 3 entries 1:url) remote original: to be installed: "youtube.com"

    (vdom root: webfilter urlfilter 3 entries 1:action) remote original: to be installed: block

    (vdom root: webfilter profile "BLOCK URL" web:urlfilter-table) remote original: to be installed: 3

    <--- done generating verification report

     

    ------- Start to retry --------

    FG100E-01 $ config webfilter urlfilter FG100E-01 (urlfilter) $ edit 3 FG100E-01 (3) $ config entries FG100E-01 (entries) $ edit 1 FG100E-01 (1) $ set url "youtube.com" FG100E-01 (1) $ set action block FG100E-01 (1) $ next FG100E-01 (entries) $ end FG100E-01 (3) $ next Attribute 'name' MUST be set. Command fail. Return code 1 FG100E-01 (urlfilter) $ end FG100E-01 $ config webfilter profile FG100E-01 (profile) $ edit "BLOCK URL" FG100E-01 (BLOCK URL) $ config web FG100E-01 (web) $ set urlfilter-table 3 entry not found in datasource

    value parse error before '3' Command fail. Return code -3 FG100E-01 (web) $ end FG100E-01 (BLOCK URL) $ next FG100E-01 (profile) $ end

    ---> generating verification report ( webfilter urlfilter ) add entry 3 ( webfilter urlfilter entries ) add entry 1 (vdom root: webfilter urlfilter 3 entries 1:url) remote original: to be installed: "youtube.com"

    (vdom root: webfilter urlfilter 3 entries 1:action) remote original: to be installed: block

    (vdom root: webfilter profile "BLOCK URL" web:urlfilter-table) remote original: to be installed: 3

    <--- done generating verification report

    install failed

    -------------------------------------------

    on GUI i have set named "test" but the log is not set?