OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • not able to add new virtual ip setting getting error
« previous next »
  • Print
Pages: [1] 2

Author Topic: not able to add new virtual ip setting getting error  (Read 7061 times)

trident

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
not able to add new virtual ip setting getting error
« 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
Logged

trident

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #1 on: April 02, 2018, 12:23:55 pm »
anyone else have this problem or it just me
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #2 on: April 04, 2018, 08:32:05 am »
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
Logged

trident

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #3 on: April 04, 2018, 07:04:22 pm »
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

Logged

trident

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #4 on: April 08, 2018, 12:54:55 pm »
is it me or a bug
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #5 on: April 08, 2018, 01:05:06 pm »
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.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

trident

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #6 on: April 08, 2018, 08:35:34 pm »
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
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #7 on: April 08, 2018, 09:02:00 pm »
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?
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

trident

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #8 on: April 08, 2018, 09:10:12 pm »
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
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #9 on: April 08, 2018, 09:25:02 pm »
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.

Code: [Select]
<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>
« Last Edit: April 08, 2018, 09:26:59 pm by marjohn56 »
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

trident

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #10 on: April 08, 2018, 10:04:15 pm »
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
Logged

Davesworld

  • Full Member
  • ***
  • Posts: 133
  • Karma: 16
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #11 on: April 08, 2018, 10:37:15 pm »
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.
« Last Edit: April 08, 2018, 10:51:55 pm by Davesworld »
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #12 on: April 08, 2018, 11:33:13 pm »
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.  :)
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

trident

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #13 on: April 08, 2018, 11:41:53 pm »
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
Logged

Davesworld

  • Full Member
  • ***
  • Posts: 133
  • Karma: 16
    • View Profile
Re: not able to add new virtual ip setting getting error
« Reply #14 on: April 09, 2018, 02:03:33 am »
/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.
« Last Edit: April 09, 2018, 02:05:25 am by Davesworld »
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • not able to add new virtual ip setting getting error
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2