How to remove NAT rule from console

  • I created a NAT rule wrong, and now I can not access the administration console. I can remove it with a command?

  • How are you accessing the GUI?
    There should not be any NAT involved…
    How do you have access to the console?
    Via ssh?

    You could modify the config.xml directly.

  • I have no access to GUI, because the rule that I created in error prevents it.
    I can access the console but in the file "config.xml", can not find any references to NAT.

    Can you help please?

  • Look for the <nat>tag

    It should look something like this:

                <descr>TCP over DNS</descr></rule>


  • Located, thank you very much

  • When I change the contents of the config.xml file and delete the rule, as I do to refresh the changes?


  • Just reboot ^^"

    Or switch to the developers shell and look at the help file.
    afaik there is somewhere the command listed to reload the config.

  • Rebel Alliance Developer Netgate

    edit the config, rm /tmp/config.cache, then run /etc/rc.filter_configure

Log in to reply