This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to find a specific firewall rule?

Trying to delete a IP host record. I get an error:
"Host could not be deleted. Firewall rule exists for the host"

How do I find, which firewall rule is the one in question?



This thread was automatically locked due to age.
Parents
  • ps. cant post on this great forum with chrome.

    With IE, I get an error

     

    "An error occurred. Please try again or contact your administrator. "

     

     

    .......... aaaaaand

    "Your posting frequency has exceeded allowed rates. Please wait 5 minutes to post again. "

    for real guys....

  • Kari,

    you need to perfom these steps:

    • from the GUI, go to Host and Services > IP Host and they write down the hostname (for example iPhone)
    • connect to XG cli > option 5 > option 3
    • type: psql -U nobody -d corporate
    • type: SELECT * FROM tblhost WHERE hostname='iPhone'; (please respect the upper and lower case
    • Write down the hostid number (in my case is 11)
    • type: SELECT * FROM tblfwsource; to check if the hostid is here (this is the source FW rule table)
    • type: SELECT * FROM tblfwdest; to check if the hostid is here (this is the destination FW rule table)

    in one of these 2 last tables you should find the relations hostid (11) and fwruleid (xxx). This id corresponds to Firewall rules inside the GUI. If the rule is still there, delete it, otherwise you need to delete the row using postgresql commands.

    Let us know.

    Regards

  • This is the most user-hostile approach I've ever seen in the firewalls.

    Here's a suggestion: How about showing the rule name in the error message? And maybe even link to it?

Reply Children