OPNsense Forum
Archive => 18.1 Legacy Series => Topic started by: trident on March 30, 2018, 11:29:39 pm
-
HI
not sure when this stop working
am trying to add a new virtual ip
but does not matter what i do is saying a valid ip address must be specified
now i do have some some setup from the 17 config before updating to 18
if i go in to one of them which are working and save i get the same error
so i know this is a bug at this point for me
am on the the latest 18.1.5-amd64
-
anyone else have this problem or it just me
-
It's worth sharing your input text and exact error message so we can try it and trace the error.
Screenshots are fine, too.
Cheers,
Franco
-
Virtual ip.jpg show these are the one i had before if i open any and save i get the error
err message.jpg is me adding a new one again show the same error
if there anything else i can get for you just say
thanks
-
is it me or a bug
-
I've just entered one of my spare WAN IP's and it works fine.
Did you copy and paste the address in?
If so, type the address in and see if that works.
-
yes i did and i said if i open one of the other and just save i get the same error.
is there anything else i can check on my system to see what stopping this from working
i dont want to do a clean install and setup everything but if that what i have to do i will
-
There's no GUI solution. I guess you could manually edit the config.xml to add the entry and reboot, in theory that should work. It does not resolve why you are seeing that problem though.
Have you tried adding an IP in a different range, just for debugging purposes, lile 88.88.88.88 and see if takes that?
-
just try you 88.88.88.88 and still the same error
i will see if that file you say help or i look at freebsd cmd for doing this at cmd line
but am more Solaris cmd then freebsd lol
-
You'll need to edit the /conf/config.xml file.
Look for the following: <virtualip> you should see all your existing VIPs there,so copy an entry and paste it in below the last VIP, I'm sure you can see how it works. Once done, reboot and see if its set.
<virtualip>
<vip>
<type>single</type>
<subnet_bits>32</subnet_bits>
<mode>ipalias</mode>
<interface>wan</interface>
<descr>ZEN IP Address 181</descr>
<subnet>xxx.xxx.xxx.181</subnet>
</vip>
-
thanks for that manual add is fine
funny how the gui does not like on my system
but could be from it been upgrade a few time and something broken the gui somewere
will try again when the new update is out and see if save works
-
I added one for bridged modem access but did not put anything in the gateway or a password. It looks odd to have root in the gateway field. Don't reinstall from scratch as you will only repeat the same error unless you do something different. The gateway should be left blank unless it's ppp/pppoe/tun etc.
Also is there any reason why you have /32? I have never seen an ipv4 mask that high personally, even a /31 would only allow two addresses access. The password is for a vhid group of which you have none. Are you intending the ip to be the only ip that can access it's own ip, if not, use a wider mask eg /30 or below.
-
With VIPs It's advised to use a mask that matches the interfaces IP or /32 can be used. I've used /32 for a long time and never had any issues.... works for me is all I can say on that. :)
-
root is the default that there so never touch
/32 can not remember as i had done these a long time back over a year just had not add the last ip i had been given and yes am pppoe
-
/32 seems like an ipv6 sub mask and is a single ip sub mask in ipv4 meaning that the ip can only access itself and no other ip addresses can access it. Here is what your ip and sub will allow:
Address: 212.159.53.147 11010100.10011111.00110101.10010011
Netmask: 255.255.255.255 = 32 11111111.11111111.11111111.11111111
Wildcard: 0.0.0.0 00000000.00000000.00000000.00000000
=>
Network: 212.159.53.147/32 11010100.10011111.00110101.10010011 (Class C)
Broadcast: 212.159.53.147 11010100.10011111.00110101.10010011
HostMin: 212.159.53.147 11010100.10011111.00110101.10010011
HostMax: 212.159.53.147 11010100.10011111.00110101.10010011
Hosts/Net: 1
Notice that only one ip .147 can be in the same sub?
Change the sub to 30 and:
Address: 212.159.53.147 11010100.10011111.00110101.100100 11
Netmask: 255.255.255.252 = 30 11111111.11111111.11111111.111111 00
Wildcard: 0.0.0.3 00000000.00000000.00000000.000000 11
=>
Network: 212.159.53.144/30 11010100.10011111.00110101.100100 00 (Class C)
Broadcast: 212.159.53.147 11010100.10011111.00110101.100100 11
HostMin: 212.159.53.145 11010100.10011111.00110101.100100 01
HostMax: 212.159.53.146 11010100.10011111.00110101.100100 10
Hosts/Net: 2
Notice that only two other hosts can be in the same sub, .145 and .146.
Now go to /24 and you get:
Address: 212.159.53.147 11010100.10011111.00110101 .10010011
Netmask: 255.255.255.0 = 24 11111111.11111111.11111111 .00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000 .11111111
=>
Network: 212.159.53.0/24 11010100.10011111.00110101 .00000000 (Class C)
Broadcast: 212.159.53.255 11010100.10011111.00110101 .11111111
HostMin: 212.159.53.1 11010100.10011111.00110101 .00000001
HostMax: 212.159.53.254 11010100.10011111.00110101 .11111110
Hosts/Net: 254
Here .1 to .254 can access .147.
Seriously, lose the /32 and put a smaller value in and try to save that.
-
I also have a 1:1 NAT on some of the same VIPs for my servers. I don't need those IP's to be talking to other addresses on the /29 range I have been allocated from my ISP.
The OP also already has other VIps set at /32 and they are working so it's not the fact that he is selecting /32 on a new VIP he is trying to add that is preventing it from saving, something else is amiss.
-
even changing the mask still fails
i again have to do manual
so on my setup the gui part is broken but backend is fine.
not sure i want each ip talking to the other as some are on dmz some are direct to vm
the different network i dont want access to the other. but i may think of changing later if it how i want it
thanks
-
ok the problem i just found out is firefox
if i do the open and save in chrome it fine
my firefox is the latest so not sure which version it stop working. so my gui is fine but there is a small bug and only with firefox
thanks
-
Thank you Trident!
I had exactly the same issue!!! Running the latest version of Firefox.