• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Unable to delete alias - firewall thinks its in use

Scheduled Pinned Locked Moved General pfSense Questions
6 Posts 3 Posters 488 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    michmoor LAYER 8 Rebel Alliance
    last edited by Jun 4, 2024, 3:46 PM

    I am unable to delete an alias as the system believes its still in use on firewall rules that no longer exist on my firewall. Rules are not in the GUI so i suspect there is something lingering in the filesystem.
    How can i delete this alias?

    Cannot delete alias. Currently in use by filter rule 'Permit traceroute from Zabbix server', filter rule 'Permit Monitoring to LAN', filter rule 'Permit SCP file transfer'.
    

    Firewall: NetGate,Palo Alto-VM,Juniper SRX
    Routing: Juniper, Arista, Cisco
    Switching: Juniper, Arista, Cisco
    Wireless: Unifi, Aruba IAP
    JNCIP,CCNP Enterprise

    M 1 Reply Last reply Jun 4, 2024, 4:09 PM Reply Quote 0
    • M
      mcury @michmoor
      last edited by Jun 4, 2024, 4:09 PM

      @michmoor I would try this method: https://docs.netgate.com/pfsense/en/latest/config/xml-configuration-file.html#edit-in-place

      Backup your config first, then check if the firewall rule exists in /conf/config.xml
      If so, remove the rule, save the file and then, rm /tmp/config.cache
      Go to the GUI and save that tab where the firewall rule was, then try to remove the alias.

      But perhaps, it may be a good idea to wait a little longer a better suggestion.

      dead on arrival, nowhere to be found.

      M 1 Reply Last reply Jun 4, 2024, 4:14 PM Reply Quote 0
      • M
        michmoor LAYER 8 Rebel Alliance @mcury
        last edited by Jun 4, 2024, 4:14 PM

        @mcury
        Good thinking. I do see it in the config.xml file
        I dislike editing the config.xml as i strongly suspect I'm going to mess this up. Dont think i have another choice.
        I'll wait to see if anyone else chimes in.

        Firewall: NetGate,Palo Alto-VM,Juniper SRX
        Routing: Juniper, Arista, Cisco
        Switching: Juniper, Arista, Cisco
        Wireless: Unifi, Aruba IAP
        JNCIP,CCNP Enterprise

        1 Reply Last reply Reply Quote 1
        • S
          stephenw10 Netgate Administrator
          last edited by Jun 4, 2024, 4:23 PM

          If it's in the config file is should appear in the GUI.

          We have seen situations where it's in a rule that is hidden because the interface is disabled or similar. You should be able to temporarily re-expose the rule though to remove the alias.

          M 1 Reply Last reply Jun 4, 2024, 4:34 PM Reply Quote 0
          • M
            michmoor LAYER 8 Rebel Alliance @stephenw10
            last edited by Jun 4, 2024, 4:34 PM

            @stephenw10
            I edited the config.xml and somehow not corrupted everything in the process. Reboot. I am able to delete the alias

            To your point, this was an IPsec VTI that was in use awhile ago. Not sure how i would go about exposing it if something like this happens in the future.

            Firewall: NetGate,Palo Alto-VM,Juniper SRX
            Routing: Juniper, Arista, Cisco
            Switching: Juniper, Arista, Cisco
            Wireless: Unifi, Aruba IAP
            JNCIP,CCNP Enterprise

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Jun 4, 2024, 5:47 PM

              Hmm, possibly you changed the IPSec filtering mode? That can hide tabs for VTI or IPSec interfaces.

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received