OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 23.1 Legacy Series »
  • OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set
« previous next »
  • Print
Pages: [1]

Author Topic: OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set  (Read 1486 times)

sbellon

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 8
    • View Profile
OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set
« on: February 18, 2023, 12:35:59 pm »
Hi all, I did a single configuration change, adding a Virtual IPv6 address to my LAN to create an ULA, and the OPNsense did not boot anymore (tried with 23.1_6 and 23.1.1_2).

The configuration diff is as simple as

Code: [Select]
2010,2011c2025,2039
<   <virtualip>
<     <vip/>
---
>   <virtualip version="1.0.0">
>     <vip uuid="fa820ff4-41b4-4c9a-8595-8373a45fef7d">
>       <interface>lan</interface>
>       <mode>ipalias</mode>
>       <subnet>fd80:0192:0168:0001:2a1:ecff:fe68:f1c0</subnet>
>       <subnet_bits>64</subnet_bits>
>       <gateway/>
>       <noexpand>0</noexpand>
>       <nobind>0</nobind>
>       <password/>
>       <vhid/>
>       <advbase>1</advbase>
>       <advskew>0</advskew>
>       <descr>ULA LAN</descr>
>     </vip>

This results in the Enter full pathname of shell or RETURN for /bin/sh at boot directly after Setting up routes...done. and before Setting up DHCPv4 and Setting up DHCPv6. This was reproducible every time and was not a one-time timing hickup.

Luckily I have virtualized the OPNsense on Proxmox VE, so I just reverted to the last snapshot.

I then learnt that I used a stupid address for ULA and changed it to a randomly generated one and now OPNsense boots again. The only change in the diff is really the <subnet>...</subnet> of the <virtualip>.

Even if I used a stupid virtual IPv6 address, I think, OPNsense should not refuse to boot?
Logged

Greelan

  • Hero Member
  • *****
  • Posts: 1028
  • Karma: 72
    • View Profile
Re: OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set
« Reply #1 on: February 18, 2023, 02:56:50 pm »
At the very least there should be validation of whether the address entered is RFC compliant.
Logged

meyergru

  • Hero Member
  • *****
  • Posts: 1769
  • Karma: 172
  • IT Aficionado
    • View Profile
    • congenio
Re: OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set
« Reply #2 on: February 18, 2023, 05:47:05 pm »
But there is a check for valid IPs?

@sbellon: What exactly did you enter that was accepted but still prevented booting?
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

sbellon

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 8
    • View Profile
Re: OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set
« Reply #3 on: February 18, 2023, 06:03:08 pm »
@meyergru: See my initial posting?
Logged

meyergru

  • Hero Member
  • *****
  • Posts: 1769
  • Karma: 172
  • IT Aficionado
    • View Profile
    • congenio
Re: OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set
« Reply #4 on: February 18, 2023, 07:32:28 pm »
I thought that was the address that worked afterwards.

fd80:0192:0168:0001:2a1:ecff:fe68:f1c0 is a perfectly legal ULA, I do not see why this should not work. Also, for an IP alias, you could use almost any IPv6, so the IPv6 validity check that is applied in the web UI should suffice.

Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

sbellon

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 8
    • View Profile
Re: OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set
« Reply #5 on: February 18, 2023, 10:35:07 pm »
It was reproducible that booting with that Virtual IP resulted in the screenshot attached to my first post. I changed literally only the address to a randomly generated fd01:6da2:3e56:1/64 ULA prefix and now it boots again:

Code: [Select]
2029c2029
<       <subnet>fd80:0192:0168:0001:2a1:ecff:fe68:f1c0</subnet>
---
>       <subnet>fd01:6da2:3e56:0001:2a1:ecff:fe68:f1c0</subnet>
Logged

meyergru

  • Hero Member
  • *****
  • Posts: 1769
  • Karma: 172
  • IT Aficionado
    • View Profile
    • congenio
Re: OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set
« Reply #6 on: February 18, 2023, 11:10:50 pm »
I am still at a complete loss as to why this should happen, unless there is some special conflict with other settings on your box. I just tried just the same VIP and everything works as expected.
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 23.1 Legacy Series »
  • OPNsense 23.1.1_2 does not boot when Virtual IPv6 is set
 

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