not able to add new virtual ip setting getting error

Started by trident, March 30, 2018, 11:29:39 PM

Previous topic - Next topic
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


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



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.
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

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?
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

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

April 08, 2018, 09:25:02 PM #9 Last Edit: April 08, 2018, 09:26:59 PM by marjohn56
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>
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

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

April 08, 2018, 10:37:15 PM #11 Last Edit: April 08, 2018, 10:51:55 PM by Davesworld
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.  :)
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

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

April 09, 2018, 02:03:33 AM #14 Last Edit: April 09, 2018, 02:05:25 AM by Davesworld
/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.