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

Managing NATs from command ilne

Hi.

1. I need to delete one NAT definition which i have accidentally create.
I have to do it from the command line.
What command should i use to see all my NATs, and what command should i use to remove it.

2. How can I load configuration file from the CLI?

Thanks...



This thread was automatically locked due to age.
Parents Reply
  • Goldy_01:

    to print the current NAT rules:

    psql -U nobody -d corporate -c "select * from tblnatrule" from advanced shell

    Write-down the ID of the rule you want to delete and then:

    psql -U nobody -d corporate -c "DELETE FROM tblnatrule WHERE ID = 2"

    You should receive DELETED=1.

    In my case I deleted ID = 2.

    Run the first command to confirm the entry have been deleted correctly.

    Regards

Children