Can't delete unused Virtual IP "referenced by a least one gateway"
I am working on some minor shuffling around of statics from my /29 block of IPs from my ISP. On 2.0.3 and 2.1 snapshots prior to the revision linked below, I could delete Virtual IPs that existed within the same subnet as my gateway. I don't believe this was the intended behavior from this revision.
Updated by Christian McDonald over 8 years ago
I'm not sure that I'm following you. Let's say my block of public IPs is as follows:
If my wan interface is set as 188.8.131.52 with gateway 184.108.40.206, and I have a virtual IP set as 220.127.116.11, if that VIP is not being used with anything (NAT, etc.), why shouldn't I be able to delete it? Like I said, I know I did this a few times without any problems under older builds. Thanks
Updated by Dan Lundqvist over 8 years ago
Sent to forum on 9th July
I have just updated to the latest build (2.1-RC0 (i386) built on Tue Jul 9 23:03:10 EDT 2013"
but still see this problem when trying to remove "*IP Alias*" entries.
I get "This entry cannot be deleted because it is still referenced by at least one Gateway." when trying
to remove one IP Alias. (I only have one primary IP defined in the WAN-interface .51 at end
and one VirtualIP IP Alias with .53 at the end. Is in same subnet as primary IP and only have one VirtualIP defined.
basically this is the setup:
xx.xx.165.51/24 Main WAN IP
xx.xx.165.53/24 VirtualIP IP Alias With NOTHING tied like NAT or similar. Just created IP Alias.
The "IP Alias" was created in an earlier build from June.
I was only doing some tests for a colleague and need to undefine the IP Alias as this IP
is normally used in another router and is temporary disconnected so I could do the test.
As long as this IP is now tied to pfSense it will answer ARPs and I will get an IP collision.
I found another thread that was dealing with similar but for CARP IP and that was suppose to
be fixed but still have problem with IP Alias.
Updated by Tobi Miller over 5 years ago
I have pfsense 2.3 (amd64) running and this issue seems to be present again. I have setup a main virtual IP which I use to bind services. Now I added another virtual IP from the same subnet, but now I cannot remove this newly added virtual ip. The error message always is "This entry cannot be deleted because it is still referenced by at least one Gateway."
the second virtual IP I want to remove, but fails with error above
Updated by Flavio Stanchina about 5 years ago
I've got this error on 2.3.2_1, on a CARP VIP I just added for a test. I'm 100% sure that VIP is not being used for anything (added it, checked if it was MASTER on the dashboard, immediately went back to delete it). It's outside the interface's subnet, if that makes a difference, and I have three other VIPs on that interface (all of them outside the interface's subnet).
This happened on a non-production firewall where I'm testing a scenario I want to replicate in production, so this is going to be a problem for me in a few days.